Documentation ¶
Index ¶
- Constants
- func GoogleCredentials(ctx context.Context, scopes ...string) (cred *google.Credentials, err error)
- func NewDockerClient() (*dockerclient.Client, error)
- func NewGCPCloudFunctionsClient(ctx context.Context, cred *google.Credentials) (*cloudfunctions.Service, error)
- func NewGCPCloudResourceManagerClient(ctx context.Context, cred *google.Credentials) (*cloudresourcemanager.Service, error)
- func NewGCPCloudSchedulerClient(ctx context.Context, cred *google.Credentials) (*cloudscheduler.Service, error)
- func NewGCPComputeClient(ctx context.Context, cred *google.Credentials) (*compute.Service, error)
- func NewGCPIAMClient(ctx context.Context, cred *google.Credentials) (*iam.Service, error)
- func NewGCPLoggingClient(ctx context.Context, cred *google.Credentials) (*logging.Client, error)
- func NewGCPMonitoringAlertPolicyClient(ctx context.Context, cred *google.Credentials) (*monitoring.AlertPolicyClient, error)
- func NewGCPMonitoringNotificationChannelClient(ctx context.Context, cred *google.Credentials) (*monitoring.NotificationChannelClient, error)
- func NewGCPMonitoringUptimeCheckClient(ctx context.Context, cred *google.Credentials) (*monitoring.UptimeCheckClient, error)
- func NewGCPRunClient(ctx context.Context, cred *google.Credentials, region string) (*run.APIService, error)
- func NewGCPSQLAdminClient(ctx context.Context, cred *google.Credentials) (*sqladmin.Service, error)
- func NewGCPSecretManagerClient(ctx context.Context, cred *google.Credentials) (*secretmanager.Service, error)
- func NewGCPServiceUsageClient(ctx context.Context, cred *google.Credentials) (*serviceusage.Service, error)
- func NewGCPStorageClient(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) GCPCloudFunctionsClient(ctx context.Context) (*cloudfunctions.Service, error)
- func (c *PluginContext) GCPCloudSchedulerClient(ctx context.Context) (*cloudscheduler.Service, error)
- func (c *PluginContext) GCPComputeClient(ctx context.Context) (*compute.Service, error)
- func (c *PluginContext) GCPMonitoringAlertPolicyClient(ctx context.Context) (*monitoring.AlertPolicyClient, error)
- func (c *PluginContext) GCPMonitoringNotificationChannelClient(ctx context.Context) (*monitoring.NotificationChannelClient, error)
- func (c *PluginContext) GCPMonitoringUptimeCheckClient(ctx context.Context) (*monitoring.UptimeCheckClient, error)
- func (c *PluginContext) GCPRunClient(ctx context.Context, region string) (*run.APIService, error)
- func (c *PluginContext) GCPSQLAdminClient(ctx context.Context) (*sqladmin.Service, error)
- func (c *PluginContext) GCPServiceUsageClient(ctx context.Context) (*serviceusage.Service, error)
- func (c *PluginContext) GCPStorageClient(ctx context.Context) (*storage.Client, error)
- func (c *PluginContext) GoogleCredentials() *google.Credentials
- func (c *PluginContext) Settings() *Settings
- type Settings
Constants ¶
View Source
const CredentialsEnvVar = "GCLOUD_SERVICE_KEY"
Variables ¶
This section is empty.
Functions ¶
func GoogleCredentials ¶
func NewDockerClient ¶
func NewDockerClient() (*dockerclient.Client, error)
func NewGCPCloudFunctionsClient ¶ added in v0.1.107
func NewGCPCloudFunctionsClient(ctx context.Context, cred *google.Credentials) (*cloudfunctions.Service, error)
func NewGCPCloudResourceManagerClient ¶ added in v0.1.58
func NewGCPCloudResourceManagerClient(ctx context.Context, cred *google.Credentials) (*cloudresourcemanager.Service, error)
func NewGCPCloudSchedulerClient ¶ added in v0.1.107
func NewGCPCloudSchedulerClient(ctx context.Context, cred *google.Credentials) (*cloudscheduler.Service, error)
func NewGCPComputeClient ¶
func NewGCPComputeClient(ctx context.Context, cred *google.Credentials) (*compute.Service, error)
func NewGCPIAMClient ¶ added in v0.1.58
func NewGCPIAMClient(ctx context.Context, cred *google.Credentials) (*iam.Service, error)
func NewGCPLoggingClient ¶ added in v0.1.82
func NewGCPMonitoringAlertPolicyClient ¶ added in v0.1.101
func NewGCPMonitoringAlertPolicyClient(ctx context.Context, cred *google.Credentials) (*monitoring.AlertPolicyClient, error)
func NewGCPMonitoringNotificationChannelClient ¶ added in v0.1.101
func NewGCPMonitoringNotificationChannelClient(ctx context.Context, cred *google.Credentials) (*monitoring.NotificationChannelClient, error)
func NewGCPMonitoringUptimeCheckClient ¶ added in v0.1.101
func NewGCPMonitoringUptimeCheckClient(ctx context.Context, cred *google.Credentials) (*monitoring.UptimeCheckClient, error)
func NewGCPRunClient ¶
func NewGCPSQLAdminClient ¶ added in v0.1.58
func NewGCPSecretManagerClient ¶ added in v0.1.91
func NewGCPSecretManagerClient(ctx context.Context, cred *google.Credentials) (*secretmanager.Service, error)
func NewGCPServiceUsageClient ¶ added in v0.1.58
func NewGCPServiceUsageClient(ctx context.Context, cred *google.Credentials) (*serviceusage.Service, error)
func NewGCPStorageClient ¶ added in v0.1.82
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) GCPCloudFunctionsClient ¶ added in v0.1.107
func (c *PluginContext) GCPCloudFunctionsClient(ctx context.Context) (*cloudfunctions.Service, error)
func (*PluginContext) GCPCloudSchedulerClient ¶ added in v0.1.107
func (c *PluginContext) GCPCloudSchedulerClient(ctx context.Context) (*cloudscheduler.Service, error)
func (*PluginContext) GCPComputeClient ¶
func (c *PluginContext) GCPComputeClient(ctx context.Context) (*compute.Service, error)
func (*PluginContext) GCPMonitoringAlertPolicyClient ¶ added in v0.1.101
func (c *PluginContext) GCPMonitoringAlertPolicyClient(ctx context.Context) (*monitoring.AlertPolicyClient, error)
func (*PluginContext) GCPMonitoringNotificationChannelClient ¶ added in v0.1.101
func (c *PluginContext) GCPMonitoringNotificationChannelClient(ctx context.Context) (*monitoring.NotificationChannelClient, error)
func (*PluginContext) GCPMonitoringUptimeCheckClient ¶ added in v0.1.101
func (c *PluginContext) GCPMonitoringUptimeCheckClient(ctx context.Context) (*monitoring.UptimeCheckClient, error)
func (*PluginContext) GCPRunClient ¶
func (c *PluginContext) GCPRunClient(ctx context.Context, region string) (*run.APIService, error)
func (*PluginContext) GCPSQLAdminClient ¶ added in v0.1.19
func (*PluginContext) GCPServiceUsageClient ¶
func (c *PluginContext) GCPServiceUsageClient(ctx context.Context) (*serviceusage.Service, error)
func (*PluginContext) GCPStorageClient ¶ added in v0.1.99
func (*PluginContext) GoogleCredentials ¶
func (c *PluginContext) GoogleCredentials() *google.Credentials
func (*PluginContext) Settings ¶
func (c *PluginContext) Settings() *Settings
Click to show internal directories.
Click to hide internal directories.