options

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package options defines csi snapshot provider flag options

Package options defines csi snapshotter provider flag options

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSISnapshotterProviderFlags

type CSISnapshotterProviderFlags struct {
	UnixSocketPath  string
	ProviderName    string
	ProviderVersion string
}

CSISnapshotterProviderFlags defines flags for csi-snapshotter provider

func NewCSISnapshotterProviderFlags

func NewCSISnapshotterProviderFlags() *CSISnapshotterProviderFlags

NewCSISnapshotterProviderFlags creates new csi-snapshotter provider flags

func (*CSISnapshotterProviderFlags) AddFlags

func (options *CSISnapshotterProviderFlags) AddFlags(fs *pflag.FlagSet)

AddFlags exposes available command line options

func (*CSISnapshotterProviderFlags) Apply

func (options *CSISnapshotterProviderFlags) Apply() error

Apply checks validity of available command line options

type CSISnapshotterProviderOptions

type CSISnapshotterProviderOptions struct {
	CSISnapshotterProviderFlags
	KubeClientOptions
}

CSISnapshotterProviderOptions defines flag options

type KubeClientOptions

type KubeClientOptions struct {
	*client.Config
}

func NewKahuClientOptions

func NewKahuClientOptions() *KubeClientOptions

func (*KubeClientOptions) AddFlags

func (opt *KubeClientOptions) AddFlags(fs *pflag.FlagSet)

func (*KubeClientOptions) Apply

func (opt *KubeClientOptions) Apply() error

func (*KubeClientOptions) Validate

func (opt *KubeClientOptions) Validate() []error

Jump to

Keyboard shortcuts

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