v1alpha1

package
v0.0.0-...-320551d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=research.ibm.com

Index

Constants

View Source
const (
	MatchByExactMatch   string = "exactMatch"
	MatchByKnownFilter  string = "useKnownFilter"
	MatchByCustomFilter string = "customFilter"

	SignatureTypeResource         string = "resource"
	SignatureTypeApplyingResource string = "applyingResource"
	SignatureTypePatch            string = "patch"
)
View Source
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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: rsig.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

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

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

type ResourceSignatureStatus struct {
	State   string `json:"state"`
	Message string `json:"message"`
}

ResourceSignature describes the lifecycle status of ResourceSignature.

func (*ResourceSignatureStatus) DeepCopy

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

func (in *SignItem) DeepCopy() *SignItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignItem.

func (*SignItem) DeepCopyInto

func (in *SignItem) DeepCopyInto(out *SignItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL