Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Objects ¶
func Objects(uris ...string) cli.ValueSourceChain
Objects is a helper function to encapsulate a number of ValueSource together as a ValueSourceChain. It expects S3 URIs in the format s3://bucket/key.
Types ¶
type ValueSource ¶
type ValueSource struct {
Bucket string
Key string
Options []func(*config.LoadOptions) error
}
ValueSource retrieves values from an AWS S3 object. It implements the cli.ValueSource interface.
func Object ¶
func Object(bucket, key string, opts ...func(*config.LoadOptions) error) *ValueSource
Object creates a new ValueSource for the given bucket and key. Optional AWS SDK configuration options can be provided.
func (*ValueSource) GoString ¶
func (f *ValueSource) GoString() string
GoString returns a Go-syntax representation of the ValueSource.
func (*ValueSource) Lookup ¶
func (f *ValueSource) Lookup() (string, bool)
Lookup retrieves the object content from S3. It returns the object content as a string and a boolean indicating whether the retrieval was successful.
func (*ValueSource) String ¶
func (f *ValueSource) String() string
String returns a string representation of the ValueSource.
Click to show internal directories.
Click to hide internal directories.