Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct {
App string `desc:"Specify the app label"`
AddHost []string `desc:"Add a custom host-to-IP mapping (host:ip)"`
Annotations map[string]string `desc:"Annotations to attach to this service"`
BuildBranch string `desc:"Build repository branch" default:"master"`
BuildSecret string `desc:"Set webhook secret"`
BuildRevision string `desc:"Build commit or tag"`
Command []string `desc:"Overwrite the default ENTRYPOINT of the image"`
Concurrency int `desc:"The maximum concurrent request a container can handle(autoscaling)" default:"10"`
Config []string `desc:"Configs to expose to the service (format: name:target)"`
Cpus string `desc:"Number of CPUs"`
DNSOption []string `desc:"Set DNS options (format: key:value or key)"`
DNSSearch []string `desc:"Set custom DNS search domains"`
DNS []string `desc:"Set custom DNS servers"`
E_Env []string `desc:"Set environment variables"`
EnvFile []string `desc:"Read in a file of environment variables"`
GlobalPermission []string `desc:"Permissions to grant to container's service account for all stacks"`
Group string `desc:"The GID to run the entrypoint of the container process"`
HealthCmd string `desc:"Command to run to check health"`
HealthFailureThreshold int `desc:"Consecutive failures needed to report unhealthy"`
HealthHeader map[string]string `desc:"HTTP Headers to send in GET request for healthcheck"`
HealthInitialDelay string `desc:"Start period for the container to initialize before starting healthchecks (ms|s|m|h)" default:"0s"`
HealthInterval string `desc:"Time between running the check (ms|s|m|h)" default:"0s"`
HealthSuccessThreshold int `desc:"Consecutive successes needed to report healthy"`
HealthTimeout string `desc:"Maximum time to allow one check to run (ms|s|m|h)" default:"0s"`
HealthURL string `desc:"URL to hit to check health (example: http://localhost:8080/ping)"`
Hostname string `desc:"Container host name"`
I_Interactive bool `desc:"Keep STDIN open even if not attached"`
ImagePullPolicy string `desc:"Behavior determining when to pull the image (never|always|not-present)" default:"not-present"`
LabelFile []string `desc:"Read in a line delimited file of labels"`
L_Label map[string]string `desc:"Set meta data on a container"`
M_Memory string `desc:"Memory reservation (format: <number>[<unit>], where unit = b, k, m or g)"`
N_Name string `desc:"Assign a name to the container"`
Permission []string `desc:"Permissions to grant to container's service account in current stack"`
P_Ports []string `desc:"Publish a container's port(s) externally"`
ReadOnly bool `desc:"Mount the container's root filesystem as read only"`
RolloutInterval int `desc:"Rollout interval in seconds"`
RolloutIncrement int `desc:"Rollout increment value"`
Secret []string `desc:"Secrets to inject to the service (format: name:target)"`
StageOnly bool `desc:"Whether to stage new created revision for build"`
T_Tty bool `desc:"Allocate a pseudo-TTY"`
Version string `desc:"Specify the revision "`
U_User string `desc:"UID[:GID] Sets the UID used and optionally GID for entrypoint process (format: <uid>[:<gid>])"`
Weight int `desc:"Specify the weight for the revision" default:"100"`
W_Workdir string `desc:"Working directory inside the container"`
}
func (*Create) Run ¶
func (c *Create) Run(ctx *clicontext.CLIContext) error
Source Files
¶
- create.go
- health.go
- label.go
- memory.go
Click to show internal directories.
Click to hide internal directories.