v1

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=portieris.cloud.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder .
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme .
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// TruePointer - pointer to a boolwan value of true
	TruePointer = boolPointer(true)
	// FalsePointer - pointer to a boolwan value of false
	FalsePointer = boolPointer(false)
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: policy.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 ClusterImagePolicy

type ClusterImagePolicy struct {
	metav1.TypeMeta
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ImagePolicySpec `json:"spec"`
}

ClusterImagePolicy is a specification for a ClusterImagePolicy resource

func (*ClusterImagePolicy) DeepCopy

func (in *ClusterImagePolicy) DeepCopy() *ClusterImagePolicy

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

func (*ClusterImagePolicy) DeepCopyInto

func (in *ClusterImagePolicy) DeepCopyInto(out *ClusterImagePolicy)

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

func (*ClusterImagePolicy) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterImagePolicyList

type ClusterImagePolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta `json:"metadata"`

	Items []ClusterImagePolicy `json:"items"`
}

ClusterImagePolicyList is a list of ClusterImagePolicy resources

func (*ClusterImagePolicyList) DeepCopy

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

func (*ClusterImagePolicyList) DeepCopyInto

func (in *ClusterImagePolicyList) DeepCopyInto(out *ClusterImagePolicyList)

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

func (*ClusterImagePolicyList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (ClusterImagePolicyList) FindClusterImagePolicy

func (apl ClusterImagePolicyList) FindClusterImagePolicy(image string) *Policy

FindClusterImagePolicy - Given an ClusterImagePolicyList, find the repository whose name most closely matches the image name, and returns its policy. If there are no matches, return a nil value.

type ICCRVA

type ICCRVA struct {
	Enabled *bool  `json:"enabled,omitempty"`
	Account string `json:"account,omitempty"`
}

ICCRVA IBM Cloud Container Registry Vulnerability Advisor policy

func (*ICCRVA) DeepCopy

func (in *ICCRVA) DeepCopy() *ICCRVA

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

func (*ICCRVA) DeepCopyInto

func (in *ICCRVA) DeepCopyInto(out *ICCRVA)

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

type IdentityRequirement

type IdentityRequirement struct {
	Type             string `json:"type"`
	DockerReference  string `json:"dockerReference,omitempty"`
	DockerRepository string `json:"dockerRepository,omitempty"`
	Prefix           string `json:"prefix,omitempty"`
	SignedPrefix     string `json:"signedPrefix,omitempty"`
}

IdentityRequirement .

func (*IdentityRequirement) DeepCopy

func (in *IdentityRequirement) DeepCopy() *IdentityRequirement

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

func (*IdentityRequirement) DeepCopyInto

func (in *IdentityRequirement) DeepCopyInto(out *IdentityRequirement)

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

type ImagePolicy

type ImagePolicy struct {
	metav1.TypeMeta
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ImagePolicySpec `json:"spec"`
}

ImagePolicy is a specification for a ImagePolicy resource

func (*ImagePolicy) DeepCopy

func (in *ImagePolicy) DeepCopy() *ImagePolicy

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

func (*ImagePolicy) DeepCopyInto

func (in *ImagePolicy) DeepCopyInto(out *ImagePolicy)

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

func (*ImagePolicy) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ImagePolicyList

type ImagePolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta `json:"metadata"`

	Items []ImagePolicy `json:"items"`
}

ImagePolicyList is a list of ImagePolicy resources

func (*ImagePolicyList) DeepCopy

func (in *ImagePolicyList) DeepCopy() *ImagePolicyList

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

func (*ImagePolicyList) DeepCopyInto

func (in *ImagePolicyList) DeepCopyInto(out *ImagePolicyList)

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

func (*ImagePolicyList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (ImagePolicyList) FindImagePolicy

func (apl ImagePolicyList) FindImagePolicy(image string) *Policy

FindImagePolicy - Given an ImagePolicyList, find the repository whose name most closely matches the image name, and returns its policy. If there are no matches, return a nil value.

type ImagePolicySpec

type ImagePolicySpec struct {
	Repositories []Repository `json:"repositories"`
}

ImagePolicySpec is the spec for a ImagePolicy or ClusterImagePolicy resource

func (*ImagePolicySpec) DeepCopy

func (in *ImagePolicySpec) DeepCopy() *ImagePolicySpec

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

func (*ImagePolicySpec) DeepCopyInto

func (in *ImagePolicySpec) DeepCopyInto(out *ImagePolicySpec)

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

type Policy

type Policy struct {
	Trust         Trust         `json:"trust,omitempty"`
	Simple        Simple        `json:"simple,omitempty"`
	Vulnerability Vulnerability `json:"vulnerability,omitempty"`
	MutateImage   *bool         `json:"mutateImage,omitempty"`
}

Policy .

func (*Policy) DeepCopy

func (in *Policy) DeepCopy() *Policy

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

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

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

type Repository

type Repository struct {
	Name   string `json:"name,omitempty"` // Name may contain a * to signify one or more characters
	Policy Policy `json:"policy,omitempty"`
}

Repository .

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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

type Simple

type Simple struct {
	Requirements []SimpleRequirement `json:"requirements"`
	StoreURL     string              `json:"storeURL,omitempty"`
	StoreSecret  string              `json:"storeSecret,omitempty"`
}

Simple .

func (*Simple) DeepCopy

func (in *Simple) DeepCopy() *Simple

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

func (*Simple) DeepCopyInto

func (in *Simple) DeepCopyInto(out *Simple)

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

type SimpleRequirement

type SimpleRequirement struct {
	Type               string              `json:"type"`
	KeySecret          string              `json:"keySecret,omitempty"`
	KeySecretNamespace string              `json:"keySecretNamespace,omitempty"`
	SignedIdentity     IdentityRequirement `json:"signedIdentity,omitempty"`
}

SimpleRequirement .

func (*SimpleRequirement) DeepCopy

func (in *SimpleRequirement) DeepCopy() *SimpleRequirement

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

func (*SimpleRequirement) DeepCopyInto

func (in *SimpleRequirement) DeepCopyInto(out *SimpleRequirement)

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

type Trust

type Trust struct {
	Enabled       *bool         `json:"enabled,omitempty"`
	SignerSecrets []TrustSigner `json:"signerSecrets,omitempty"`
	TrustServer   string        `json:"trustServer,omitempty"`
}

Trust .

func (*Trust) DeepCopy

func (in *Trust) DeepCopy() *Trust

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

func (*Trust) DeepCopyInto

func (in *Trust) DeepCopyInto(out *Trust)

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

type TrustSigner

type TrustSigner struct {
	Name string `json:"name"`
}

TrustSigner .

func (*TrustSigner) DeepCopy

func (in *TrustSigner) DeepCopy() *TrustSigner

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

func (*TrustSigner) DeepCopyInto

func (in *TrustSigner) DeepCopyInto(out *TrustSigner)

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

type Vulnerability

type Vulnerability struct {
	ICCRVA ICCRVA `json:"ICCRVA,omitempty"`
}

Vulnerability policy

func (*Vulnerability) DeepCopy

func (in *Vulnerability) DeepCopy() *Vulnerability

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

func (*Vulnerability) DeepCopyInto

func (in *Vulnerability) DeepCopyInto(out *Vulnerability)

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