Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindBuf Kind = "Buffer" KindTravisCi Kind = "TravisCI" KindAwsParamStore Kind = "AWSParameterStore" KindAwsSecretsManager Kind = "AWSSecretsManager" ErrUnknownKind Error = "UnknownSink" )
View Source
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 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 TravisCiSink ¶
type TravisCiSink struct { BaseSink `yaml:",inline"` RepoSlug string `yaml:"repo_slug"` Client *travis.Client `yaml:"client"` }
TravisCiSink returns the
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
Click to show internal directories.
Click to hide internal directories.