aws

package
v0.1.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSStaticCreds added in v0.1.34

type AWSStaticCreds struct {
	AccessKeyID     string
	SecretAccessKey string
	Region          string
}

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

func NewEcsTaskData(taskArn string, digests map[string]string, startedAt time.Time) *EcsTaskData

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL