cli

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 18 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 ApplyLifecyclePolicyCmd

type ApplyLifecyclePolicyCmd struct {
	PolicyFile *os.File `arg:"" required:"" name:"policypath" help:"path of lifecycle policy file"`
	DryRun     bool     `name:"dry-run"`
}

func (*ApplyLifecyclePolicyCmd) Run

func (c *ApplyLifecyclePolicyCmd) Run(globals *Globals) error

type Cli

type Cli struct{}

func (*Cli) Run

func (c *Cli) Run()

type Config

type Config struct {
	*RawConfig
	AwsConfig aws.Config
}

type Globals

type Globals struct {
	Version    VersionFlag `name:"version" alias:"v" help:"print version and quit"`
	ConfigFile string      `name:"config" alias:"c" help:"dprc config file" default:"./dprcconfig.yml" type:"path"`
}

func (*Globals) ReadConfig

func (g *Globals) ReadConfig(ctx context.Context) (*Config, error)

type PullCmd

type PullCmd struct {
	Tag       string `name:"tag" short:"t" help:"tag for search condition"`
	Digest    string `name:"digest" short:"d" help:"digest for search condition"`
	CheckOnly bool   `name:"check-only" help:"checks for the existence of the package file, but does not download it"`
}

func (*PullCmd) Run

func (c *PullCmd) Run(globals *Globals) error

type PullCmdOutput

type PullCmdOutput struct {
	S3Bucket string `json:"s3_bucket"`
	S3Key    string `json:"s3_key"`
}

type PushCmd

type PushCmd struct {
	File *os.File `arg:"" required:"" name:"path" help:"path of deployment package file"`
	Tags []string `name:"tag" short:"t" help:"tag for the deployment package"`
}

func (*PushCmd) Run

func (c *PushCmd) Run(globals *Globals) error

type RawConfig

type RawConfig struct {
	Region       string `yaml:"region" json:"region" jsonschema:"required,description=AWS region of dpr resources,example=ap-northeast-1"`
	PackageStore struct {
		S3BucketName string `yaml:"s3-bucket-name" json:"s3-bucket-name" jsonschema:"required,description=Amazon S3 bucket name for dpr packages store"`
	} `yaml:"package-store" json:"package-store"`
	TagDB struct {
		DynamoDBTableName string `` /* 136-byte string literal not displayed */
	} `yaml:"tag-db" json:"tag-db"`
}

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (c *VersionCmd) Run(globals *Globals) error

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Jump to

Keyboard shortcuts

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