Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=research.ibm.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ResourceInfo
- type ResourceSignature
- func (in *ResourceSignature) DeepCopy() *ResourceSignature
- func (in *ResourceSignature) DeepCopyInto(out *ResourceSignature)
- func (in *ResourceSignature) DeepCopyObject() runtime.Object
- func (ss *ResourceSignature) FindMessage(apiVersion, kind, name, namespace string) (string, bool)
- func (ss *ResourceSignature) FindSignItem(apiVersion, kind, name, namespace string) (*SignItem, []byte, bool)
- func (ss *ResourceSignature) FindSignature(apiVersion, kind, name, namespace string) (string, bool)
- func (ss *ResourceSignature) Validate() (bool, string)
- type ResourceSignatureList
- func (in *ResourceSignatureList) DeepCopy() *ResourceSignatureList
- func (in *ResourceSignatureList) DeepCopyInto(out *ResourceSignatureList)
- func (in *ResourceSignatureList) DeepCopyObject() runtime.Object
- func (ssl *ResourceSignatureList) FindMessage(apiVersion, kind, name, namespace string) (string, bool)
- func (ssl *ResourceSignatureList) FindSignItem(apiVersion, kind, name, namespace string) (*SignItem, []byte, bool)
- func (ssl *ResourceSignatureList) FindSignature(apiVersion, kind, name, namespace string) (string, bool)
- type ResourceSignatureSpec
- type ResourceSignatureStatus
- type SignItem
Constants ¶
const ( MatchByExactMatch string = "exactMatch" MatchByKnownFilter string = "useKnownFilter" MatchByCustomFilter string = "customFilter" SignatureTypeResource string = "resource" SignatureTypeApplyingResource string = "applyingResource" SignatureTypePatch string = "patch" )
const ( // StatePending means CRD instance is created; Pod info has been updated into CRD instance; // Pod has been accepted by the system, but one or more of the containers has not been started. StatePending string = "Pending" // StateRunning means Pod has been bound to a node and all of the containers have been started. StateRunning string = "Running" // StateSucceeded means that all containers in the Pod have voluntarily terminated with a container // exit code of 0, and the system is not going to restart any of these containers. StateSucceeded string = "Succeeded" // StateFailed means that all containers in the Pod have terminated, and at least one container has // terminated in a failure (exited with a non-zero exit code or was stopped by the system). StateFailed string = "Failed" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: rsig.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ResourceInfo ¶
type ResourceInfo struct { ApiVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ResourceInfo) DeepCopy ¶
func (in *ResourceInfo) DeepCopy() *ResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfo.
func (*ResourceInfo) DeepCopyInto ¶
func (in *ResourceInfo) DeepCopyInto(out *ResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSignature ¶
type ResourceSignature struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. metav1.ObjectMeta `json:"metadata"` // Specification of the desired behavior of ResourceSignature. Spec ResourceSignatureSpec `json:"spec"` // Observed status of ResourceSignature. Status ResourceSignatureStatus `json:"status"` }
ResourceSignature is the CRD. Use this command to generate deepcopy for it: ./k8s.io/code-generator/generate-groups.sh all github.com/IBM/pas-client-go/pkg/crd/packageadmissionsignature/v1/apis github.com/IBM/pas-client-go/pkg/crd/ "packageadmissionsignature:v1" For more details of code-generator, please visit https://github.com/kubernetes/code-generator +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ResourceSignature is the CRD. Use this command to generate deepcopy for it:
func (*ResourceSignature) DeepCopy ¶
func (in *ResourceSignature) DeepCopy() *ResourceSignature
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSignature.
func (*ResourceSignature) DeepCopyInto ¶
func (in *ResourceSignature) DeepCopyInto(out *ResourceSignature)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSignature) DeepCopyObject ¶
func (in *ResourceSignature) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceSignature) FindMessage ¶
func (ss *ResourceSignature) FindMessage(apiVersion, kind, name, namespace string) (string, bool)
func (*ResourceSignature) FindSignItem ¶
func (ss *ResourceSignature) FindSignItem(apiVersion, kind, name, namespace string) (*SignItem, []byte, bool)
func (*ResourceSignature) FindSignature ¶
func (ss *ResourceSignature) FindSignature(apiVersion, kind, name, namespace string) (string, bool)
func (*ResourceSignature) Validate ¶
func (ss *ResourceSignature) Validate() (bool, string)
type ResourceSignatureList ¶
type ResourceSignatureList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []*ResourceSignature `json:"items"` }
ResourceSignatureList is a list of Workflow resources
func (*ResourceSignatureList) DeepCopy ¶
func (in *ResourceSignatureList) DeepCopy() *ResourceSignatureList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSignatureList.
func (*ResourceSignatureList) DeepCopyInto ¶
func (in *ResourceSignatureList) DeepCopyInto(out *ResourceSignatureList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSignatureList) DeepCopyObject ¶
func (in *ResourceSignatureList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceSignatureList) FindMessage ¶
func (ssl *ResourceSignatureList) FindMessage(apiVersion, kind, name, namespace string) (string, bool)
func (*ResourceSignatureList) FindSignItem ¶
func (ssl *ResourceSignatureList) FindSignItem(apiVersion, kind, name, namespace string) (*SignItem, []byte, bool)
func (*ResourceSignatureList) FindSignature ¶
func (ssl *ResourceSignatureList) FindSignature(apiVersion, kind, name, namespace string) (string, bool)
type ResourceSignatureSpec ¶
type ResourceSignatureSpec struct {
Data []*SignItem `json:"data"`
}
ResourceSignatureSpec is a desired state description of ResourceSignature.
func (*ResourceSignatureSpec) DeepCopy ¶
func (in *ResourceSignatureSpec) DeepCopy() *ResourceSignatureSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSignatureSpec.
func (*ResourceSignatureSpec) DeepCopyInto ¶
func (in *ResourceSignatureSpec) DeepCopyInto(out *ResourceSignatureSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSignatureStatus ¶
ResourceSignature describes the lifecycle status of ResourceSignature.
func (*ResourceSignatureStatus) DeepCopy ¶
func (in *ResourceSignatureStatus) DeepCopy() *ResourceSignatureStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSignatureStatus.
func (*ResourceSignatureStatus) DeepCopyInto ¶
func (in *ResourceSignatureStatus) DeepCopyInto(out *ResourceSignatureStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SignItem ¶
type SignItem struct { Message string `json:"message,omitempty"` MessageScope string `json:"messageScope,omitempty"` MutableAttrs string `json:"mutableAttrs,omitempty"` Signature string `json:"signature"` Certificate string `json:"certificate"` Type string `json:"type"` }
func (*SignItem) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignItem.
func (*SignItem) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.