Documentation ¶
Index ¶
- type AWSStaticCreds
- func (s *AWSStaticCreds) GetConfigOptFns() []func(*config.LoadOptions) error
- func (staticCreds *AWSStaticCreds) GetEcsTasksData(cluster string, serviceName string) ([]*EcsTaskData, error)
- func (staticCreds *AWSStaticCreds) GetLambdaPackageData(functionName, functionVersion string) ([]*LambdaData, error)
- func (staticCreds *AWSStaticCreds) GetS3Data(bucket string, logger *logger.Logger) ([]*S3Data, error)
- func (staticCreds *AWSStaticCreds) NewAWSConfigFromEnvOrFlags() (aws.Config, error)
- func (staticCreds *AWSStaticCreds) NewECSClient() (*ecs.Client, error)
- func (staticCreds *AWSStaticCreds) NewLambdaClient() (*lambda.Client, error)
- func (staticCreds *AWSStaticCreds) NewS3Client() (*s3.Client, error)
- type EcsEnvRequest
- type EcsTaskData
- type LambdaData
- type LambdaEnvRequest
- type S3Data
- type S3EnvRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSStaticCreds ¶ added in v0.1.34
AWSStaticCreds represents static creds provided by user
func (*AWSStaticCreds) GetConfigOptFns ¶ added in v0.1.34
func (s *AWSStaticCreds) GetConfigOptFns() []func(*config.LoadOptions) error
GetConfigOptFns returns a slice of config loading options functions based on user-provided static creds
func (*AWSStaticCreds) GetEcsTasksData ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) GetEcsTasksData(cluster string, serviceName string) ([]*EcsTaskData, error)
GetEcsTasksData returns a list of tasks data for an ECS cluster or service
func (*AWSStaticCreds) GetLambdaPackageData ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) GetLambdaPackageData(functionName, functionVersion string) ([]*LambdaData, error)
GetLambdaPackageData returns a digest and metadata of a Lambda function package
func (*AWSStaticCreds) GetS3Data ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) GetS3Data(bucket string, logger *logger.Logger) ([]*S3Data, error)
GetS3Data returns a digest and metadata of the S3 bucket content
func (*AWSStaticCreds) NewAWSConfigFromEnvOrFlags ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) NewAWSConfigFromEnvOrFlags() (aws.Config, error)
NewAWSConfigFromEnvOrFlags returns an AWS config that can be used to construct AWS service clients. Credentials for config can be sourced from multiple sources, in this order: 1) static credentials (from CLI flags or KOSLI env vars), if provided 2) AWS Environment variables 3) Shared AWS Configuration/Credentials files (see https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html) more details can be found here: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
func (*AWSStaticCreds) NewECSClient ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) NewECSClient() (*ecs.Client, error)
NewECSClient returns a new ECS API client
func (*AWSStaticCreds) NewLambdaClient ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) NewLambdaClient() (*lambda.Client, error)
NewLambdaClient returns a new Lambda API client
func (*AWSStaticCreds) NewS3Client ¶ added in v0.1.34
func (staticCreds *AWSStaticCreds) NewS3Client() (*s3.Client, error)
NewS3Client returns a new S3 API client
type EcsEnvRequest ¶
type EcsEnvRequest struct { Artifacts []*EcsTaskData `json:"artifacts"` Type string `json:"type"` Id string `json:"id"` }
EcsEnvRequest represents the PUT request body to be sent to kosli from ECS
type EcsTaskData ¶
type EcsTaskData struct { TaskArn string `json:"taskArn"` Digests map[string]string `json:"digests"` StartedAt int64 `json:"creationTimestamp"` }
EcsTaskData represents the harvested ECS task data
func NewEcsTaskData ¶
NewEcsTaskData creates a NewEcsTaskData object from an ECS task
type LambdaData ¶
type LambdaData struct { Digests map[string]string `json:"digests"` LastModifiedTimestamp int64 `json:"creationTimestamp"` }
LambdaData represents the harvested Lambda artifacts data
type LambdaEnvRequest ¶
type LambdaEnvRequest struct { Artifacts []*LambdaData `json:"artifacts"` Type string `json:"type"` Id string `json:"id"` }
LambdaEnvRequest represents the PUT request body to be sent to kosli from a server
type S3Data ¶
type S3Data struct { Digests map[string]string `json:"digests"` LastModifiedTimestamp int64 `json:"creationTimestamp"` }
S3Data represents the harvested S3 artifacts data
type S3EnvRequest ¶
type S3EnvRequest struct { Artifacts []*S3Data `json:"artifacts"` Type string `json:"type"` Id string `json:"id"` }
S3EnvRequest represents the PUT request body to be sent to kosli from a server