command

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate string
View Source
var GitRevision string
View Source
var Version string

Functions

func MutuallyExclusiveStringFlags

func MutuallyExclusiveStringFlags(value1, value2 string, rest ...string) bool

func NewBindingCommand

func NewBindingCommand(clients *pkg.Clients) *cobra.Command

func NewLoginCommand

func NewLoginCommand(clients *pkg.Clients) *cobra.Command

func NewRootCommand

func NewRootCommand(clients *pkg.Clients) *cobra.Command

Returns the root command of the CLI

func NewSourceCommand

func NewSourceCommand(clients *pkg.Clients) *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand implements 'kn version' command

Types

type BindingOptions

type BindingOptions struct {
	Namespace     string
	Name          string
	Address       string
	SkipTLSVerify bool
	SecretRef     string

	SubjectAPIVersion string
	SubjectKind       string
	SubjectName       string
	SubjectSelector   string
}

type FakeClientConfig

type FakeClientConfig struct {
	DefaultNamespaceProvider func() (string, error)
}

func (FakeClientConfig) ClientConfig

func (f FakeClientConfig) ClientConfig() (*rest.Config, error)

func (FakeClientConfig) ConfigAccess

func (f FakeClientConfig) ConfigAccess() clientcmd.ConfigAccess

func (FakeClientConfig) Namespace

func (f FakeClientConfig) Namespace() (string, bool, error)

func (FakeClientConfig) RawConfig

func (f FakeClientConfig) RawConfig() (clientcmdapi.Config, error)

type LoginOptions

type LoginOptions struct {
	Namespace     string
	Username      string
	Password      string
	SecretName    string
	PasswordStdIn bool
	VerifyURL     string
	Insecure      bool
}

type SourceOptions

type SourceOptions struct {
	Namespace     string
	Name          string
	Address       string
	SkipTLSVerify bool
	SecretRef     string

	SinkURI        string
	SinkAPIVersion string
	SinkKind       string
	SinkName       string

	CheckpointMaxAge time.Duration
	CheckpointPeriod time.Duration

	PayloadEncoding string
}

func (*SourceOptions) AsSinkDestination

func (so *SourceOptions) AsSinkDestination(namespace string) (*duckv1.Destination, error)

Jump to

Keyboard shortcuts

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