Documentation
¶
Index ¶
- type AppInitRequest
- type AppShowOutput
- type CLI
- func (cli *CLI) AppDelete(profiles map[string]string) (string, error)
- func (cli *CLI) AppInit(opts *AppInitRequest) (string, error)
- func (cli *CLI) AppList() (string, error)
- func (cli *CLI) AppShow(appName string) (*AppShowOutput, error)
- func (cli *CLI) EnvDelete(envName, profile string) (string, error)
- func (cli *CLI) EnvInit(opts *EnvInitRequest) (string, error)
- func (cli *CLI) EnvList(appName string) (*EnvListOutput, error)
- func (cli *CLI) EnvShow(opts *EnvShowRequest) (*EnvShowOutput, error)
- func (cli *CLI) Help() (string, error)
- func (cli *CLI) Init(opts *InitRequest) (string, error)
- func (cli *CLI) SvcDelete(serviceName string) (string, error)
- func (cli *CLI) SvcDeploy(opts *SvcDeployInput) (string, error)
- func (cli *CLI) SvcInit(opts *SvcInitRequest) (string, error)
- func (cli *CLI) SvcList(appName string) (*SvcListOutput, error)
- func (cli *CLI) SvcLogs(opts *SvcLogsRequest) ([]SvcLogsOutput, error)
- func (cli *CLI) SvcShow(opts *SvcShowRequest) (*SvcShowOutput, error)
- func (cli *CLI) TaskRun(input *TaskRunInput) (string, error)
- func (cli *CLI) Version() (string, error)
- type EnvDescription
- type EnvInitRequest
- type EnvListOutput
- type EnvShowOutput
- type EnvShowRequest
- type EnvShowServices
- type InitRequest
- type SvcDeployInput
- type SvcDescription
- type SvcInitRequest
- type SvcListOutput
- type SvcLogsOutput
- type SvcLogsRequest
- type SvcShowConfigurations
- type SvcShowOutput
- type SvcShowRequest
- type SvcShowRoutes
- type SvcShowServiceDiscoveries
- type SvcShowVariables
- type TaskRunInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInitRequest ¶
AppInitRequest contains the parameters for calling copilot app init
type AppShowOutput ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a wrapper around os.execs
func (*CLI) AppInit ¶
func (cli *CLI) AppInit(opts *AppInitRequest) (string, error)
AppInit runs: copilot app init $a
--domain $d (optionally) --resource-tags $k1=$v1,$k2=$k2 (optionally)
func (*CLI) AppShow ¶
func (cli *CLI) AppShow(appName string) (*AppShowOutput, error)
AppShow runs: copilot app show
--name $n --json
func (*CLI) EnvInit ¶
func (cli *CLI) EnvInit(opts *EnvInitRequest) (string, error)
EnvInit runs: copilot env init
--name $n --app $a --profile $pr --prod (optional) --default-config (optional)
func (*CLI) EnvList ¶
func (cli *CLI) EnvList(appName string) (*EnvListOutput, error)
EnvList runs: copilot env ls
--app $a --json
func (*CLI) EnvShow ¶
func (cli *CLI) EnvShow(opts *EnvShowRequest) (*EnvShowOutput, error)
EnvShow runs: copilot env show
--app $a --name $n --json
func (*CLI) Init ¶
func (cli *CLI) Init(opts *InitRequest) (string, error)
Init runs: copilot init
--app $p --svc $s --svc-type $type --tag $t --dockerfile $d --port $port --deploy (optionally)
func (*CLI) SvcDeploy ¶
func (cli *CLI) SvcDeploy(opts *SvcDeployInput) (string, error)
SvcDeploy runs: copilot svc deploy
--name $n --env $e --tag $t
func (*CLI) SvcInit ¶
func (cli *CLI) SvcInit(opts *SvcInitRequest) (string, error)
SvcInit runs: copilot svc init
--name $n --svc-type $t --dockerfile $d --port $port
func (*CLI) SvcList ¶
func (cli *CLI) SvcList(appName string) (*SvcListOutput, error)
SvcList runs: copilot svc ls
--app $p --json
func (*CLI) SvcLogs ¶
func (cli *CLI) SvcLogs(opts *SvcLogsRequest) ([]SvcLogsOutput, error)
SvcLogs runs: copilot svc logs
--app $p --name $n --since $s --env $e --json
func (*CLI) SvcShow ¶
func (cli *CLI) SvcShow(opts *SvcShowRequest) (*SvcShowOutput, error)
SvcShow runs: copilot svc show
--app $p --name $n --json
func (*CLI) TaskRun ¶ added in v0.3.0
func (cli *CLI) TaskRun(input *TaskRunInput) (string, error)
TaskRun runs: copilot task run
-n $t --dockerfile $d --app $a (optionally) --env $e (optionally) --command $c (optionally) --env-vars $e1=$v1,$e2=$v2 (optionally) --default (optionally) --follow (optionally)
type EnvDescription ¶
type EnvInitRequest ¶
type EnvInitRequest struct {
AppName string
EnvName string
Profile string
Prod bool
CustomizedEnv bool
}
EnvInitRequest contains the parameters for calling copilot env init
type EnvListOutput ¶
type EnvListOutput struct {
Envs []EnvDescription `json:"environments"`
}
type EnvShowOutput ¶
type EnvShowOutput struct {
Environment EnvDescription `json:"environment"`
Services []EnvShowServices `json:"services"`
Tags map[string]string `json:"tags"`
}
type EnvShowRequest ¶
EnvShowRequest contains the parameters for calling copilot env show
type EnvShowServices ¶
type InitRequest ¶
type InitRequest struct {
AppName string
SvcName string
Deploy bool
ImageTag string
Dockerfile string
SvcType string
SvcPort string
}
InitRequest contains the parameters for calling copilot init
type SvcDeployInput ¶
SvcDeployInput contains the parameters for calling copilot svc deploy
type SvcDescription ¶
type SvcInitRequest ¶
SvcInitRequest contains the parameters for calling copilot svc init
type SvcListOutput ¶
type SvcListOutput struct {
Services []SvcDescription `json:"services"`
}
type SvcLogsOutput ¶
type SvcLogsRequest ¶
SvcLogsRequest contains the parameters for calling copilot svc logs
type SvcShowConfigurations ¶
type SvcShowOutput ¶
type SvcShowOutput struct {
SvcName string `json:"service"`
Type string `json:"type"`
AppName string `json:"application"`
Configs []SvcShowConfigurations `json:"configurations"`
ServiceDiscoveries []SvcShowServiceDiscoveries `json:"serviceDiscovery"`
Routes []SvcShowRoutes `json:"routes"`
Variables []SvcShowVariables `json:"variables"`
}
type SvcShowRequest ¶
SvcShowRequest contains the parameters for calling copilot svc show
type SvcShowRoutes ¶
type SvcShowVariables ¶
type TaskRunInput ¶ added in v0.3.0
type TaskRunInput struct {
AppName string
GroupName string
Image string
Dockerfile string
Subnets []string
SecurityGroups []string
Env string
Command string
EnvVars string
Default bool
Follow bool
}
TaskRunInput contains the parameters for calling copilot task run.