resources

package
v0.0.0-...-d0e585f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceTypeBucket = "Bucket"
View Source
const ResourceTypeBucketObject = "BucketObject"
View Source
const ResourceTypeCloudRun = "CloudRun"
View Source
const ResourceTypeCloudSQL = "CloudSQL"
View Source
const ResourceTypeComputeDisk = "ComputeDisk"
View Source
const ResourceTypeComputeInstance = "ComputeInstance"
View Source
const ResourceTypeFirewall = "Firewall"
View Source
const ResourceTypeGKECluster = "GKECluster"
View Source
const ResourceTypeGlobalIPAddress = "GlobalIPAddress"
View Source
const ResourceTypeGlobalNetworkEndpointGroup = "GlobalNetworkEndpointGroup"
View Source
const ResourceTypeIAMRole = "IAMRole"
View Source
const ResourceTypeIAMServiceAccount = "IAMServiceAccount"
View Source
const ResourceTypeIPAddress = "IPAddress"
View Source
const ResourceTypeKmsKey = "KMSKey"
View Source
const ResourceTypePubSubSubscription = "PubSubSubscription"
View Source
const ResourceTypePubSubTopic = "PubSubTopic"
View Source
const ResourceTypeRedis = "Redis"
View Source
const ResourceTypeRegionalNetworkEndpointGroup = "RegionalNetworkEndpointGroup"
View Source
const ResourceTypeRoute = "Route"
View Source
const ResourceTypeRouter = "Router"
View Source
const ResourceTypeSecret = "Secret"
View Source
const ResourceTypeSubnet = "Subnet"
View Source
const ResourceTypeVPC = "VPC"
View Source
const ResourceTypeVpcAccess = "VPCAccess"
View Source
const ResourceTypeZonalNetworkEndpointGroup = "ZonalNetworkEndpointGroup"

Variables

This section is empty.

Functions

func EqualStringPtr

func EqualStringPtr(v1, v2 *string) bool

func GetCloudRunClient

func GetCloudRunClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetCloudSQLClient

func GetCloudSQLClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetComputeDiskClient

func GetComputeDiskClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetComputeInstanceClient

func GetComputeInstanceClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetFirewallClient

func GetFirewallClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetGCSClient

func GetGCSClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetGKEClient

func GetGKEClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetGlobalIPAddressClient

func GetGlobalIPAddressClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetGlobalNetworkEndpointGroupClient

func GetGlobalNetworkEndpointGroupClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetIAMClient

func GetIAMClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetIPAddressClient

func GetIPAddressClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetKMSClient

func GetKMSClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetListerNames

func GetListerNames() []string

func GetNetworkClient

func GetNetworkClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetPubSubClient

func GetPubSubClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetRedisClient

func GetRedisClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetRegionalNetworkEndpointGroupClient

func GetRegionalNetworkEndpointGroupClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetRouteClient

func GetRouteClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetRouterClient

func GetRouterClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetSecretClient

func GetSecretClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetSubnetworkClient

func GetSubnetworkClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetVpcAccessClient

func GetVpcAccessClient(project *gcputil.Project) (gcputil.GCPClient, error)

func GetZonalNetworkEndpointGroupClient

func GetZonalNetworkEndpointGroupClient(project *gcputil.Project) (gcputil.GCPClient, error)

func UnPtrBool

func UnPtrBool(ptr *bool, def bool) bool

func UnPtrString

func UnPtrString(ptr *string, def string) string

func ZoneInRegionList

func ZoneInRegionList(zone string, regions []string) bool

Types

type Bucket

type Bucket struct {
	// contains filtered or unexported fields
}

func (*Bucket) GetOperationError

func (b *Bucket) GetOperationError(_ context.Context) error

func (*Bucket) Properties

func (b *Bucket) Properties() types.Properties

func (*Bucket) Remove

func (b *Bucket) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*Bucket) String

func (b *Bucket) String() string

type BucketObject

type BucketObject struct {
	// contains filtered or unexported fields
}

func (*BucketObject) GetOperationError

func (b *BucketObject) GetOperationError(_ context.Context) error

func (*BucketObject) Properties

func (b *BucketObject) Properties() types.Properties

func (*BucketObject) Remove

func (b *BucketObject) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*BucketObject) String

func (b *BucketObject) String() string

type CloudRun

type CloudRun struct {
	// contains filtered or unexported fields
}

func (*CloudRun) GetOperationError

func (x *CloudRun) GetOperationError(ctx context.Context) error

func (*CloudRun) Properties

func (x *CloudRun) Properties() types.Properties

func (*CloudRun) Remove

func (x *CloudRun) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*CloudRun) String

func (x *CloudRun) String() string

type CloudSQL

type CloudSQL struct {
	// contains filtered or unexported fields
}

func (*CloudSQL) GetOperationError

func (x *CloudSQL) GetOperationError(ctx context.Context) error

func (*CloudSQL) Properties

func (x *CloudSQL) Properties() types.Properties

func (*CloudSQL) Remove

func (x *CloudSQL) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*CloudSQL) String

func (x *CloudSQL) String() string

type ComputeDisk

type ComputeDisk struct {
	// contains filtered or unexported fields
}

func (*ComputeDisk) GetOperationError

func (x *ComputeDisk) GetOperationError(ctx context.Context) error

func (*ComputeDisk) Properties

func (x *ComputeDisk) Properties() types.Properties

func (*ComputeDisk) Remove

func (x *ComputeDisk) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*ComputeDisk) String

func (x *ComputeDisk) String() string

type ComputeInstance

type ComputeInstance struct {
	// contains filtered or unexported fields
}

func (*ComputeInstance) GetOperationError

func (x *ComputeInstance) GetOperationError(ctx context.Context) error

func (*ComputeInstance) Properties

func (x *ComputeInstance) Properties() types.Properties

func (*ComputeInstance) Remove

func (x *ComputeInstance) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*ComputeInstance) String

func (x *ComputeInstance) String() string

type FeatureFlagGetter

type FeatureFlagGetter interface {
	Resource
	FeatureFlags(config.FeatureFlags)
}

type Filter

type Filter interface {
	Resource
	Filter() error
}

type Firewall

type Firewall struct {
	// contains filtered or unexported fields
}

func (*Firewall) GetOperationError

func (x *Firewall) GetOperationError(ctx context.Context) error

func (*Firewall) Properties

func (x *Firewall) Properties() types.Properties

func (*Firewall) Remove

func (x *Firewall) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*Firewall) String

func (x *Firewall) String() string

type GKECluster

type GKECluster struct {
	// contains filtered or unexported fields
}

func (*GKECluster) GetOperationError

func (x *GKECluster) GetOperationError(_ context.Context) error

func (*GKECluster) Properties

func (x *GKECluster) Properties() types.Properties

func (*GKECluster) Remove

func (x *GKECluster) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*GKECluster) String

func (x *GKECluster) String() string

type GlobalIPAddress

type GlobalIPAddress struct {
	// contains filtered or unexported fields
}

func (*GlobalIPAddress) GetOperationError

func (x *GlobalIPAddress) GetOperationError(ctx context.Context) error

func (*GlobalIPAddress) Properties

func (x *GlobalIPAddress) Properties() types.Properties

func (*GlobalIPAddress) Remove

func (x *GlobalIPAddress) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*GlobalIPAddress) String

func (x *GlobalIPAddress) String() string

type GlobalNetworkEndpointGroup

type GlobalNetworkEndpointGroup struct {
	// contains filtered or unexported fields
}

func (*GlobalNetworkEndpointGroup) GetOperationError

func (x *GlobalNetworkEndpointGroup) GetOperationError(ctx context.Context) error

func (*GlobalNetworkEndpointGroup) Properties

func (*GlobalNetworkEndpointGroup) Remove

func (x *GlobalNetworkEndpointGroup) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*GlobalNetworkEndpointGroup) String

func (x *GlobalNetworkEndpointGroup) String() string

type IAMRole

type IAMRole struct {
	// contains filtered or unexported fields
}

func (*IAMRole) GetOperationError

func (x *IAMRole) GetOperationError(_ context.Context) error

func (*IAMRole) Properties

func (x *IAMRole) Properties() types.Properties

func (*IAMRole) Remove

func (x *IAMRole) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*IAMRole) String

func (x *IAMRole) String() string

type IAMServiceAccount

type IAMServiceAccount struct {
	// contains filtered or unexported fields
}

func (*IAMServiceAccount) GetOperationError

func (x *IAMServiceAccount) GetOperationError(_ context.Context) error

func (*IAMServiceAccount) Properties

func (x *IAMServiceAccount) Properties() types.Properties

func (*IAMServiceAccount) Remove

func (x *IAMServiceAccount) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*IAMServiceAccount) String

func (x *IAMServiceAccount) String() string

type IPAddress

type IPAddress struct {
	// contains filtered or unexported fields
}

func (*IPAddress) GetOperationError

func (x *IPAddress) GetOperationError(ctx context.Context) error

func (*IPAddress) Properties

func (x *IPAddress) Properties() types.Properties

func (*IPAddress) Remove

func (x *IPAddress) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*IPAddress) String

func (x *IPAddress) String() string

type KmsKey

type KmsKey struct {
	// contains filtered or unexported fields
}

func (*KmsKey) GetOperationError

func (x *KmsKey) GetOperationError(_ context.Context) error

func (*KmsKey) Properties

func (x *KmsKey) Properties() types.Properties

func (*KmsKey) Remove

func (x *KmsKey) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*KmsKey) String

func (x *KmsKey) String() string

type LegacyStringer

type LegacyStringer interface {
	Resource
	String() string
}

type PubSubSubscription

type PubSubSubscription struct {
	// contains filtered or unexported fields
}

func (*PubSubSubscription) GetOperationError

func (x *PubSubSubscription) GetOperationError(_ context.Context) error

func (*PubSubSubscription) Properties

func (x *PubSubSubscription) Properties() types.Properties

func (*PubSubSubscription) Remove

func (x *PubSubSubscription) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*PubSubSubscription) String

func (x *PubSubSubscription) String() string

type PubSubTopic

type PubSubTopic struct {
	// contains filtered or unexported fields
}

func (*PubSubTopic) GetOperationError

func (x *PubSubTopic) GetOperationError(_ context.Context) error

func (*PubSubTopic) Properties

func (x *PubSubTopic) Properties() types.Properties

func (*PubSubTopic) Remove

func (x *PubSubTopic) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*PubSubTopic) String

func (x *PubSubTopic) String() string

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func (*Redis) GetOperationError

func (x *Redis) GetOperationError(ctx context.Context) (err error)

func (*Redis) Properties

func (x *Redis) Properties() types.Properties

func (*Redis) Remove

func (x *Redis) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*Redis) String

func (x *Redis) String() string

type RegionalNetworkEndpointGroup

type RegionalNetworkEndpointGroup struct {
	// contains filtered or unexported fields
}

func (*RegionalNetworkEndpointGroup) GetOperationError

func (x *RegionalNetworkEndpointGroup) GetOperationError(ctx context.Context) error

func (*RegionalNetworkEndpointGroup) Properties

func (*RegionalNetworkEndpointGroup) Remove

func (x *RegionalNetworkEndpointGroup) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*RegionalNetworkEndpointGroup) String

type Resource

type Resource interface {
	Remove(*gcputil.Project, gcputil.GCPClient) error
	GetOperationError(context.Context) error
}

func ListBucketObjects

func ListBucketObjects(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListBuckets

func ListBuckets(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListCloudRuns

func ListCloudRuns(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListCloudSQLs

func ListCloudSQLs(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListComputeDisks

func ListComputeDisks(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListComputeInstances

func ListComputeInstances(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListFirewalls

func ListFirewalls(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListGKEClusters

func ListGKEClusters(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListGlobalIPAddresss

func ListGlobalIPAddresss(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListGlobalNetworkEndpointGroups

func ListGlobalNetworkEndpointGroups(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListIAMRoles

func ListIAMRoles(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListIAMServiceAccounts

func ListIAMServiceAccounts(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListIPAddresss

func ListIPAddresss(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListKmsKeys

func ListKmsKeys(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListPubSubSubscriptions

func ListPubSubSubscriptions(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListPubSubTopics

func ListPubSubTopics(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListRedis

func ListRedis(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListRegionalNetworkEndpointGroups

func ListRegionalNetworkEndpointGroups(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListRouters

func ListRouters(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListRoutes

func ListRoutes(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListSecret

func ListSecret(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListSubnets

func ListSubnets(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListVpcAccess

func ListVpcAccess(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListVpcs

func ListVpcs(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

func ListZonalNetworkEndpointGroups

func ListZonalNetworkEndpointGroups(project *gcputil.Project, client gcputil.GCPClient) ([]Resource, error)

type ResourceClientGetter

type ResourceClientGetter func(*gcputil.Project) (gcputil.GCPClient, error)

func GetClient

func GetClient(name string) ResourceClientGetter

type ResourceLister

type ResourceLister func(*gcputil.Project, gcputil.GCPClient) ([]Resource, error)

func GetLister

func GetLister(name string) ResourceLister

type ResourceMethod

type ResourceMethod struct {
	Lister       ResourceLister
	ClientGetter ResourceClientGetter
}

type ResourceMethods

type ResourceMethods map[string]ResourceMethod

type ResourcePropertyGetter

type ResourcePropertyGetter interface {
	Resource
	Properties() types.Properties
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

func (*Route) GetOperationError

func (x *Route) GetOperationError(ctx context.Context) error

func (*Route) Properties

func (x *Route) Properties() types.Properties

func (*Route) Remove

func (x *Route) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*Route) String

func (x *Route) String() string

type Router

type Router struct {
	// contains filtered or unexported fields
}

func (*Router) GetOperationError

func (x *Router) GetOperationError(ctx context.Context) error

func (*Router) Properties

func (x *Router) Properties() types.Properties

func (*Router) Remove

func (x *Router) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*Router) String

func (x *Router) String() string

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

func (*Secret) GetOperationError

func (x *Secret) GetOperationError(_ context.Context) error

func (*Secret) Properties

func (x *Secret) Properties() types.Properties

func (*Secret) Remove

func (x *Secret) Remove(project *gcputil.Project, client gcputil.GCPClient) error

func (*Secret) String

func (x *Secret) String() string

type Subnet

type Subnet struct {
	// contains filtered or unexported fields
}

func (*Subnet) GetOperationError

func (x *Subnet) GetOperationError(ctx context.Context) error

func (*Subnet) Properties

func (x *Subnet) Properties() types.Properties

func (*Subnet) Remove

func (x *Subnet) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*Subnet) String

func (x *Subnet) String() string

type Vpc

type Vpc struct {
	// contains filtered or unexported fields
}

func (*Vpc) GetOperationError

func (x *Vpc) GetOperationError(ctx context.Context) error

func (*Vpc) Properties

func (x *Vpc) Properties() types.Properties

func (*Vpc) Remove

func (x *Vpc) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*Vpc) String

func (x *Vpc) String() string

type VpcAccess

type VpcAccess struct {
	// contains filtered or unexported fields
}

func (*VpcAccess) GetOperationError

func (x *VpcAccess) GetOperationError(ctx context.Context) (err error)

func (*VpcAccess) Properties

func (x *VpcAccess) Properties() types.Properties

func (*VpcAccess) Remove

func (x *VpcAccess) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*VpcAccess) String

func (x *VpcAccess) String() string

type ZonalNetworkEndpointGroup

type ZonalNetworkEndpointGroup struct {
	// contains filtered or unexported fields
}

func (*ZonalNetworkEndpointGroup) GetOperationError

func (x *ZonalNetworkEndpointGroup) GetOperationError(ctx context.Context) error

func (*ZonalNetworkEndpointGroup) Properties

func (x *ZonalNetworkEndpointGroup) Properties() types.Properties

func (*ZonalNetworkEndpointGroup) Remove

func (x *ZonalNetworkEndpointGroup) Remove(project *gcputil.Project, client gcputil.GCPClient) (err error)

func (*ZonalNetworkEndpointGroup) String

func (x *ZonalNetworkEndpointGroup) String() string

Jump to

Keyboard shortcuts

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