v1

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=trusted.identity

Index

Constants

This section is empty.

Variables

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

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 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

func (cti *ClusterTI) CheckPolicy(pod corev1.Pod) (identity string, err error)

CheckPolicy returns the identity of the policy matched. Returns empty string if no identity matches

func (*ClusterTI) DeepCopy

func (in *ClusterTI) DeepCopy() *ClusterTI

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

func (*ClusterTI) DeepCopyInto

func (in *ClusterTI) DeepCopyInto(out *ClusterTI)

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

func (*ClusterTI) DeepCopyObject

func (in *ClusterTI) DeepCopyObject() runtime.Object

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

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.

Jump to

Keyboard shortcuts

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