Documentation ¶
Index ¶
- Constants
- Variables
- func SetLogLevel(level string)
- type App
- func (app *App) DeleteImages(ctx context.Context, repo string, ids []ecrTypes.ImageIdentifier, opt Option) error
- func (app *App) GenerateConfig(ctx context.Context, configFile string, opt Option) error
- func (app *App) NewCLI() *cli.App
- func (app *App) NewDeleteCommand() *cli.Command
- func (app *App) NewGenerateCommand() *cli.Command
- func (app *App) NewLambdaAction() func(c *cli.Context) error
- func (app *App) NewPlanCommand() *cli.Command
- func (app *App) Run(ctx context.Context, path string, opt Option) error
- type ClusterConfig
- type Config
- type LambdaConfig
- type Option
- type RepoSummary
- type RepositoryConfig
- type Summary
- type SummaryTable
- type TaskdefConfig
Constants ¶
View Source
const ( SummaryTypeImage = "Image" SummaryTypeImageIndex = "Image index" SummaryTypeSociIndex = "Soci index" )
View Source
const (
MediaTypeSociIndex = "application/vnd.amazon.soci.index.v1+json"
)
Variables ¶
View Source
var ( DefaultKeepCount = 5 DefaultExpiresStr = "30d" DefaultKeepTagPatterns = []string{"latest"} )
View Source
var LogLevelFilter = &logutils.LevelFilter{ Levels: []logutils.LogLevel{"debug", "info", "notice", "warn", "error"}, ModifierFuncs: []logutils.ModifierFunc{ nil, logutils.Color(color.FgWhite), logutils.Color(color.FgHiBlue), logutils.Color(color.FgYellow), logutils.Color(color.FgRed, color.Bold), }, Writer: os.Stderr, }
Functions ¶
func SetLogLevel ¶ added in v0.2.0
func SetLogLevel(level string)
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) DeleteImages ¶
func (*App) GenerateConfig ¶ added in v0.2.0
func (*App) NewDeleteCommand ¶ added in v0.2.0
func (app *App) NewDeleteCommand() *cli.Command
func (*App) NewGenerateCommand ¶ added in v0.2.0
func (app *App) NewGenerateCommand() *cli.Command
func (*App) NewLambdaAction ¶ added in v0.2.0
func (*App) NewPlanCommand ¶ added in v0.2.0
func (app *App) NewPlanCommand() *cli.Command
type ClusterConfig ¶
type ClusterConfig struct { Name string `yaml:"name,omitempty"` NamePattern string `yaml:"name_pattern,omitempty"` }
func (*ClusterConfig) Match ¶
func (c *ClusterConfig) Match(name string) bool
func (*ClusterConfig) Validate ¶
func (c *ClusterConfig) Validate() error
type Config ¶
type Config struct { Clusters []*ClusterConfig `yaml:"clusters"` TaskDefinitions []*TaskdefConfig `yaml:"task_definitions"` LambdaFunctions []*LambdaConfig `yaml:"lambda_functions"` Repositories []*RepositoryConfig `yaml:"repositories"` }
func LoadConfig ¶
type LambdaConfig ¶ added in v0.1.0
type LambdaConfig struct { Name string `yaml:"name,omitempty"` NamePattern string `yaml:"name_pattern,omitempty"` KeepCount int64 `yaml:"keep_count,omitempty"` KeepAliase bool `yaml:"keep_aliase,omitempty"` }
func (*LambdaConfig) Match ¶ added in v0.1.0
func (c *LambdaConfig) Match(name string) bool
func (*LambdaConfig) Validate ¶ added in v0.1.0
func (c *LambdaConfig) Validate() error
type RepoSummary ¶ added in v0.4.0
type RepoSummary []*Summary
func NewRepoSummary ¶ added in v0.4.0
func NewRepoSummary(repo string) RepoSummary
func (RepoSummary) Add ¶ added in v0.4.0
func (s RepoSummary) Add(img ecrTypes.ImageDetail)
func (RepoSummary) Expire ¶ added in v0.4.0
func (s RepoSummary) Expire(img ecrTypes.ImageDetail)
type RepositoryConfig ¶
type RepositoryConfig struct { Name string `yaml:"name,omitempty"` NamePattern string `yaml:"name_pattern,omitempty"` Expires string `yaml:"expires,omitempty"` KeepCount int64 `yaml:"keep_count,omitempty"` KeepTagPatterns []string `yaml:"keep_tag_patterns,omitempty"` // contains filtered or unexported fields }
func (*RepositoryConfig) MatchName ¶
func (r *RepositoryConfig) MatchName(name string) bool
func (*RepositoryConfig) MatchTag ¶
func (r *RepositoryConfig) MatchTag(tag string) bool
func (*RepositoryConfig) Validate ¶
func (r *RepositoryConfig) Validate() error
type SummaryTable ¶ added in v0.4.0
type SummaryTable []*Summary
type TaskdefConfig ¶ added in v0.1.0
type TaskdefConfig struct { Name string `yaml:"name,omitempty"` NamePattern string `yaml:"name_pattern,omitempty"` KeepCount int64 `yaml:"keep_count,omitempty"` }
func (*TaskdefConfig) Match ¶ added in v0.1.0
func (c *TaskdefConfig) Match(name string) bool
func (*TaskdefConfig) Validate ¶ added in v0.1.0
func (c *TaskdefConfig) Validate() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.