models

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationCredentials

type IntegrationCredentials struct {
	AccountID                 string `json:"account_id"`
	AwsAccessKeyID            string `json:"aws_access_key_id"`
	AwsSecretAccessKey        string `json:"aws_secret_access_key"`
	CrossAccountRoleName      string `json:"cross_account_role_name"`
	RoleToAssumeInMainAccount string `json:"role_to_assume_in_main_account"`
	ExternalID                string `json:"external_id"`
}

type Resource

type Resource struct {
	// ARN uniquely identifies an AWS resource across regions, accounts and types.
	ARN string
	// ID doesn't uniquely identifies a resource. It will be used to create a
	// unique identifier by concating PARTITION|REGION|ACCOUNT|TYPE|ID
	ID          string
	Description interface{}

	Name      string
	Account   string
	Region    string
	Partition string
	Type      string
}

func (Resource) UniqueID

func (r Resource) UniqueID() string

type ResourceDescriber

any types are used to load your provider configuration.

type ResourceType

type ResourceType struct {
	IntegrationType integration.Type
	ResourceName    string

	ListDescriber ResourceDescriber
	GetDescriber  SingleResourceDescriber

	Annotations map[string]string
	Labels      map[string]string
	Tags        map[string][]string
}

func (ResourceType) GetIntegrationType

func (r ResourceType) GetIntegrationType() integration.Type

func (ResourceType) GetResourceName

func (r ResourceType) GetResourceName() string

func (ResourceType) GetTags

func (r ResourceType) GetTags() map[string][]string

type StreamSender

type StreamSender func(Resource) error

Jump to

Keyboard shortcuts

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