Documentation ¶
Index ¶
- type GCSBucketClient
- func (client GCSBucketClient) Auth(ctx context.Context, opts ...option.ClientOption) error
- func (client *GCSBucketClient) DeleteResource(projectID string, resource *resources.Resource) error
- func (client *GCSBucketClient) GetResources(projectID string, config *reaperconfig.ResourceConfig) ([]*resources.Resource, error)
- type GCSObjectClient
- func (client GCSObjectClient) Auth(ctx context.Context, opts ...option.ClientOption) error
- func (client *GCSObjectClient) DeleteResource(projectID string, resource *resources.Resource) error
- func (client *GCSObjectClient) GetResources(projectID string, config *reaperconfig.ResourceConfig) ([]*resources.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCSBucketClient ¶
type GCSBucketClient struct {
// contains filtered or unexported fields
}
GCSBucketClient is a client for GCS Buckets.
func NewGCSBucketClient ¶
func NewGCSBucketClient() *GCSBucketClient
NewGCSBucketClient creates a new GCS Bucket client.
func (GCSBucketClient) Auth ¶
func (client GCSBucketClient) Auth(ctx context.Context, opts ...option.ClientOption) error
Auth authenticates the GCS client for both GCS Buckets and Objects.
func (*GCSBucketClient) DeleteResource ¶
func (client *GCSBucketClient) DeleteResource(projectID string, resource *resources.Resource) error
DeleteResource deletes the given GCS Bucket.
func (*GCSBucketClient) GetResources ¶
func (client *GCSBucketClient) GetResources(projectID string, config *reaperconfig.ResourceConfig) ([]*resources.Resource, error)
GetResources gets the GCS Bucket resources that match the given ResourceConfig.
type GCSObjectClient ¶
type GCSObjectClient struct {
// contains filtered or unexported fields
}
GCSObjectClient is a client for GCS objects. Note that the Zone for a GCS Object is the GCS Bucket name.
func NewGCSObjectClient ¶
func NewGCSObjectClient() *GCSObjectClient
NewGCSObjectClient creates a new GCS Object client.
func (GCSObjectClient) Auth ¶
func (client GCSObjectClient) Auth(ctx context.Context, opts ...option.ClientOption) error
Auth authenticates the GCS client for both GCS Buckets and Objects.
func (*GCSObjectClient) DeleteResource ¶
func (client *GCSObjectClient) DeleteResource(projectID string, resource *resources.Resource) error
DeleteResource deletes the given GCS Object.
func (*GCSObjectClient) GetResources ¶
func (client *GCSObjectClient) GetResources(projectID string, config *reaperconfig.ResourceConfig) ([]*resources.Resource, error)
GetResources gets the GCS Object resources that match the given ResourceConfig.