improve headers

This commit is contained in:
Brad Rydzewski 2019-03-17 12:14:12 -07:00
parent d8a884b861
commit b32d023dca
27 changed files with 203 additions and 119 deletions

14
LICENSE
View File

@ -1,10 +1,14 @@
Copyright 2019 Drone.IO, Inc. Copyright 2019 Drone.IO, Inc.
Source code in this repository is variously licensed under the The Drone Community Edition is licensed under the Apache License,
Apache License Version 2.0, an Apache compatible license, or the Version 2.0 (the "Apache License"). You may obtain a copy of the
Drone Non-Commercial License. Source code in a given file is Apache License at
licensed under the Drone Community License unless otherwise noted
at the beginning of the file. http://www.apache.org/licenses/LICENSE-2.0
The Drone Enterprise Edition is licensed under the Drone
Non-Commercial License (the "Non-Commercial License"). A copy of
the Non-Commercial License is provided below.
----------------------------------------------------------------- -----------------------------------------------------------------

16
main.go
View File

@ -1,6 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright the Drone Authors.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main package main

View File

@ -1,4 +1,4 @@
// Copyright 2019 Drone IO, Inc. // Copyright the Drone Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View File

@ -1,4 +1,5 @@
// Copyright 2019 Drone IO, Inc. // Copyright Jesse Haka.
// Copyright the Drone Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View File

@ -1,6 +1,17 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright Jesse Haka.
// Use of this source code is governed by the Drone Non-Commercial License // Copyright the Drone Authors.
// that can be found in the LICENSE file. //
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package transform package transform

View File

@ -1,4 +1,4 @@
// Copyright 2019 Drone IO, Inc. // Copyright the Drone Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,6 +2,4 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import "testing" import "testing"

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import "testing" import "testing"

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -1,29 +0,0 @@
// Copyright 2019 Drone IO, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// +build oss
package pretty
import (
"io"
"github.com/drone/drone-yaml/yaml"
)
// Print pretty prints the manifest.
func Print(w io.Writer, v *yaml.Manifest) {
d, _ := v.Encode()
w.Write(d)
}

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import ( import (

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import "testing" import "testing"

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import "testing" import "testing"

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright 2019 Drone IO, Inc.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by the Drone Non-Commercial License // Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// +build !oss
package pretty package pretty
import "testing" import "testing"

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright the Drone Authors.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright the Drone Authors.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright the Drone Authors.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -1,8 +1,16 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright the Drone Authors.
// Use of this source code is governed by the Drone Non-Commercial License //
// that can be found in the LICENSE file. // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// +build !oss // You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pretty package pretty

View File

@ -1,11 +1,12 @@
// Copyright 2019 Drone IO, Inc. // Copyright Jesse Haka.
// // Copyright the Drone Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -20,6 +21,7 @@ import (
"github.com/docker/go-units" "github.com/docker/go-units"
) )
// BytesSize stores a human-readable size in bytes, // BytesSize stores a human-readable size in bytes,
// kibibytes, mebibytes, gibibytes, or tebibytes // kibibytes, mebibytes, gibibytes, or tebibytes
// (eg. "44kiB", "17MiB"). // (eg. "44kiB", "17MiB").

View File

@ -1,6 +1,17 @@
// Copyright 2019 Drone.IO Inc. All rights reserved. // Copyright Jesse Haka.
// Use of this source code is governed by the Drone Non-Commercial License // Copyright the Drone Authors.
// that can be found in the LICENSE file. //
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package yaml package yaml