dev

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFileWriter added in v0.8.0

func ConfigFileWriter(policyName string) (io.Writer, error)

func CreateConfigDir added in v0.8.0

func CreateConfigDir() (string, error)

func WriteConfig added in v0.8.0

func WriteConfig(w io.Writer, templ string, params *templateParams) error

Types

type ConfigureCmd

type ConfigureCmd struct {
	Name   string `arg:"" required:"" help:"policy name"`
	Stdout bool   `short:"p" help:"generated configuration is printed to stdout but not saved"`
}

func (ConfigureCmd) Run

func (cmd ConfigureCmd) Run(c *cc.CommonCtx) error

type ConsoleCmd

type ConsoleCmd struct{}

func (ConsoleCmd) Run

func (cmd ConsoleCmd) Run(c *cc.CommonCtx) error

type InstallCmd

type InstallCmd struct {
	TrustCert bool `optional:"" default:"false" help:"add onebox certificate to the system's trusted CAs"`

	ContainerName    string `optional:""  default:"authorizer-onebox" help:"container name"`
	ContainerVersion string `optional:""  default:"latest" help:"container version" `
}

func (InstallCmd) Run

func (cmd InstallCmd) Run(c *cc.CommonCtx) error

type StartCmd

type StartCmd struct {
	Name             string `arg:"" required:"" help:"policy name"`
	SrcPath          string `optional:"" type:"path" help:"path to source or bundle file"`
	Interactive      bool   `optional:""  help:"interactive execution mode instead of the default daemon mode"`
	ContainerName    string `optional:""  default:"authorizer-onebox" help:"container name"`
	ContainerVersion string `optional:""  default:"latest" help:"container version" `
}

func (*StartCmd) Run

func (cmd *StartCmd) Run(c *cc.CommonCtx) error

type StatusCmd

type StatusCmd struct{}

func (StatusCmd) Run

func (cmd StatusCmd) Run(c *cc.CommonCtx) error

type StopCmd

type StopCmd struct{}

func (StopCmd) Run

func (cmd StopCmd) Run(c *cc.CommonCtx) error

type UninstallCmd

type UninstallCmd struct{}

func (UninstallCmd) Run

func (cmd UninstallCmd) Run(c *cc.CommonCtx) error

type UpdateCmd

type UpdateCmd struct {
	ContainerName    string `optional:""  default:"authorizer-onebox" help:"container name"`
	ContainerVersion string `optional:""  default:"latest" help:"container version" `
}

func (UpdateCmd) Run

func (cmd UpdateCmd) Run(c *cc.CommonCtx) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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