Documentation ¶
Index ¶
- Variables
- type ExternalType
- type ExternalType2
- type FakeFactory
- func (f *FakeFactory) AttachablePodForObject(ob runtime.Object) (*api.Pod, error)
- func (f *FakeFactory) BindExternalFlags(flags *pflag.FlagSet)
- func (f *FakeFactory) BindFlags(flags *pflag.FlagSet)
- func (f *FakeFactory) CanBeAutoscaled(unversioned.GroupKind) error
- func (f *FakeFactory) CanBeExposed(unversioned.GroupKind) error
- func (f *FakeFactory) ClientConfig() (*restclient.Config, error)
- func (f *FakeFactory) ClientForMapping(*meta.RESTMapping) (resource.RESTClient, error)
- func (f *FakeFactory) ClientSet() (*internalclientset.Clientset, error)
- func (f *FakeFactory) Command() string
- func (f *FakeFactory) Decoder(bool) runtime.Decoder
- func (f *FakeFactory) DefaultNamespace() (string, bool, error)
- func (f *FakeFactory) DefaultResourceFilterFunc() kubectl.Filters
- func (f *FakeFactory) DefaultResourceFilterOptions(cmd *cobra.Command, withNamespace bool) *kubectl.PrintOptions
- func (f *FakeFactory) Describer(*meta.RESTMapping) (kubectl.Describer, error)
- func (f *FakeFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (f *FakeFactory) EditorEnvs() []string
- func (f *FakeFactory) FlagSet() *pflag.FlagSet
- func (f *FakeFactory) Generators(cmdName string) map[string]kubectl.Generator
- func (f *FakeFactory) HistoryViewer(*meta.RESTMapping) (kubectl.HistoryViewer, error)
- func (f *FakeFactory) JSONEncoder() runtime.Encoder
- func (f *FakeFactory) LabelsForObject(runtime.Object) (map[string]string, error)
- func (f *FakeFactory) LogsForObject(object, options runtime.Object) (*restclient.Request, error)
- func (f *FakeFactory) MapBasedSelectorForObject(runtime.Object) (string, error)
- func (f *FakeFactory) NewBuilder() *resource.Builder
- func (f *FakeFactory) Object() (meta.RESTMapper, runtime.ObjectTyper)
- func (f *FakeFactory) Pauser(info *resource.Info) (bool, error)
- func (f *FakeFactory) PortsForObject(runtime.Object) ([]string, error)
- func (f *FakeFactory) PrintObject(cmd *cobra.Command, mapper meta.RESTMapper, obj runtime.Object, out io.Writer) error
- func (f *FakeFactory) PrintObjectSpecificMessage(obj runtime.Object, out io.Writer)
- func (f *FakeFactory) Printer(mapping *meta.RESTMapping, options kubectl.PrintOptions) (kubectl.ResourcePrinter, error)
- func (f *FakeFactory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMapping, withNamespace bool) (kubectl.ResourcePrinter, error)
- func (f *FakeFactory) ProtocolsForObject(runtime.Object) (map[string]string, error)
- func (f *FakeFactory) RESTClient() (*restclient.RESTClient, error)
- func (f *FakeFactory) Reaper(*meta.RESTMapping) (kubectl.Reaper, error)
- func (f *FakeFactory) Resumer(info *resource.Info) (bool, error)
- func (f *FakeFactory) Rollbacker(*meta.RESTMapping) (kubectl.Rollbacker, error)
- func (f *FakeFactory) Scaler(*meta.RESTMapping) (kubectl.Scaler, error)
- func (f *FakeFactory) StatusViewer(*meta.RESTMapping) (kubectl.StatusViewer, error)
- func (f *FakeFactory) SuggestedPodTemplateResources() []unversioned.GroupResource
- func (f *FakeFactory) SwaggerSchema(unversioned.GroupVersionKind) (*swagger.ApiDeclaration, error)
- func (f *FakeFactory) UnstructuredClientForMapping(*meta.RESTMapping) (resource.RESTClient, error)
- func (f *FakeFactory) UnstructuredObject() (meta.RESTMapper, runtime.ObjectTyper, error)
- func (f *FakeFactory) UpdatePodSpecForObject(obj runtime.Object, fn func(*api.PodSpec) error) (bool, error)
- func (f *FakeFactory) Validator(validate bool, cacheDir string) (validation.Schema, error)
- type InternalType
- type TestFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalGV = unversioned.GroupVersion{Group: "apitest", Version: runtime.APIVersionInternal}
View Source
var UnlikelyGV = unversioned.GroupVersion{Group: "apitest", Version: "unlikelyversion"}
View Source
var ValidVersion = registered.GroupOrDie(api.GroupName).GroupVersion.Version
View Source
var ValidVersionGV = unversioned.GroupVersion{Group: "apitest", Version: ValidVersion}
Functions ¶
This section is empty.
Types ¶
type ExternalType ¶
type ExternalType struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` }
func (*ExternalType) GetObjectKind ¶
func (obj *ExternalType) GetObjectKind() unversioned.ObjectKind
func (*ExternalType) GroupVersionKind ¶
func (obj *ExternalType) GroupVersionKind() unversioned.GroupVersionKind
func (*ExternalType) SetGroupVersionKind ¶
func (obj *ExternalType) SetGroupVersionKind(gvk unversioned.GroupVersionKind)
type ExternalType2 ¶
type ExternalType2 struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` }
func (*ExternalType2) GetObjectKind ¶
func (obj *ExternalType2) GetObjectKind() unversioned.ObjectKind
func (*ExternalType2) GroupVersionKind ¶
func (obj *ExternalType2) GroupVersionKind() unversioned.GroupVersionKind
func (*ExternalType2) SetGroupVersionKind ¶
func (obj *ExternalType2) SetGroupVersionKind(gvk unversioned.GroupVersionKind)
type FakeFactory ¶
func (*FakeFactory) AttachablePodForObject ¶
func (*FakeFactory) BindExternalFlags ¶
func (f *FakeFactory) BindExternalFlags(flags *pflag.FlagSet)
func (*FakeFactory) BindFlags ¶
func (f *FakeFactory) BindFlags(flags *pflag.FlagSet)
func (*FakeFactory) CanBeAutoscaled ¶
func (f *FakeFactory) CanBeAutoscaled(unversioned.GroupKind) error
func (*FakeFactory) CanBeExposed ¶
func (f *FakeFactory) CanBeExposed(unversioned.GroupKind) error
func (*FakeFactory) ClientConfig ¶
func (f *FakeFactory) ClientConfig() (*restclient.Config, error)
func (*FakeFactory) ClientForMapping ¶
func (f *FakeFactory) ClientForMapping(*meta.RESTMapping) (resource.RESTClient, error)
func (*FakeFactory) ClientSet ¶
func (f *FakeFactory) ClientSet() (*internalclientset.Clientset, error)
func (*FakeFactory) Command ¶
func (f *FakeFactory) Command() string
func (*FakeFactory) DefaultNamespace ¶
func (f *FakeFactory) DefaultNamespace() (string, bool, error)
func (*FakeFactory) DefaultResourceFilterFunc ¶
func (f *FakeFactory) DefaultResourceFilterFunc() kubectl.Filters
func (*FakeFactory) DefaultResourceFilterOptions ¶
func (f *FakeFactory) DefaultResourceFilterOptions(cmd *cobra.Command, withNamespace bool) *kubectl.PrintOptions
func (*FakeFactory) Describer ¶
func (f *FakeFactory) Describer(*meta.RESTMapping) (kubectl.Describer, error)
func (*FakeFactory) DiscoveryClient ¶
func (f *FakeFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*FakeFactory) EditorEnvs ¶
func (f *FakeFactory) EditorEnvs() []string
func (*FakeFactory) FlagSet ¶
func (f *FakeFactory) FlagSet() *pflag.FlagSet
func (*FakeFactory) Generators ¶
func (f *FakeFactory) Generators(cmdName string) map[string]kubectl.Generator
func (*FakeFactory) HistoryViewer ¶
func (f *FakeFactory) HistoryViewer(*meta.RESTMapping) (kubectl.HistoryViewer, error)
func (*FakeFactory) JSONEncoder ¶
func (f *FakeFactory) JSONEncoder() runtime.Encoder
func (*FakeFactory) LabelsForObject ¶
func (*FakeFactory) LogsForObject ¶
func (f *FakeFactory) LogsForObject(object, options runtime.Object) (*restclient.Request, error)
func (*FakeFactory) MapBasedSelectorForObject ¶
func (f *FakeFactory) MapBasedSelectorForObject(runtime.Object) (string, error)
func (*FakeFactory) NewBuilder ¶
func (f *FakeFactory) NewBuilder() *resource.Builder
func (*FakeFactory) Object ¶
func (f *FakeFactory) Object() (meta.RESTMapper, runtime.ObjectTyper)
func (*FakeFactory) PortsForObject ¶
func (f *FakeFactory) PortsForObject(runtime.Object) ([]string, error)
func (*FakeFactory) PrintObject ¶
func (f *FakeFactory) PrintObject(cmd *cobra.Command, mapper meta.RESTMapper, obj runtime.Object, out io.Writer) error
func (*FakeFactory) PrintObjectSpecificMessage ¶
func (f *FakeFactory) PrintObjectSpecificMessage(obj runtime.Object, out io.Writer)
func (*FakeFactory) Printer ¶
func (f *FakeFactory) Printer(mapping *meta.RESTMapping, options kubectl.PrintOptions) (kubectl.ResourcePrinter, error)
func (*FakeFactory) PrinterForMapping ¶
func (f *FakeFactory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMapping, withNamespace bool) (kubectl.ResourcePrinter, error)
func (*FakeFactory) ProtocolsForObject ¶
func (*FakeFactory) RESTClient ¶
func (f *FakeFactory) RESTClient() (*restclient.RESTClient, error)
func (*FakeFactory) Reaper ¶
func (f *FakeFactory) Reaper(*meta.RESTMapping) (kubectl.Reaper, error)
func (*FakeFactory) Rollbacker ¶
func (f *FakeFactory) Rollbacker(*meta.RESTMapping) (kubectl.Rollbacker, error)
func (*FakeFactory) Scaler ¶
func (f *FakeFactory) Scaler(*meta.RESTMapping) (kubectl.Scaler, error)
func (*FakeFactory) StatusViewer ¶
func (f *FakeFactory) StatusViewer(*meta.RESTMapping) (kubectl.StatusViewer, error)
func (*FakeFactory) SuggestedPodTemplateResources ¶
func (f *FakeFactory) SuggestedPodTemplateResources() []unversioned.GroupResource
func (*FakeFactory) SwaggerSchema ¶
func (f *FakeFactory) SwaggerSchema(unversioned.GroupVersionKind) (*swagger.ApiDeclaration, error)
func (*FakeFactory) UnstructuredClientForMapping ¶
func (f *FakeFactory) UnstructuredClientForMapping(*meta.RESTMapping) (resource.RESTClient, error)
func (*FakeFactory) UnstructuredObject ¶
func (f *FakeFactory) UnstructuredObject() (meta.RESTMapper, runtime.ObjectTyper, error)
func (*FakeFactory) UpdatePodSpecForObject ¶
func (*FakeFactory) Validator ¶
func (f *FakeFactory) Validator(validate bool, cacheDir string) (validation.Schema, error)
type InternalType ¶
func NewInternalType ¶
func NewInternalType(kind, apiversion, name string) *InternalType
func (*InternalType) GetObjectKind ¶
func (obj *InternalType) GetObjectKind() unversioned.ObjectKind
func (*InternalType) GroupVersionKind ¶
func (obj *InternalType) GroupVersionKind() unversioned.GroupVersionKind
func (*InternalType) SetGroupVersionKind ¶
func (obj *InternalType) SetGroupVersionKind(gvk unversioned.GroupVersionKind)
type TestFactory ¶
type TestFactory struct { Mapper meta.RESTMapper Typer runtime.ObjectTyper Client kubectl.RESTClient Describer kubectl.Describer Printer kubectl.ResourcePrinter Validator validation.Schema Namespace string ClientConfig *restclient.Config Err error }
func NewAPIFactory ¶
func NewAPIFactory() (cmdutil.Factory, *TestFactory, runtime.Codec, runtime.NegotiatedSerializer)
func NewMixedFactory ¶
func NewMixedFactory(apiClient resource.RESTClient) (cmdutil.Factory, *TestFactory, runtime.Codec)
func NewTestFactory ¶
func NewTestFactory() (cmdutil.Factory, *TestFactory, runtime.Codec, runtime.NegotiatedSerializer)
Click to show internal directories.
Click to hide internal directories.