Documentation ¶
Index ¶
- func GoogleCredentials(ctx context.Context, scopes ...string) (*google.Credentials, error)
- func NewDockerClient() (*dockerclient.Client, error)
- func NewGCPCloudResourceManager(ctx context.Context, cred *google.Credentials) (*cloudresourcemanager.Service, error)
- func NewGCPComputeClient(ctx context.Context, cred *google.Credentials) (*compute.Service, error)
- func NewGCPRunClient(ctx context.Context, cred *google.Credentials, region string) (*run.APIService, error)
- func NewGCPServiceUsage(ctx context.Context, cred *google.Credentials) (*serviceusage.Service, error)
- func NewStorageClient(ctx context.Context, cred *google.Credentials) (*storage.Client, error)
- type PluginContext
- func (c *PluginContext) DockerClient() (*dockerclient.Client, error)
- func (c *PluginContext) Env() env.Enver
- func (c *PluginContext) FuncCache(key string, f func() (interface{}, error)) (interface{}, error)
- func (c *PluginContext) GCPComputeClient(ctx context.Context) (*compute.Service, error)
- func (c *PluginContext) GCPRunClient(ctx context.Context, region string) (*run.APIService, error)
- func (c *PluginContext) GCPServiceUsageClient(ctx context.Context) (*serviceusage.Service, error)
- func (c *PluginContext) GoogleCredentials() *google.Credentials
- func (c *PluginContext) Settings() *Settings
- func (c *PluginContext) StorageClient(ctx context.Context) (*storage.Client, error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoogleCredentials ¶
func NewDockerClient ¶
func NewDockerClient() (*dockerclient.Client, error)
func NewGCPCloudResourceManager ¶
func NewGCPCloudResourceManager(ctx context.Context, cred *google.Credentials) (*cloudresourcemanager.Service, error)
func NewGCPComputeClient ¶
func NewGCPComputeClient(ctx context.Context, cred *google.Credentials) (*compute.Service, error)
func NewGCPRunClient ¶
func NewGCPServiceUsage ¶
func NewGCPServiceUsage(ctx context.Context, cred *google.Credentials) (*serviceusage.Service, error)
func NewStorageClient ¶
Types ¶
type PluginContext ¶
type PluginContext struct {
// contains filtered or unexported fields
}
func NewPluginContext ¶
func NewPluginContext(e env.Enver, gcred *google.Credentials, settings *Settings) *PluginContext
func (*PluginContext) DockerClient ¶
func (c *PluginContext) DockerClient() (*dockerclient.Client, error)
func (*PluginContext) Env ¶
func (c *PluginContext) Env() env.Enver
func (*PluginContext) FuncCache ¶
func (c *PluginContext) FuncCache(key string, f func() (interface{}, error)) (interface{}, error)
func (*PluginContext) GCPComputeClient ¶
func (c *PluginContext) GCPComputeClient(ctx context.Context) (*compute.Service, error)
func (*PluginContext) GCPRunClient ¶
func (c *PluginContext) GCPRunClient(ctx context.Context, region string) (*run.APIService, error)
func (*PluginContext) GCPServiceUsageClient ¶
func (c *PluginContext) GCPServiceUsageClient(ctx context.Context) (*serviceusage.Service, error)
func (*PluginContext) GoogleCredentials ¶
func (c *PluginContext) GoogleCredentials() *google.Credentials
func (*PluginContext) Settings ¶
func (c *PluginContext) Settings() *Settings
func (*PluginContext) StorageClient ¶
Click to show internal directories.
Click to hide internal directories.