Documentation ¶
Index ¶
- Constants
- type AwsParamSink
- type AwsSecretsManagerSink
- type BaseSink
- type BufSink
- type CircleCiSink
- type GitHubActionsSecretSink
- func (s *GitHubActionsSecretSink) Kind() Kind
- func (s *GitHubActionsSecretSink) WithClient(client *github.Client, owner string, repo string) *GitHubActionsSecretSink
- func (s *GitHubActionsSecretSink) WithStaticTokenAuthClient(token string, owner string, repo string) *GitHubActionsSecretSink
- func (s *GitHubActionsSecretSink) Write(ctx context.Context, name string, value string) error
- type HerokuServiceIface
- type HerokuSink
- type Kind
- type Sink
- type Sinks
- type StdoutSink
- type TravisCiSink
Constants ¶
const ( // TravisBaseURL is the base url for travisCI TravisBaseURL string = travis.ApiComUrl )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsParamSink ¶
type AwsParamSink struct { BaseSink `yaml:",inline"` RoleArn string `yaml:"role_arn"` ExternalID string `yaml:"external_id"` Region string `yaml:"region"` Client *cziAws.Client `yaml:"client"` }
func (*AwsParamSink) Kind ¶
func (sink *AwsParamSink) Kind() Kind
type AwsSecretsManagerSink ¶
type AwsSecretsManagerSink struct { BaseSink `yaml:",inline"` RoleArn string `yaml:"role_arn"` ExternalID string `yaml:"external_id"` Region string `yaml:"region"` Client *cziAws.Client `yaml:"client"` }
func (*AwsSecretsManagerSink) Kind ¶
func (sink *AwsSecretsManagerSink) Kind() Kind
type BaseSink ¶
func (*BaseSink) GetKeyToName ¶
type BufSink ¶
type BufSink struct { BaseSink `yaml:",inline"` // contains filtered or unexported fields }
A BufSink represents a sink that prints to a buffer.
func NewBufSink ¶
func NewBufSink() *BufSink
type CircleCiSink ¶ added in v0.4.0
type CircleCiSink struct { BaseSink `yaml:",inline"` Client *circleci.Client Account string Repo string }
CircleCiSink is a circleci sink
func (*CircleCiSink) Kind ¶ added in v0.4.0
func (sink *CircleCiSink) Kind() Kind
Kind returns the kind of this sink
func (*CircleCiSink) WithCircleClient ¶ added in v0.4.0
func (sink *CircleCiSink) WithCircleClient(client *circleci.Client, account string, repo string) *CircleCiSink
WithCircleClient configures a circleci client for this sink
type GitHubActionsSecretSink ¶ added in v0.5.0
type GitHubActionsSecretSink struct { BaseSink `yaml:",inline"` // contains filtered or unexported fields }
GitHubActionsSecretSink holds the configuration for a Github actions secret
func (*GitHubActionsSecretSink) Kind ¶ added in v0.5.0
func (s *GitHubActionsSecretSink) Kind() Kind
Kind returns the kind of this sink
func (*GitHubActionsSecretSink) WithClient ¶ added in v0.5.0
func (s *GitHubActionsSecretSink) WithClient(client *github.Client, owner string, repo string) *GitHubActionsSecretSink
WithClient configures a github client for this sink
func (*GitHubActionsSecretSink) WithStaticTokenAuthClient ¶ added in v0.5.0
func (s *GitHubActionsSecretSink) WithStaticTokenAuthClient(token string, owner string, repo string) *GitHubActionsSecretSink
WithStaticTokenAuthClient configures a github client for this sink using an oauth token
type HerokuServiceIface ¶ added in v0.5.7
type HerokuSink ¶ added in v0.5.7
type HerokuSink struct { BaseSink `yaml:",inline"` Client HerokuServiceIface `yaml:"client"` AppIdentity string `yaml:"AppIdentity"` }
func (*HerokuSink) Kind ¶ added in v0.5.7
func (sink *HerokuSink) Kind() Kind
Kind returns the kind of this sink
func (*HerokuSink) WithHerokuClient ¶ added in v0.5.7
func (sink *HerokuSink) WithHerokuClient(client HerokuServiceIface) *HerokuSink
type Sink ¶
type Sink interface { Write(ctx context.Context, name string, val string) error GetKeyToName() map[string]string Kind() Kind }
Sink is the interface for all credential sinks.
Write updates the value of the credential with the given name in the underlying sink. Unless otherwise specified, Write overwrites existing values and does not create new credentials in the sink. It returns any error encountered that caused the write to stop early.
GetKeyToName returns the KeyToName field's value.
Kind returns the kind of sink.
type StdoutSink ¶ added in v0.3.0
type StdoutSink struct {
BaseSink `yaml:",inline"`
}
A StdoutSink
func NewStdoutSink ¶ added in v0.3.0
func NewStdoutSink() *StdoutSink
func (*StdoutSink) Kind ¶ added in v0.3.0
func (sink *StdoutSink) Kind() Kind
func (*StdoutSink) WithKeyToName ¶ added in v0.3.0
func (sink *StdoutSink) WithKeyToName(m map[string]string) *StdoutSink
type TravisCiSink ¶
type TravisCiSink struct { BaseSink `yaml:",inline"` RepoSlug string `yaml:"repo_slug"` Client *travis.Client `yaml:"client"` }
TravisCiSink is a travisCi sink
func (*TravisCiSink) Kind ¶
func (sink *TravisCiSink) Kind() Kind
Kind returns the kind of this sink
func (*TravisCiSink) WithTravisClient ¶
func (sink *TravisCiSink) WithTravisClient(client *travis.Client) *TravisCiSink
WithTravisClient configures a travisCI client for this sink