dev

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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"`
	EdgeAuthorizer  string `optional:"" help:"id of edge authorizer connection used to register with the Aserto control plane"`
	DecisionLogging bool   `optional:"" help:"enable decision logging"`
}

func (ConfigureCmd) Run

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

func (ConfigureCmd) Validate added in v0.8.19

func (cmd ConfigureCmd) Validate() 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 topaz certificate to the system's trusted CAs"`

	ContainerName    string `optional:""  default:"topaz" help:"container name"`
	ContainerVersion string `optional:""  default:"latest" help:"container version" `
}

func (InstallCmd) Run

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

type PolicyFromOpenAPI added in v0.8.11

type PolicyFromOpenAPI struct {
	URL  string `arg:"" required:"" help:"URL of the openapi.yaml"`
	Name string `arg:"" optional:"" help:"The name for the policy"`
}

func (*PolicyFromOpenAPI) Run added in v0.8.11

func (cmd *PolicyFromOpenAPI) 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:"topaz" help:"container name"`
	ContainerVersion string `optional:"" default:"latest" help:"container version" `
	Hostname         string `optional:"" help:"hostname for docker to set"`
	DataPath         string `optional:"" type:"path" help:"path for non-ephemeral data storage"`
}

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:"topaz" 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