Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the rode v1alpha1 API group +kubebuilder:object:generate=true +groupName=rode.liatr.io
Index ¶
- Variables
- func SetCondition(con Conditioner, conditionType ConditionType, status ConditionStatus, ...)
- type Attester
- type AttesterList
- type AttesterSpec
- type AttesterStatus
- type ClusterEnforcer
- type ClusterEnforcerList
- type ClusterEnforcerSpec
- type ClusterEnforcerStatus
- type Collector
- type CollectorECRConfig
- type CollectorHarborConfig
- type CollectorList
- type CollectorSpec
- type CollectorStatus
- type Condition
- type ConditionStatus
- type ConditionType
- type Conditioner
- type Enforcer
- type EnforcerAttester
- type EnforcerList
- type EnforcerSpec
- type EnforcerStatus
- type MatchStrategy
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "rode.liatr.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 ¶
func SetCondition ¶ added in v0.3.1
func SetCondition(con Conditioner, conditionType ConditionType, status ConditionStatus, message string)
Types ¶
type Attester ¶
type Attester struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AttesterSpec `json:"spec,omitempty"` Status AttesterStatus `json:"status,omitempty"` }
Attester is the Schema for the attesters API
func (*Attester) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attester.
func (*Attester) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Attester) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Attester) GetConditions ¶
func (*Attester) SetConditions ¶ added in v0.3.1
type AttesterList ¶
type AttesterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Attester `json:"items"` }
AttesterList contains a list of Attester
func (*AttesterList) DeepCopy ¶
func (in *AttesterList) DeepCopy() *AttesterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttesterList.
func (*AttesterList) DeepCopyInto ¶
func (in *AttesterList) DeepCopyInto(out *AttesterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AttesterList) DeepCopyObject ¶
func (in *AttesterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AttesterSpec ¶
type AttesterSpec struct { // PgpSecret defines the name of the secret to use for signing. If the secret doesn't already exist it will be created. // +required PgpSecret string `json:"pgpSecret"` // Policy defines the Rego policy that the attester will attest adherance to. Policy string `json:"policy"` }
AttesterSpec defines the desired state of Attester
func (*AttesterSpec) DeepCopy ¶
func (in *AttesterSpec) DeepCopy() *AttesterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttesterSpec.
func (*AttesterSpec) DeepCopyInto ¶
func (in *AttesterSpec) DeepCopyInto(out *AttesterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AttesterStatus ¶
type AttesterStatus struct { // +optional Conditions []Condition `json:"conditions,omitempty"` }
AttesterStatus defines the observed state of Attester
func (*AttesterStatus) DeepCopy ¶
func (in *AttesterStatus) DeepCopy() *AttesterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttesterStatus.
func (*AttesterStatus) DeepCopyInto ¶
func (in *AttesterStatus) DeepCopyInto(out *AttesterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterEnforcer ¶
type ClusterEnforcer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterEnforcerSpec `json:"spec,omitempty"` Status ClusterEnforcerStatus `json:"status,omitempty"` }
ClusterEnforcer is the Schema for the clusterenforcers API
func (*ClusterEnforcer) DeepCopy ¶
func (in *ClusterEnforcer) DeepCopy() *ClusterEnforcer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnforcer.
func (*ClusterEnforcer) DeepCopyInto ¶
func (in *ClusterEnforcer) DeepCopyInto(out *ClusterEnforcer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterEnforcer) DeepCopyObject ¶
func (in *ClusterEnforcer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterEnforcer) EnforcesNamespace ¶
func (ce *ClusterEnforcer) EnforcesNamespace(namespace string) bool
type ClusterEnforcerList ¶
type ClusterEnforcerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterEnforcer `json:"items"` }
ClusterEnforcerList contains a list of ClusterEnforcer
func (*ClusterEnforcerList) DeepCopy ¶
func (in *ClusterEnforcerList) DeepCopy() *ClusterEnforcerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnforcerList.
func (*ClusterEnforcerList) DeepCopyInto ¶
func (in *ClusterEnforcerList) DeepCopyInto(out *ClusterEnforcerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterEnforcerList) DeepCopyObject ¶
func (in *ClusterEnforcerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterEnforcerSpec ¶
type ClusterEnforcerSpec struct { Namespaces []string `json:"namespaces,omitempty"` MatchStrategy MatchStrategy `json:"matchStrategy,omitempty"` Attesters []*EnforcerAttester `json:"attesters"` }
ClusterEnforcerSpec defines the desired state of ClusterEnforcer
func (*ClusterEnforcerSpec) DeepCopy ¶
func (in *ClusterEnforcerSpec) DeepCopy() *ClusterEnforcerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnforcerSpec.
func (*ClusterEnforcerSpec) DeepCopyInto ¶
func (in *ClusterEnforcerSpec) DeepCopyInto(out *ClusterEnforcerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterEnforcerStatus ¶
type ClusterEnforcerStatus struct { }
ClusterEnforcerStatus defines the observed state of ClusterEnforcer
func (*ClusterEnforcerStatus) DeepCopy ¶
func (in *ClusterEnforcerStatus) DeepCopy() *ClusterEnforcerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnforcerStatus.
func (*ClusterEnforcerStatus) DeepCopyInto ¶
func (in *ClusterEnforcerStatus) DeepCopyInto(out *ClusterEnforcerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Collector ¶
type Collector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CollectorSpec `json:"spec,omitempty"` Status CollectorStatus `json:"status,omitempty"` }
Collector is the Schema for the collectors API
func (*Collector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Collector.
func (*Collector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Collector) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Collector) GetConditions ¶
func (*Collector) SetConditions ¶ added in v0.3.1
type CollectorECRConfig ¶
type CollectorECRConfig struct { // Denotes the name of the AWS SQS queue to collect events from. QueueName string `json:"queueName,omitempty"` }
CollectorAWSConfig defines configuration for ECR type collectors.
func (*CollectorECRConfig) DeepCopy ¶
func (in *CollectorECRConfig) DeepCopy() *CollectorECRConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CollectorECRConfig.
func (*CollectorECRConfig) DeepCopyInto ¶
func (in *CollectorECRConfig) DeepCopyInto(out *CollectorECRConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CollectorHarborConfig ¶ added in v0.2.1
type CollectorHarborConfig struct { HarborURL string `json:"harborUrl,omitempty"` Project string `json:"project,omitempty"` Secret string `json:"secret,omitempty"` }
CollectorHarborConfig defines configuration for Harbor type collectors.
func (*CollectorHarborConfig) DeepCopy ¶ added in v0.3.0
func (in *CollectorHarborConfig) DeepCopy() *CollectorHarborConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CollectorHarborConfig.
func (*CollectorHarborConfig) DeepCopyInto ¶ added in v0.3.0
func (in *CollectorHarborConfig) DeepCopyInto(out *CollectorHarborConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CollectorList ¶
type CollectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Collector `json:"items"` }
CollectorList contains a list of Collector
func (*CollectorList) DeepCopy ¶
func (in *CollectorList) DeepCopy() *CollectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CollectorList.
func (*CollectorList) DeepCopyInto ¶
func (in *CollectorList) DeepCopyInto(out *CollectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CollectorList) DeepCopyObject ¶
func (in *CollectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CollectorSpec ¶
type CollectorSpec struct { // Type defines the type of collector that this is. Supported values are ecr, harbor, test CollectorType string `json:"type"` // Defines configuration for collectors of the ecr type. // +optional ECR CollectorECRConfig `json:"ecr,omitempty"` Harbor CollectorHarborConfig `json:"harbor,omitempty"` }
CollectorSpec defines the desired state of Collector
func (*CollectorSpec) DeepCopy ¶
func (in *CollectorSpec) DeepCopy() *CollectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CollectorSpec.
func (*CollectorSpec) DeepCopyInto ¶
func (in *CollectorSpec) DeepCopyInto(out *CollectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CollectorStatus ¶
type CollectorStatus struct {
Conditions []Condition `json:"conditions,omitempty"`
}
CollectorStatus defines the observed state of Collector
func (*CollectorStatus) DeepCopy ¶
func (in *CollectorStatus) DeepCopy() *CollectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CollectorStatus.
func (*CollectorStatus) DeepCopyInto ¶
func (in *CollectorStatus) DeepCopyInto(out *CollectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { Type ConditionType `json:"type"` Status ConditionStatus `json:"status"` LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` Message string `json:"message,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionStatusUnknown ConditionStatus = "Unknown" ConditionStatusTrue ConditionStatus = "True" ConditionStatusFalse ConditionStatus = "False" )
func GetConditionStatus ¶ added in v0.3.1
func GetConditionStatus(con Conditioner, conditionType ConditionType) ConditionStatus
type ConditionType ¶
type ConditionType string
const ( ConditionActive ConditionType = "Active" ConditionCompiled ConditionType = "Policy" ConditionSecret ConditionType = "Key" )
type Conditioner ¶ added in v0.3.1
+k8s:deepcopy-gen=false
type Enforcer ¶
type Enforcer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EnforcerSpec `json:"spec,omitempty"` Status EnforcerStatus `json:"status,omitempty"` }
Enforcer is the Schema for the enforcers API
func (*Enforcer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Enforcer.
func (*Enforcer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Enforcer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnforcerAttester ¶
func (*EnforcerAttester) DeepCopy ¶
func (in *EnforcerAttester) DeepCopy() *EnforcerAttester
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnforcerAttester.
func (*EnforcerAttester) DeepCopyInto ¶
func (in *EnforcerAttester) DeepCopyInto(out *EnforcerAttester)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EnforcerAttester) String ¶
func (ea EnforcerAttester) String() string
type EnforcerList ¶
type EnforcerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Enforcer `json:"items"` }
EnforcerList contains a list of Enforcer
func (*EnforcerList) DeepCopy ¶
func (in *EnforcerList) DeepCopy() *EnforcerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnforcerList.
func (*EnforcerList) DeepCopyInto ¶
func (in *EnforcerList) DeepCopyInto(out *EnforcerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EnforcerList) DeepCopyObject ¶
func (in *EnforcerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnforcerSpec ¶
type EnforcerSpec struct { // Foo is an example field of Enforcer. Edit Enforcer_types.go to remove/update Attesters []*EnforcerAttester `json:"attesters"` }
EnforcerSpec defines the desired state of Enforcer
func (*EnforcerSpec) DeepCopy ¶
func (in *EnforcerSpec) DeepCopy() *EnforcerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnforcerSpec.
func (*EnforcerSpec) DeepCopyInto ¶
func (in *EnforcerSpec) DeepCopyInto(out *EnforcerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnforcerStatus ¶
type EnforcerStatus struct { }
EnforcerStatus defines the observed state of Enforcer
func (*EnforcerStatus) DeepCopy ¶
func (in *EnforcerStatus) DeepCopy() *EnforcerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnforcerStatus.
func (*EnforcerStatus) DeepCopyInto ¶
func (in *EnforcerStatus) DeepCopyInto(out *EnforcerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MatchStrategy ¶
type MatchStrategy string
const ( // IncludeMatchStrategy Enforce attestations in namespaces matching list IncludeMatchStrategy MatchStrategy = "Include" // ExcludematchStrategy Enforce attestation in namespaces not matching list ExcludematchStrategy MatchStrategy = "Exclude" )