cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultCertsCountry = "US"
	DefaultCertsOrg     = "falcosecurity"
	DefaultCertsName    = "localhost"
	DefaultCertsPath    = "/etc/falco/certs"
	DefaultCertsDays    = 365
)

Defaults

Variables

This section is empty.

Functions

func Convert added in v0.1.0

func Convert(streams genericclioptions.IOStreams) *cobra.Command

Convert creates the `convert` command

func Delete added in v0.1.0

func Delete(streams genericclioptions.IOStreams) *cobra.Command

Delete creates the `delete` command

func DeleteFalco added in v0.1.0

func DeleteFalco(streams genericclioptions.IOStreams) *cobra.Command

DeleteFalco creates the `delete falco` command

func Install added in v0.1.0

func Install(streams genericclioptions.IOStreams) *cobra.Command

Install creates the `install` command

func InstallFalco added in v0.1.0

func InstallFalco(streams genericclioptions.IOStreams) *cobra.Command

InstallFalco creates the `install falco` command

func InstallModule added in v0.1.0

func InstallModule(streams genericclioptions.IOStreams) *cobra.Command

InstallModule creates the `install module` command

func InstallRule added in v0.1.0

func InstallRule(streams genericclioptions.IOStreams) *cobra.Command

InstallRule creates the `install rule` command

func InstallTLS added in v0.1.0

func InstallTLS(streams genericclioptions.IOStreams) *cobra.Command

InstallTLS creates the `install tls` command

func New added in v0.1.0

func New() *cobra.Command

New creates the faloctl root command

func PspConvert added in v0.1.0

func PspConvert(streams genericclioptions.IOStreams) *cobra.Command

PspConvert instantiates the `convert psp` command

func Start added in v0.1.0

func Start()

Start setups and starts the CLI.

Types

type CommandOptions

type CommandOptions interface {
	Validate(*cobra.Command, []string) error
}

CommandOptions is ...

func NewConvertOptions

func NewConvertOptions(streams genericclioptions.IOStreams) CommandOptions

NewConvertOptions instantiates the `convert` command options

func NewDeleteOptions

func NewDeleteOptions() CommandOptions

NewDeleteOptions instantiates the `delete` command options

func NewFalcoDeleteOptions

func NewFalcoDeleteOptions() CommandOptions

NewFalcoDeleteOptions instantiates the `delete falco` command options

func NewFalcoOptions added in v0.1.0

func NewFalcoOptions() CommandOptions

NewFalcoOptions instantiates the `install falco` command options

func NewInstallOptions

func NewInstallOptions() CommandOptions

NewInstallOptions instantiates the `install` command options

func NewModuleOptions added in v0.1.0

func NewModuleOptions() CommandOptions

NewModuleOptions instantiates the `install module` command options

func NewPspConvertOptions added in v0.1.0

func NewPspConvertOptions() CommandOptions

NewPspConvertOptions instantiates PspConvertOptions

func NewRuleOptions added in v0.1.0

func NewRuleOptions(streams genericclioptions.IOStreams) CommandOptions

NewRuleOptions instantiates the `install rule` command options

func NewTLSOptions added in v0.1.0

func NewTLSOptions() CommandOptions

NewTLSOptions instantiates the `install tls` command options

type ConfigOptions added in v0.1.0

type ConfigOptions struct {
	ConfigFile string `name:"config"`
	Verbose    int    `validate:"number,min=0,max=4" default:"3" name:"verbose"`
	Fabulous   bool   `name:"fab"`
}

ConfigOptions represent the persistent configuration flags of falcoctl.

func NewConfigOptions added in v0.1.0

func NewConfigOptions() *ConfigOptions

NewConfigOptions creates an instance of ConfigOptions.

func (*ConfigOptions) Validate added in v0.1.0

func (co *ConfigOptions) Validate() []error

Validate validates the ConfigOptions fields.

type ConvertOptions

type ConvertOptions struct {
}

ConvertOptions represents the convert command options

func (ConvertOptions) Validate

func (o ConvertOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `convert` command options

type DeleteOptions

type DeleteOptions struct {
}

DeleteOptions represents the `delete` command options

func (DeleteOptions) Validate

func (o DeleteOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `delete` command options

type FalcoDeleteOptions

type FalcoDeleteOptions struct {
	// contains filtered or unexported fields
}

FalcoDeleteOptions represents the `delete falco` command options

func (FalcoDeleteOptions) Validate

func (o FalcoDeleteOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `delete falco` command options

type FalcoOptions added in v0.1.0

type FalcoOptions struct {
	// contains filtered or unexported fields
}

FalcoOptions represents the `install falco` command options

func (FalcoOptions) Validate added in v0.1.0

func (o FalcoOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `install falco` command options

type InstallOptions

type InstallOptions struct {
}

InstallOptions represents the install command options

func (InstallOptions) Validate

func (o InstallOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `install` command options

type ModuleOptions added in v0.1.0

type ModuleOptions struct {
	// contains filtered or unexported fields
}

ModuleOptions represents the `install module` command options

func (ModuleOptions) Validate added in v0.1.0

func (o ModuleOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `install module` command options

type PspConvertOptions added in v0.1.0

type PspConvertOptions struct {
	// contains filtered or unexported fields
}

PspConvertOptions represents options for PSP to Falco rules conversion

func (PspConvertOptions) Validate added in v0.1.0

func (o PspConvertOptions) Validate(c *cobra.Command, args []string) error

Validate options to psp_conv command

type RuleOptions added in v0.1.0

type RuleOptions struct {
}

RuleOptions represents the `install tls` command options

func (RuleOptions) Validate added in v0.1.0

func (o RuleOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `install probe` command options

type TLSOptions added in v0.1.0

type TLSOptions struct {
	// contains filtered or unexported fields
}

TLSOptions represents the `install tls` command options

func (TLSOptions) Validate added in v0.1.0

func (o TLSOptions) Validate(c *cobra.Command, args []string) error

Validate validates the `install probe` command options

Jump to

Keyboard shortcuts

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