gcs

package
v0.0.0-...-60cae77 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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