Documentation ¶
Index ¶
- Variables
- func ConfigFiles(o Options) (err error)
- func CreateOrUpdate(ctx context.Context, cl client.Client, o runtime.Object, skipFields ...string) (*unstructured.Unstructured, controllerutil.OperationResult, error)
- func GetClientNamespace(configPath string) (string, error)
- func InstallImporterIntoOpenshift(o Options, scope RenderScope) error
- func MustMarshal(data []byte, err error) []byte
- func New() *cobra.Command
- func Render(goTemplate string, scope interface{}) (string, error)
- func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
- func UnifiedDiff(a string, b string) (string, error)
- type Options
- type RenderScope
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagSet *pflag.FlagSet = nil
Functions ¶
func ConfigFiles ¶
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, cl client.Client, o runtime.Object, skipFields ...string) (*unstructured.Unstructured, controllerutil.OperationResult, error)
func GetClientNamespace ¶
func InstallImporterIntoOpenshift ¶
func InstallImporterIntoOpenshift(o Options, scope RenderScope) error
func MustMarshal ¶
func ToUnstructured ¶
func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
Types ¶
type Options ¶
type Options struct { KubeConfig string Namespace string KeySize int Duration time.Duration Prefix string Kinds []string ImporterHostPort string Proxies []cmd.ProxySpec }
func (*Options) GetClientConfig ¶
func (*Options) NewApiClient ¶
func (o *Options) NewApiClient() (*kubernetes.Clientset, error)
type RenderScope ¶
type RenderScope struct { ImporterConfig *cmd.ImporterConfig ExporterConfig *cmd.ExporterConfig ImporterConfigBase64 string ExporterConfigBase64 string }
Click to show internal directories.
Click to hide internal directories.