Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingDatadogCredentials is returned when the datadog authentication details are missing ErrMissingDatadogCredentials = errors.New("missing datadog credentials") // ErrInvalidDatadogCredentials is returned when the datadog authentication details are invalid ErrInvalidDatadogCredentials = errors.New("invalid datadog credentials") // ErrDatadogBadRequest is returned when the datadog API rejects the update request ErrDatadogBadRequest = errors.New("bad request") // ErrDatadogIntegrationNotFound is returned when the existing integration ErrDatadogIntegrationNotFound = errors.New("existing datadog integration not found") // ErrIncorrectGCPKeyProvider is returned when attempting to use this location with a non-GCP key ErrIncorrectGCPKeyProvider = errors.New("this location only supports GCP service account keys") )
Functions ¶
This section is empty.
Types ¶
type Atlas ¶ added in v0.27.19
type Atlas struct {
ProjectID string
}
Atlas type
func (Atlas) Write ¶ added in v0.27.19
func (atlas Atlas) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type CircleCI ¶
type CircleCI struct { UsernameProject string KeyIDEnvVar string KeyEnvVar string Base64Decode bool }
CircleCI type
func (CircleCI) Write ¶
func (circle CircleCI) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
updateCircleCI updates the circleCI environment variable by deleting and then creating it again with the new key
type CircleCIContext ¶ added in v0.27.21
type CircleCIContext struct { ContextID string KeyIDEnvVar string KeyEnvVar string Base64Decode bool }
CircleCIContext type
func (CircleCIContext) Write ¶ added in v0.27.21
func (circleContext CircleCIContext) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type CircleCiClient ¶ added in v0.27.41
type CircleCiClient interface { ListEnvVars(string, string) ([]circleci.EnvVar, error) DeleteEnvVar(string, string, string) error AddEnvVar(string, string, string, string) (*circleci.EnvVar, error) }
CircleCiClient type
type Datadog ¶ added in v0.27.33
Datadog type
func (Datadog) Write ¶ added in v0.27.33
func (dd Datadog) Write(serviceAccountName string, wrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
Write
type Gcs ¶
Gcs type
func (Gcs) Write ¶
func (gcs Gcs) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type Git ¶
type Git struct { Filepath string FileType string OrgRepo string VerifyCircleCISuccess bool CircleCIDeployJobName string }
Git type
func (Git) Write ¶
func (git Git) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type GitHub ¶ added in v0.28.0
type GitHub struct { Base64Decode bool Env string KeyIDEnvVar string KeyEnvVar string Owner string Repo string }
GitHub type
func (GitHub) Write ¶ added in v0.28.0
func (github GitHub) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type GitHubActionsService ¶ added in v0.28.0
type GitHubActionsService interface { GetEnvPublicKey(context.Context, int, string) (*github.PublicKey, *github.Response, error) GetRepoPublicKey(context.Context, string, string) (*github.PublicKey, *github.Response, error) CreateOrUpdateEnvSecret(context.Context, int, string, *github.EncryptedSecret) (*github.Response, error) CreateOrUpdateRepoSecret(context.Context, string, string, *github.EncryptedSecret) (*github.Response, error) }
GitHubActionsService type
type Gocd ¶
Gocd type
func (Gocd) Write ¶
func (gocd Gocd) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type K8s ¶
type K8s struct { Project string Location string ClusterName string Namespace string SecretName string DataName string }
K8s type
func (K8s) Write ¶
func (k8s K8s) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type KeyWrapper ¶
KeyWrapper type
type KeyWriter ¶
type KeyWriter interface {
Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (UpdatedLocation, error)
}
KeyWriter interface
type SecretsManager ¶ added in v0.29.0
type SecretsManager struct { KeyParamName string KeyIDParamName string Region string ConvertToFile bool FileType string }
SecretsManager type
func (SecretsManager) Write ¶ added in v0.29.0
func (sm SecretsManager) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type Ssm ¶
type Ssm struct { KeyParamName string KeyIDParamName string Region string ConvertToFile bool FileType string }
Ssm type
func (Ssm) Write ¶
func (ssm Ssm) Write(serviceAccountName string, keyWrapper KeyWrapper, creds cred.Credentials) (updated UpdatedLocation, err error)
type UpdatedLocation ¶
UpdatedLocation type
Click to show internal directories.
Click to hide internal directories.