Documentation ¶
Index ¶
- type GCEClient
- func (client *GCEClient) Auth(ctx context.Context, opts ...option.ClientOption) error
- func (client *GCEClient) DeleteResource(projectID string, resource *resources.Resource) error
- func (client *GCEClient) 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 GCEClient ¶
Client for a Compute Engine Resource.
func NewGCEClient ¶
func NewGCEClient() *GCEClient
func (*GCEClient) Auth ¶
Auth authenticates the client to access Compute Engine resources. See https://pkg.go.dev/google.golang.org/api/option?tab=doc for more information about passing options.
func (*GCEClient) DeleteResource ¶
DeleteResource deletes the specificed Compute Engine instance.
func (*GCEClient) GetResources ¶
func (client *GCEClient) GetResources(projectID string, config *reaperconfig.ResourceConfig) ([]*resources.Resource, error)
GetResources gets the Compute Engine instances that pass the filters defined in the ResourceConfig
Click to show internal directories.
Click to hide internal directories.