Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func NewDumpCmd(ctx context.Context, in io.Reader, out io.Writer, err io.Writer) *cobra.Command
- func NewLoadCmd(ctx context.Context, in io.Reader, out io.Writer, err io.Writer) *cobra.Command
- type MetaData
- type Options
- func (o *Options) EnsureDirectory() error
- func (o *Options) GetConfigMap() *v1.ConfigMap
- func (o *Options) GetSecret() *v1.Secret
- func (o *Options) ReadData() error
- func (o *Options) SetData(data interface{}) error
- func (o *Options) SetDirectory(pathComponents ...string)
- func (o *Options) Setup(f cmdutil.Factory) error
- func (o *Options) ValidateArguments(cmd *cobra.Command, args []string) error
- func (o *Options) ValidateArgumentsRoot(cmd *cobra.Command, args []string) error
- func (o *Options) WriteData() error
Constants ¶
This section is empty.
Variables ¶
var (
KubernetesConfigFlags *genericclioptions.ConfigFlags
)
Functions ¶
func NewDumpCmd ¶
Types ¶
type MetaData ¶
type Options ¶
type Options struct { genericclioptions.IOStreams Name string Namespace string // Kind is the kind of object we are operating on. Kind string Directory string Data map[string][]byte MetaData MetaData Printer printers.ResourcePrinter // contains filtered or unexported fields }
func (*Options) EnsureDirectory ¶
func (*Options) GetConfigMap ¶
func (*Options) SetDirectory ¶
func (*Options) ValidateArguments ¶
ValidateArguments validates the arguments passed to a command. It meets the requirements for the cobra.Command Args field, so it can be passed in directly. Note that all the commands here take the same argument set.
func (*Options) ValidateArgumentsRoot ¶
ValidateArguments validates the arguments passed to a command. It meets the requirements for the cobra.Command Args field, so it can be passed in directly. Note that all the commands here take the same argument set.