Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=trusted.identity
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cti.GroupName, Version: "v1"}
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 ClusterTI ¶
type ClusterTI struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Info ClusterTISpec `json:"info"` Policy []ClusterTIPolicyEntry `json:"policy,omitempty"` }
Example is a specification for an Example resource
func (*ClusterTI) CheckPolicy ¶
CheckPolicy returns the identity of the policy matched. Returns empty string if no identity matches
func (*ClusterTI) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTI.
func (*ClusterTI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTI) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTIList ¶
type ClusterTIList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterTI `json:"items"` }
ExampleList is a list of Example resources
func (*ClusterTIList) DeepCopy ¶
func (in *ClusterTIList) DeepCopy() *ClusterTIList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTIList.
func (*ClusterTIList) DeepCopyInto ¶
func (in *ClusterTIList) DeepCopyInto(out *ClusterTIList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTIList) DeepCopyObject ¶
func (in *ClusterTIList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTIPolicyEntry ¶
type ClusterTIPolicyEntry struct { Image *string `json:"image,omitempty"` Identity string `json:"identity"` }
ClusterTIPolicyEntry is a cluster TI policy entry
func (*ClusterTIPolicyEntry) CheckPolicyItem ¶
func (pe *ClusterTIPolicyEntry) CheckPolicyItem(pod corev1.Pod) (identity string, err error)
func (*ClusterTIPolicyEntry) DeepCopy ¶
func (in *ClusterTIPolicyEntry) DeepCopy() *ClusterTIPolicyEntry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTIPolicyEntry.
func (*ClusterTIPolicyEntry) DeepCopyInto ¶
func (in *ClusterTIPolicyEntry) DeepCopyInto(out *ClusterTIPolicyEntry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTISpec ¶
type ClusterTISpec struct { ClusterName string `json:"cluster-name"` ClusterRegion string `json:"region"` }
ExampleSpec is the spec for an Example resource
func (*ClusterTISpec) DeepCopy ¶
func (in *ClusterTISpec) DeepCopy() *ClusterTISpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTISpec.
func (*ClusterTISpec) DeepCopyInto ¶
func (in *ClusterTISpec) DeepCopyInto(out *ClusterTISpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.