Documentation ¶ Index ¶ func File(ctx context.Context, client *api.Client, filename string, opts ...Option) error type Cmd func (cmd *Cmd) Run(ctx context.Context, client *api.Client, apply *Cmd) error type Option func Delete() Option func UpdateOnExists() Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func File ¶ func File(ctx context.Context, client *api.Client, filename string, opts ...Option) error Types ¶ type Cmd ¶ type Cmd struct { Filename string `short:"f" predictor:"file"` FromFile fromFile `cmd:"" default:"1" name:"-f <file>" help:"Apply any resource from a yaml or json file."` } func (*Cmd) Run ¶ func (cmd *Cmd) Run(ctx context.Context, client *api.Client, apply *Cmd) error type Option ¶ type Option func(*config) func Delete ¶ func Delete() Option func UpdateOnExists ¶ func UpdateOnExists() Option Source Files ¶ View all Source files apply.go file.go Click to show internal directories. Click to hide internal directories.