diff --git a/.github/workflows/common-workflows.yaml b/.github/workflows/common-workflows.yaml index 05e4e07..f156aa2 100644 --- a/.github/workflows/common-workflows.yaml +++ b/.github/workflows/common-workflows.yaml @@ -1,12 +1,11 @@ name: Common Workflows -on: # yamllint disable-line rule:truthy +on: # yamllint disable-line rule:truthy push: branches: [main] pull_request: branches: ["**"] jobs: - # golang static analysis checks go-static-analysis: uses: dell/common-github-actions/.github/workflows/go-static-analysis.yaml@main @@ -15,3 +14,7 @@ jobs: common: name: Quality Checks uses: dell/common-github-actions/.github/workflows/go-common.yml@main + + check-license-header: + name: Check License Header + uses: dell/common-github-actions/.github/workflows/check-license-header.yaml@feature/license-validation diff --git a/gofsutil.go b/gofsutil.go index ed58e92..aadaebc 100644 --- a/gofsutil.go +++ b/gofsutil.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_doc.go b/gofsutil_doc.go index 88fd1e1..320f43a 100644 --- a/gofsutil_doc.go +++ b/gofsutil_doc.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_fs.go b/gofsutil_fs.go index 88a4667..7d2788a 100644 --- a/gofsutil_fs.go +++ b/gofsutil_fs.go @@ -1,14 +1,6 @@ -// Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. -// -// 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. +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. +// Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. +// Other trademarks may be trademarks of their respective owners. package gofsutil diff --git a/gofsutil_mock.go b/gofsutil_mock.go index ec6ca25..d6a3492 100644 --- a/gofsutil_mock.go +++ b/gofsutil_mock.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount.go b/gofsutil_mount.go index 55602da..6f61396 100644 --- a/gofsutil_mount.go +++ b/gofsutil_mount.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount_darwin.go b/gofsutil_mount_darwin.go index f833dff..9d8e951 100644 --- a/gofsutil_mount_darwin.go +++ b/gofsutil_mount_darwin.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount_linux.go b/gofsutil_mount_linux.go index c45f9e3..45fae5e 100644 --- a/gofsutil_mount_linux.go +++ b/gofsutil_mount_linux.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount_scanentry_test.go b/gofsutil_mount_scanentry_test.go index b23e1fd..35380c6 100644 --- a/gofsutil_mount_scanentry_test.go +++ b/gofsutil_mount_scanentry_test.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount_test.go b/gofsutil_mount_test.go index 2b7b907..24a24b6 100644 --- a/gofsutil_mount_test.go +++ b/gofsutil_mount_test.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index 4b4f116..e064898 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + //go:build linux || darwin // +build linux darwin diff --git a/gofsutil_mount_windows.go b/gofsutil_mount_windows.go index c5691ce..fc39471 100644 --- a/gofsutil_mount_windows.go +++ b/gofsutil_mount_windows.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +14,7 @@ package gofsutil +// test package import ( "context" "errors" @@ -21,7 +24,7 @@ import ( var info []Info func (fs *FS) getDiskFormat(ctx context.Context, disk string) (string, error) { - return "", errors.New("not implemented") + return "", errors.New("not implemented,wait") } func (fs *FS) formatAndMount(ctx context.Context, source, target, fsType string, opts ...string) error { diff --git a/gofsutil_removeduplicates.go b/gofsutil_removeduplicates.go index d1d83eb..82f234e 100644 --- a/gofsutil_removeduplicates.go +++ b/gofsutil_removeduplicates.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_removeduplicates_test.go b/gofsutil_removeduplicates_test.go index 495c887..4702722 100644 --- a/gofsutil_removeduplicates_test.go +++ b/gofsutil_removeduplicates_test.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_unix_test.go b/gofsutil_unix_test.go index 57ba131..d5b82f2 100644 --- a/gofsutil_unix_test.go +++ b/gofsutil_unix_test.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + //go:build linux || darwin // +build linux darwin diff --git a/gofsutil_utils.go b/gofsutil_utils.go index f9515ba..73f9be5 100644 --- a/gofsutil_utils.go +++ b/gofsutil_utils.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/gofsutil_utils_test.go b/gofsutil_utils_test.go index 4032be4..438d5d6 100644 --- a/gofsutil_utils_test.go +++ b/gofsutil_utils_test.go @@ -1,3 +1,5 @@ +// Copyright © 2023-2024 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. + // Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License");