diff --git a/.licensei.toml b/.licensei.toml index 94cc7eab..5aa9c570 100644 --- a/.licensei.toml +++ b/.licensei.toml @@ -1,5 +1,6 @@ [header] -template = """// Copyright 2023-2024, Ryan Parman +template = """// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the \"License\"); // you may not use this file except in compliance with the License. diff --git a/acc-coverage.png b/acc-coverage.png index 2cf9792c..2993cba2 100644 Binary files a/acc-coverage.png and b/acc-coverage.png differ diff --git a/acc-coverage.svg b/acc-coverage.svg index e06ff9a0..4b775d60 100644 --- a/acc-coverage.svg +++ b/acc-coverage.svg @@ -7,7 +7,7 @@ > - + - + env_ensure_data_source.go @@ -33,12 +33,12 @@ - + helpers.go @@ -46,12 +46,12 @@ - + homedir_expand_data_source.go @@ -59,12 +59,12 @@ - + homedir_get_data_source.go @@ -72,12 +72,12 @@ - + int_leftpad_data_source.go @@ -85,25 +85,25 @@ - + provider.go - + runtime_cpuarch_data_source.go @@ -111,12 +111,12 @@ - + runtime_goroot_data_source.go @@ -124,12 +124,12 @@ - + runtime_numcpus_data_source.go @@ -137,12 +137,12 @@ - + runtime_os_data_source.go @@ -150,12 +150,12 @@ - + str_camel_data_source.go @@ -163,12 +163,12 @@ - + str_constant_data_source.go @@ -176,12 +176,12 @@ - + str_iterative_replace_data_source.go @@ -189,12 +189,12 @@ - + str_kebab_data_source.go @@ -202,12 +202,12 @@ - + str_leftpad_data_source.go @@ -215,12 +215,12 @@ - + str_pascal_data_source.go @@ -228,12 +228,12 @@ - + str_snake_data_source.go @@ -241,12 +241,25 @@ - + + +str_snake_function.go + + + + + + truncate_label_data_source.go @@ -254,12 +267,12 @@ - + url_parse_data_source.go diff --git a/cmd/doc.go b/cmd/doc.go index 8382edd1..0068bc83 100644 --- a/cmd/doc.go +++ b/cmd/doc.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/root.go b/cmd/root.go index b8f6885c..0cf1977c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/version.go b/cmd/version.go index 8302b24c..7722d7ad 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/caps.go b/corefunc/caps.go index 5654f206..ebbfce88 100644 --- a/corefunc/caps.go +++ b/corefunc/caps.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/caps_test.go b/corefunc/caps_test.go index 2b51c902..55e15dc1 100644 --- a/corefunc/caps_test.go +++ b/corefunc/caps_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/doc.go b/corefunc/doc.go index 5609d866..a75537d3 100644 --- a/corefunc/doc.go +++ b/corefunc/doc.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/env_ensure.go b/corefunc/env_ensure.go index d6de9384..44e7dc22 100644 --- a/corefunc/env_ensure.go +++ b/corefunc/env_ensure.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/env_ensure_test.go b/corefunc/env_ensure_test.go index 444f2638..9c36fa68 100644 --- a/corefunc/env_ensure_test.go +++ b/corefunc/env_ensure_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/homedir.go b/corefunc/homedir.go index 18131235..83325c01 100644 --- a/corefunc/homedir.go +++ b/corefunc/homedir.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/homedir_test.go b/corefunc/homedir_test.go index 7b27337b..9582df5b 100644 --- a/corefunc/homedir_test.go +++ b/corefunc/homedir_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/int_pad.go b/corefunc/int_pad.go index 69b39b42..815503de 100644 --- a/corefunc/int_pad.go +++ b/corefunc/int_pad.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/int_pad_test.go b/corefunc/int_pad_test.go index ed24cf9b..24e6bbd5 100644 --- a/corefunc/int_pad_test.go +++ b/corefunc/int_pad_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/mutation_test.go b/corefunc/mutation_test.go index 31930e2e..d57eafe9 100644 --- a/corefunc/mutation_test.go +++ b/corefunc/mutation_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/str_iterative_replace.go b/corefunc/str_iterative_replace.go index 0d5879b2..fabdb9be 100644 --- a/corefunc/str_iterative_replace.go +++ b/corefunc/str_iterative_replace.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/str_iterative_replace_test.go b/corefunc/str_iterative_replace_test.go index 03830da7..890ffc48 100644 --- a/corefunc/str_iterative_replace_test.go +++ b/corefunc/str_iterative_replace_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/str_pad.go b/corefunc/str_pad.go index f8bab916..6a1ef252 100644 --- a/corefunc/str_pad.go +++ b/corefunc/str_pad.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/str_pad_test.go b/corefunc/str_pad_test.go index 8ad1dbd5..1c2f3789 100644 --- a/corefunc/str_pad_test.go +++ b/corefunc/str_pad_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/truncate_label.go b/corefunc/truncate_label.go index 8447eec8..318a11da 100644 --- a/corefunc/truncate_label.go +++ b/corefunc/truncate_label.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/truncate_label_test.go b/corefunc/truncate_label_test.go index c856ad9f..1321451c 100644 --- a/corefunc/truncate_label_test.go +++ b/corefunc/truncate_label_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/types/doc.go b/corefunc/types/doc.go index 69080d7f..471ed5c9 100644 --- a/corefunc/types/doc.go +++ b/corefunc/types/doc.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/types/str_iterative_replace_map.go b/corefunc/types/str_iterative_replace_map.go index b03e47bc..991c01f8 100644 --- a/corefunc/types/str_iterative_replace_map.go +++ b/corefunc/types/str_iterative_replace_map.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/types/url_canonicalizer.go b/corefunc/types/url_canonicalizer.go index 9b944b8f..05045869 100644 --- a/corefunc/types/url_canonicalizer.go +++ b/corefunc/types/url_canonicalizer.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/url.go b/corefunc/url.go index 0837887f..75d02c26 100644 --- a/corefunc/url.go +++ b/corefunc/url.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefunc/url_test.go b/corefunc/url_test.go index 002f73db..9dcab7d3 100644 --- a/corefunc/url_test.go +++ b/corefunc/url_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/doc.go b/corefuncprovider/doc.go index 5149086f..8203f013 100644 --- a/corefuncprovider/doc.go +++ b/corefuncprovider/doc.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/env_ensure_data_source.go b/corefuncprovider/env_ensure_data_source.go index c6830341..5874ae7b 100644 --- a/corefuncprovider/env_ensure_data_source.go +++ b/corefuncprovider/env_ensure_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/env_ensure_data_source_test.go b/corefuncprovider/env_ensure_data_source_test.go index bbf3debc..d4a9619c 100644 --- a/corefuncprovider/env_ensure_data_source_test.go +++ b/corefuncprovider/env_ensure_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/helpers.go b/corefuncprovider/helpers.go index c84cae5a..d17e44f9 100644 --- a/corefuncprovider/helpers.go +++ b/corefuncprovider/helpers.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/homedir_expand_data_source.go b/corefuncprovider/homedir_expand_data_source.go index 018e25dd..ed968eea 100644 --- a/corefuncprovider/homedir_expand_data_source.go +++ b/corefuncprovider/homedir_expand_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/homedir_expand_data_source_test.go b/corefuncprovider/homedir_expand_data_source_test.go index c3e60ecd..7b94a80e 100644 --- a/corefuncprovider/homedir_expand_data_source_test.go +++ b/corefuncprovider/homedir_expand_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/homedir_get_data_source.go b/corefuncprovider/homedir_get_data_source.go index 59a4ce66..001e4ab3 100644 --- a/corefuncprovider/homedir_get_data_source.go +++ b/corefuncprovider/homedir_get_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/homedir_get_data_source_test.go b/corefuncprovider/homedir_get_data_source_test.go index d40f3640..df50995e 100644 --- a/corefuncprovider/homedir_get_data_source_test.go +++ b/corefuncprovider/homedir_get_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/int_leftpad_data_source.go b/corefuncprovider/int_leftpad_data_source.go index 41eb5511..f3166a11 100644 --- a/corefuncprovider/int_leftpad_data_source.go +++ b/corefuncprovider/int_leftpad_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/int_leftpad_data_source_test.go b/corefuncprovider/int_leftpad_data_source_test.go index 9a2e89cd..cd332961 100644 --- a/corefuncprovider/int_leftpad_data_source_test.go +++ b/corefuncprovider/int_leftpad_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/provider.go b/corefuncprovider/provider.go index 2111beef..e24ba664 100644 --- a/corefuncprovider/provider.go +++ b/corefuncprovider/provider.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +20,7 @@ import ( "strings" "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" @@ -121,6 +123,12 @@ func (p *coreFuncProvider) DataSources(ctx context.Context) []func() datasource. } } +func (p *coreFuncProvider) Functions(ctx context.Context) []func() function.Function { + return []func() function.Function{ + StrSnakeFunction, + } +} + // Resources defines the resources implemented in the provider. func (p *coreFuncProvider) Resources(ctx context.Context) []func() resource.Resource { tflog.Debug(ctx, "Running Provider Resources method.") diff --git a/corefuncprovider/provider_test.go b/corefuncprovider/provider_test.go index 3f1e7640..9a7ce09b 100644 --- a/corefuncprovider/provider_test.go +++ b/corefuncprovider/provider_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_cpuarch_data_source.go b/corefuncprovider/runtime_cpuarch_data_source.go index f7d446d5..1e917929 100644 --- a/corefuncprovider/runtime_cpuarch_data_source.go +++ b/corefuncprovider/runtime_cpuarch_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_cpuarch_data_source_test.go b/corefuncprovider/runtime_cpuarch_data_source_test.go index ef024abe..2747ccc1 100644 --- a/corefuncprovider/runtime_cpuarch_data_source_test.go +++ b/corefuncprovider/runtime_cpuarch_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_goroot_data_source.go b/corefuncprovider/runtime_goroot_data_source.go index 42f4f25e..c7390cb0 100644 --- a/corefuncprovider/runtime_goroot_data_source.go +++ b/corefuncprovider/runtime_goroot_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_goroot_data_source_test.go b/corefuncprovider/runtime_goroot_data_source_test.go index a306f4c2..a2f46b73 100644 --- a/corefuncprovider/runtime_goroot_data_source_test.go +++ b/corefuncprovider/runtime_goroot_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_numcpus_data_source.go b/corefuncprovider/runtime_numcpus_data_source.go index dfec64da..5177742e 100644 --- a/corefuncprovider/runtime_numcpus_data_source.go +++ b/corefuncprovider/runtime_numcpus_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_numcpus_data_source_test.go b/corefuncprovider/runtime_numcpus_data_source_test.go index 4d27d0e8..59a92421 100644 --- a/corefuncprovider/runtime_numcpus_data_source_test.go +++ b/corefuncprovider/runtime_numcpus_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_os_data_source.go b/corefuncprovider/runtime_os_data_source.go index e714928e..39f0c931 100644 --- a/corefuncprovider/runtime_os_data_source.go +++ b/corefuncprovider/runtime_os_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/runtime_os_data_source_test.go b/corefuncprovider/runtime_os_data_source_test.go index 1311d226..541b624a 100644 --- a/corefuncprovider/runtime_os_data_source_test.go +++ b/corefuncprovider/runtime_os_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_camel_data_source.go b/corefuncprovider/str_camel_data_source.go index 3b8da5d2..4cb1c8cb 100644 --- a/corefuncprovider/str_camel_data_source.go +++ b/corefuncprovider/str_camel_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_camel_data_source_test.go b/corefuncprovider/str_camel_data_source_test.go index a161bb3e..6157735b 100644 --- a/corefuncprovider/str_camel_data_source_test.go +++ b/corefuncprovider/str_camel_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_constant_data_source.go b/corefuncprovider/str_constant_data_source.go index 20c216bf..6606a43a 100644 --- a/corefuncprovider/str_constant_data_source.go +++ b/corefuncprovider/str_constant_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_constant_data_source_test.go b/corefuncprovider/str_constant_data_source_test.go index 48d122e7..d407e406 100644 --- a/corefuncprovider/str_constant_data_source_test.go +++ b/corefuncprovider/str_constant_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_iterative_replace_data_source.go b/corefuncprovider/str_iterative_replace_data_source.go index 4ed461c1..1e847896 100644 --- a/corefuncprovider/str_iterative_replace_data_source.go +++ b/corefuncprovider/str_iterative_replace_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_iterative_replace_data_source_test.go b/corefuncprovider/str_iterative_replace_data_source_test.go index a7691adc..7184553d 100644 --- a/corefuncprovider/str_iterative_replace_data_source_test.go +++ b/corefuncprovider/str_iterative_replace_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -58,7 +59,11 @@ func TestAccStrIterativeReplaceDataSource(t *testing.T) { { Config: providerConfig + buf.String(), Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.corefunc_str_iterative_replace.replacements", "value", tc.Expected), + resource.TestCheckResourceAttr( + "data.corefunc_str_iterative_replace.replacements", + "value", + tc.Expected, + ), ), }, }, diff --git a/corefuncprovider/str_kebab_data_source.go b/corefuncprovider/str_kebab_data_source.go index 18a9994d..5dcc5caf 100644 --- a/corefuncprovider/str_kebab_data_source.go +++ b/corefuncprovider/str_kebab_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_kebab_data_source_test.go b/corefuncprovider/str_kebab_data_source_test.go index 013b1d3f..ca7c1d0a 100644 --- a/corefuncprovider/str_kebab_data_source_test.go +++ b/corefuncprovider/str_kebab_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_leftpad_data_source.go b/corefuncprovider/str_leftpad_data_source.go index 5e7e04df..72556928 100644 --- a/corefuncprovider/str_leftpad_data_source.go +++ b/corefuncprovider/str_leftpad_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_leftpad_data_source_test.go b/corefuncprovider/str_leftpad_data_source_test.go index ad665b7a..862ac9aa 100644 --- a/corefuncprovider/str_leftpad_data_source_test.go +++ b/corefuncprovider/str_leftpad_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_pascal_data_source.go b/corefuncprovider/str_pascal_data_source.go index 90b17fca..28edced3 100644 --- a/corefuncprovider/str_pascal_data_source.go +++ b/corefuncprovider/str_pascal_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_pascal_data_source_test.go b/corefuncprovider/str_pascal_data_source_test.go index 2ebc34f2..d4bef218 100644 --- a/corefuncprovider/str_pascal_data_source_test.go +++ b/corefuncprovider/str_pascal_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_snake_data_source.go b/corefuncprovider/str_snake_data_source.go index 2c862b8d..8f8521f9 100644 --- a/corefuncprovider/str_snake_data_source.go +++ b/corefuncprovider/str_snake_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/str_snake_data_source_test.go b/corefuncprovider/str_snake_data_source_test.go index e1b8f352..0d80764e 100644 --- a/corefuncprovider/str_snake_data_source_test.go +++ b/corefuncprovider/str_snake_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/truncate_label_data_source.go b/corefuncprovider/truncate_label_data_source.go index 7f0b1839..28e9a8d7 100644 --- a/corefuncprovider/truncate_label_data_source.go +++ b/corefuncprovider/truncate_label_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/truncate_label_data_source_test.go b/corefuncprovider/truncate_label_data_source_test.go index 62b213ca..d73a9355 100644 --- a/corefuncprovider/truncate_label_data_source_test.go +++ b/corefuncprovider/truncate_label_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/url_parse_data_source.go b/corefuncprovider/url_parse_data_source.go index 9d8a2190..438bb00c 100644 --- a/corefuncprovider/url_parse_data_source.go +++ b/corefuncprovider/url_parse_data_source.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/corefuncprovider/url_parse_data_source_test.go b/corefuncprovider/url_parse_data_source_test.go index f8031df0..550a4574 100644 --- a/corefuncprovider/url_parse_data_source_test.go +++ b/corefuncprovider/url_parse_data_source_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/generator/corefuncprovider/data_source.gotmpl b/generator/corefuncprovider/data_source.gotmpl index 6a62991d..2b75ab2b 100644 --- a/generator/corefuncprovider/data_source.gotmpl +++ b/generator/corefuncprovider/data_source.gotmpl @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/generator/corefuncprovider/data_source_test.gotmpl b/generator/corefuncprovider/data_source_test.gotmpl index 8bbf5d30..f3832007 100644 --- a/generator/corefuncprovider/data_source_test.gotmpl +++ b/generator/corefuncprovider/data_source_test.gotmpl @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/generator/main.go b/generator/main.go index c63c5236..9edeed0a 100644 --- a/generator/main.go +++ b/generator/main.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/generator/testfixtures.gotmpl b/generator/testfixtures.gotmpl index 108d824c..242626bd 100644 --- a/generator/testfixtures.gotmpl +++ b/generator/testfixtures.gotmpl @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/main.go b/main.go index 0ec6027a..d326fb51 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/terratest/terraform_test.go b/terratest/terraform_test.go index 0cde56b1..a53bf7dd 100644 --- a/terratest/terraform_test.go +++ b/terratest/terraform_test.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/doc.go b/testfixtures/doc.go index b7d5453d..f7c4e37f 100644 --- a/testfixtures/doc.go +++ b/testfixtures/doc.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/env_ensure.go b/testfixtures/env_ensure.go index daf763cb..cdcd9d14 100644 --- a/testfixtures/env_ensure.go +++ b/testfixtures/env_ensure.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,10 +39,12 @@ var EnvEnsureTestTable = map[string]struct { Pattern: regexp.MustCompile(`^([a-z]{2})-([^-]+)-(\\d)$`), }, "AWS_VAULT": { - EnvVarName: "AWS_VAULT", - SetValue: "dev", - Pattern: regexp.MustCompile(`(non)?prod$`), - ExpectedErr: errors.New("environment variable AWS_VAULT does not match pattern (non)?prod$"), // lint:allow_errorf + EnvVarName: "AWS_VAULT", + SetValue: "dev", + Pattern: regexp.MustCompile(`(non)?prod$`), + ExpectedErr: errors.New( + "environment variable AWS_VAULT does not match pattern (non)?prod$", + ), // lint:allow_errorf }, "AWS_PAGER": { EnvVarName: "AWS_PAGER", diff --git a/testfixtures/homedir_expand.go b/testfixtures/homedir_expand.go index 4fd2993d..d3d4902e 100644 --- a/testfixtures/homedir_expand.go +++ b/testfixtures/homedir_expand.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/homedir_get.go b/testfixtures/homedir_get.go index bdc9f656..e1be7e14 100644 --- a/testfixtures/homedir_get.go +++ b/testfixtures/homedir_get.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/int_pad.go b/testfixtures/int_pad.go index fb118da9..83d8dda6 100644 --- a/testfixtures/int_pad.go +++ b/testfixtures/int_pad.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/runtime_cpuarch.go b/testfixtures/runtime_cpuarch.go index c5c5ec4b..e9ea7b9b 100644 --- a/testfixtures/runtime_cpuarch.go +++ b/testfixtures/runtime_cpuarch.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/runtime_goroot.go b/testfixtures/runtime_goroot.go index 065a795d..3e12e85c 100644 --- a/testfixtures/runtime_goroot.go +++ b/testfixtures/runtime_goroot.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/runtime_numcpus.go b/testfixtures/runtime_numcpus.go index 453488f9..9f051b29 100644 --- a/testfixtures/runtime_numcpus.go +++ b/testfixtures/runtime_numcpus.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/runtime_os.go b/testfixtures/runtime_os.go index fe0d5f05..83bc341c 100644 --- a/testfixtures/runtime_os.go +++ b/testfixtures/runtime_os.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_camel.go b/testfixtures/str_camel.go index b5721fed..5b44ee36 100644 --- a/testfixtures/str_camel.go +++ b/testfixtures/str_camel.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_constant.go b/testfixtures/str_constant.go index ba5b4d65..58d0683d 100644 --- a/testfixtures/str_constant.go +++ b/testfixtures/str_constant.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_iterative_replace.go b/testfixtures/str_iterative_replace.go index 3286cb72..0392c1ee 100644 --- a/testfixtures/str_iterative_replace.go +++ b/testfixtures/str_iterative_replace.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_kebab.go b/testfixtures/str_kebab.go index 9eeeece1..d24fb465 100644 --- a/testfixtures/str_kebab.go +++ b/testfixtures/str_kebab.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_pad.go b/testfixtures/str_pad.go index 3b26b6d8..53d02336 100644 --- a/testfixtures/str_pad.go +++ b/testfixtures/str_pad.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_pascal.go b/testfixtures/str_pascal.go index 362d2a38..80371e31 100644 --- a/testfixtures/str_pascal.go +++ b/testfixtures/str_pascal.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/str_snake.go b/testfixtures/str_snake.go index 13af83f1..96dc0f15 100644 --- a/testfixtures/str_snake.go +++ b/testfixtures/str_snake.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/truncate_label.go b/testfixtures/truncate_label.go index 0b35c036..9d37f90a 100644 --- a/testfixtures/truncate_label.go +++ b/testfixtures/truncate_label.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/testfixtures/url_parse.go b/testfixtures/url_parse.go index 57f4ed22..45f46044 100644 --- a/testfixtures/url_parse.go +++ b/testfixtures/url_parse.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/tools/tools.go b/tools/tools.go index d1f178dd..cb209888 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,4 +1,5 @@ -// Copyright 2023-2024, Ryan Parman +// Copyright 2023-2024, Northwood Labs +// Copyright 2023-2024, Ryan Parman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.