Documentation ¶
Index ¶
- func NewCmdEnv(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdSet(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdVolume(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func RunEnv(f *clientcmd.Factory, in io.Reader, out io.Writer, cmd *cobra.Command, ...) error
- type AddVolumeOptions
- type VolumeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdSet ¶
func NewCmdSet(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdSet exposes commands for modifying objects.
func NewCmdVolume ¶
Types ¶
type AddVolumeOptions ¶
type AddVolumeOptions struct { Type string MountPath string Overwrite bool Path string SecretName string Source string CreateClaim bool ClaimName string ClaimSize string ClaimMode string TypeChanged bool }
func (*AddVolumeOptions) Validate ¶
func (a *AddVolumeOptions) Validate(isAddOp bool) error
type VolumeOptions ¶
type VolumeOptions struct { DefaultNamespace string ExplicitNamespace bool Out io.Writer Err io.Writer Mapper meta.RESTMapper Typer runtime.ObjectTyper RESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error) UpdatePodSpecForObject func(obj runtime.Object, fn func(*kapi.PodSpec) error) (bool, error) Client kclient.PersistentVolumeClaimsNamespacer // Resource selection Selector string All bool Filenames []string // Operations Add bool Remove bool List bool // Common optional params Name string Containers string Confirm bool Output string OutputVersion unversioned.GroupVersion // Add op params AddOpts *AddVolumeOptions }
func (*VolumeOptions) RunVolume ¶
func (v *VolumeOptions) RunVolume(args []string) error
func (*VolumeOptions) Validate ¶
func (v *VolumeOptions) Validate(args []string) error
Click to show internal directories.
Click to hide internal directories.