provider

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrSubscriptionRequired = "SubscriptionRequiredException"
)

Variables

View Source
var ResourceTypes = map[string]model.ResourceType{

	"Doppler/Config": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Config",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListConfigs),
		GetDescriber:    nil,
	},

	"Doppler/Environment": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Environment",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListEnvironments),
		GetDescriber:    nil,
	},

	"Doppler/Group": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Group",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListGroups),
		GetDescriber:    DescribeSingleByDoppler(describer.GetGroup),
	},

	"Doppler/Integration": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Integration",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListIntegrations),
		GetDescriber:    DescribeSingleByDoppler(describer.GetIntegration),
	},

	"Doppler/Project/Member": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Project/Member",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListProjectMembers),
		GetDescriber:    nil,
	},

	"Doppler/Project/Role": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Project/Role",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListProjectRoles),
		GetDescriber:    DescribeSingleByDoppler(describer.GetProjectRole),
	},

	"Doppler/Project": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Project",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListProjects),
		GetDescriber:    DescribeSingleByDoppler(describer.GetProject),
	},

	"Doppler/Secret": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/Secret",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListSecrets),
		GetDescriber:    nil,
	},

	"Doppler/ServiceAccount": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/ServiceAccount",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListServiceAccounts),
		GetDescriber:    DescribeSingleByDoppler(describer.GetServiceAccount),
	},

	"Doppler/ServiceAccount/Token": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/ServiceAccount/Token",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListServiceAccountTokens),
		GetDescriber:    nil,
	},

	"Doppler/ServiceToken": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/ServiceToken",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListServiceTokens),
		GetDescriber:    nil,
	},

	"Doppler/TrustIP": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/TrustIP",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListIPs),
		GetDescriber:    nil,
	},

	"Doppler/WorkPlace": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/WorkPlace",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListWorkplaces),
		GetDescriber:    nil,
	},

	"Doppler/WorkPlace/Role": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/WorkPlace/Role",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListWorkplaceRoles),
		GetDescriber:    DescribeSingleByDoppler(describer.GetWorkplaceRole),
	},

	"Doppler/WorkPlace/User": {
		IntegrationType: configs.IntegrationName,
		ResourceName:    "Doppler/WorkPlace/User",
		Tags:            map[string][]string{},
		Labels:          map[string]string{},
		Annotations:     map[string]string{},
		ListDescriber:   DescribeListByDoppler(describer.ListWorkplaceUsers),
		GetDescriber:    DescribeSingleByDoppler(describer.GetWorkplaceUser),
	},
}

Functions

func AccountCredentialsFromMap

func AccountCredentialsFromMap(m map[string]any) (configs.IntegrationCredentials, error)

AccountCredentialsFromMap TODO: converts a map to an configs.IntegrationCredentials.

func AdjustResource

func AdjustResource(job describe.DescribeJob, resource *model.Resource) error

AdjustResource TODO: Do any needed adjustment on resource object before storing

func DescribeListByDoppler

DescribeListByDoppler A wrapper to pass doppler authorization to describer functions

func DescribeSingleByDoppler

DescribeSingleByDoppler A wrapper to pass doppler authorization to describer functions

func GetAdditionalParameters

func GetAdditionalParameters(job describe.DescribeJob) (map[string]string, error)

GetAdditionalParameters TODO: pass additional parameters needed in describer wrappers in /provider/describer_wrapper.go

func GetResourceMetadata

func GetResourceMetadata(job describe.DescribeJob, resource model.Resource) (map[string]string, error)

GetResourceMetadata TODO: Get metadata as a map to add to the resources

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL