Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "config.openshift.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type FileLocation ¶
type FileLocation struct { // From is the absolute file path within the image to copy from. // Directories, wildcards and symlinks are not supported. // +required From string `json:"from"` // To is the relative path within the root of the installation folder to place the file. // Default is set to "." where points the default Krew directory. // +required // +kubebuilder:default:="." To string `json:"to"` }
FileLocation specifies a file copying operation from plugin archive to the installation directory.
func (*FileLocation) DeepCopy ¶
func (in *FileLocation) DeepCopy() *FileLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileLocation.
func (*FileLocation) DeepCopyInto ¶
func (in *FileLocation) DeepCopyInto(out *FileLocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plugin ¶
type Plugin struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PluginSpec `json:"spec,omitempty"` Status PluginStatus `json:"status,omitempty"` }
Plugin is the Schema for the plugins API
func (*Plugin) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugin.
func (*Plugin) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Plugin) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PluginList ¶
type PluginList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Plugin `json:"items"` }
PluginList contains a list of Plugin
func (*PluginList) DeepCopy ¶
func (in *PluginList) DeepCopy() *PluginList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginList.
func (*PluginList) DeepCopyInto ¶
func (in *PluginList) DeepCopyInto(out *PluginList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PluginList) DeepCopyObject ¶
func (in *PluginList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PluginPlatform ¶
type PluginPlatform struct { // Platform for the given binary (i.e. linux/amd64, darwin/amd64, windows/amd64). // +required Platform string `json:"platform"` // Image containing plugin. // +required Image string `json:"image"` // ImagePullSecret to use when connecting to an image registry that requires authentication. // +optional ImagePullSecret string `json:"imagePullSecret,omitempty"` // Files is a list of file locations within the image that need to be extracted. // +required Files []FileLocation `json:"files"` // CA bundle encoded in base64 that is used to access to given image registry. // This should contain the PEM-encoded CA certificates. // +optional CABundle string `json:"caBundle,omitempty"` // Proxy URL if the image registry can be accessible via proxy // +optional ProxyURL string `json:"proxyURL,omitempty"` // Bin specifies the path to the plugin executable. // The path is relative to the root of the installation folder. // The binary will be linked after all FileOperations are executed. // If not specified, plugin name is set. // +optional Bin string `json:"bin"` }
PluginPlatform defines per-OS and per-Arch binaries for the given plugin.
func (*PluginPlatform) DeepCopy ¶
func (in *PluginPlatform) DeepCopy() *PluginPlatform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginPlatform.
func (*PluginPlatform) DeepCopyInto ¶
func (in *PluginPlatform) DeepCopyInto(out *PluginPlatform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginSpec ¶
type PluginSpec struct { // ShortDescription of the plugin. // +required ShortDescription string `json:"shortDescription"` // Description of the plugin. // +optional Description string `json:"description,omitempty"` // Caveats of using the plugin. // +optional Caveats string `json:"caveats,omitempty"` // Homepage of the plugin. // +optional Homepage string `json:"homepage,omitempty"` // Version of the plugin. // +required Version string `json:"version"` // Platforms the plugin supports. // +required Platforms []PluginPlatform `json:"platforms"` }
PluginSpec defines the desired state of Plugin
func (*PluginSpec) DeepCopy ¶
func (in *PluginSpec) DeepCopy() *PluginSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSpec.
func (*PluginSpec) DeepCopyInto ¶
func (in *PluginSpec) DeepCopyInto(out *PluginSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginStatus ¶
type PluginStatus struct { // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` }
PluginStatus defines the observed state of Plugin.
func (*PluginStatus) DeepCopy ¶
func (in *PluginStatus) DeepCopy() *PluginStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginStatus.
func (*PluginStatus) DeepCopyInto ¶
func (in *PluginStatus) DeepCopyInto(out *PluginStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.