v1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package v1 contains API Schema definitions for the tmax.io v1 API group +kubebuilder:object:generate=true +groupName=tmax.io

Index

Constants

View Source
const (

	// ConditionTypeDeployment is a condition that deployment exists
	ConditionTypeDeployment = status.ConditionType("DeploymentExist")
	// ConditionTypePod is a condition that pod is running
	ConditionTypePod = status.ConditionType("PodRunning")
	// ConditionTypeService is a condition that service exists
	ConditionTypeService = status.ConditionType("ServiceExist")
	// ConditionTypeSecretOpaque is a condition that opaque secret exists
	ConditionTypeSecretOpaque = status.ConditionType("SecretOpaqueExist")
	// ConditionTypeSecretDockerConfigJSON is a condition that docker config json secret exists
	ConditionTypeSecretDockerConfigJSON = status.ConditionType("SecretDockerConfigJsonExist")
	// ConditionTypeSecretTLS is a condition that tls secret exists
	ConditionTypeSecretTLS = status.ConditionType("SecretTlsExist")
	// ConditionTypeIngress is a condition that ingress exists
	ConditionTypeIngress = status.ConditionType("IngressExist")
	// ConditionTypePvc is a condition that PVC exists
	ConditionTypePvc = status.ConditionType("PvcExist")
	// ConditionTypeConfigMap is a condition that confimap exists
	ConditionTypeConfigMap = status.ConditionType("ConfigMapExist")
	// ConditionTypeNotary is a condition that notary exists
	ConditionTypeNotary = status.ConditionType("NotaryExist")

	// ConditionTypeNotaryDBPod is a condition that notary DB pod exists
	ConditionTypeNotaryDBPod = status.ConditionType("NotaryDBPodExist")
	// ConditionTypeNotaryDBPVC is a condition that notary DB PVC exists
	ConditionTypeNotaryDBPVC = status.ConditionType("NotaryDBPVCExist")
	// ConditionTypeNotaryDBService is a condition that notary DB service exists
	ConditionTypeNotaryDBService = status.ConditionType("NotaryDBServiceExist")
	// ConditionTypeNotaryServerIngress is a condition that notary server ingress exists
	ConditionTypeNotaryServerIngress = status.ConditionType("NotaryServerIngressExist")
	// ConditionTypeNotaryServerPod is a condition that notary server pod exists
	ConditionTypeNotaryServerPod = status.ConditionType("NotaryServerPodExist")
	// ConditionTypeNotaryServerSecret is a condition that notary server secret exists
	ConditionTypeNotaryServerSecret = status.ConditionType("NotaryServerSecretExist")
	// ConditionTypeNotaryServerService is a condition that notary server service exists
	ConditionTypeNotaryServerService = status.ConditionType("NotaryServerServiceExist")
	// ConditionTypeNotarySignerPod is a condition that notary signer pod exists
	ConditionTypeNotarySignerPod = status.ConditionType("NotarySignerPodExist")
	// ConditionTypeNotarySignerSecret is a condition that notary signer secret exists
	ConditionTypeNotarySignerSecret = status.ConditionType("NotarySignerSecretExist")
	// ConditionTypeNotarySignerService is a condition that notary signer service exists
	ConditionTypeNotarySignerService = status.ConditionType("NotarySignerServiceExist")

	// ConditionTypeExRegistryInitialized is a condition that external registry is initialized
	ConditionTypeExRegistryInitialized = status.ConditionType("Initialized")
	// ConditionTypeExRegistryCronJobExist is a condition that cronjob exists
	ConditionTypeExRegistryCronJobExist = status.ConditionType("CronJobExist")
	// ConditionTypeExRegistryLoginSecretExist is a condition that login secret exists
	ConditionTypeExRegistryLoginSecretExist = status.ConditionType("LoginSecretExist")

	// ConditionTypeImageReplicateRegistryJobExist is a condition that registry job to replicate image exists
	ConditionTypeImageReplicateRegistryJobExist = status.ConditionType("RegistryJobExist")
	// ConditionTypeImageReplicateRegistryJobProcessing is a condition that registry job to replicate image is processing
	ConditionTypeImageReplicateRegistryJobProcessing = status.ConditionType("RegistryJobProcessing")
	// ConditionTypeImageReplicateRegistryJobSuccess is a condition that registry job to replicate image is succeeded
	ConditionTypeImageReplicateRegistryJobSuccess = status.ConditionType("RegistryJobSuccess")
	// ConditionTypeImageReplicateImageSignRequestExist is a condition that image sign request exists
	ConditionTypeImageReplicateImageSignRequestExist = status.ConditionType("ImageSignRequestExist")
	// ConditionTypeImageReplicateImageSigning is a condition that replicated image is being signed
	ConditionTypeImageReplicateImageSigning = status.ConditionType("ImageSigning")
	// ConditionTypeImageReplicateImageSigningSuccess is a condition that signing image is succeeded
	ConditionTypeImageReplicateImageSigningSuccess = status.ConditionType("ImageSigningSuccess")
	// ConditionTypeImageReplicateSynchronized is a condition that repository list is synchronized
	ConditionTypeImageReplicateSynchronized = status.ConditionType("Synchronized")
)
View Source
const (
	// K8sPrefix is hypercloud prefix
	K8sPrefix = "hpcd-"
	// OperatorNamespace is default operator namespace
	OperatorNamespace = "registry-system"
	// TLSPrefix is TLS secret prefix
	TLSPrefix = "tls-"
	// K8sRegistryPrefix is registry's image pull secret resource prefix
	K8sRegistryPrefix = "registry-"
	// K8sNotaryPrefix is notary resource prefix
	K8sNotaryPrefix = "notary-"
	// K8sKeycloakPrefix is keycloak resource prefix
	K8sKeycloakPrefix = "keycloak-"
	// CustomObjectGroup is custom resource group
	CustomObjectGroup = "tmax.io"

	// RegistryRootCASecretName is OpenSSL Cert File Name
	RegistryRootCASecretName = "registry-ca"
	// KeycloakCASecretName is keycloak cert secret name
	KeycloakCASecretName = "keycloak-cert"
)
View Source
const (
	// PodNotFound is an error that pod is not found
	PodNotFound = "PodNotFound"
	// ContainerNotFound is an error that container is not found
	ContainerNotFound = "ContainerNotFound"
	// ContainerStatusIsNil is an error that container status is nil
	ContainerStatusIsNil = "ContainerStatusIsNil"
	// PodNotRunning is an error that pod is not running
	PodNotRunning = "PodNotRunning"
	// PvcVolumeMountNotFound is an error that PVC volume mount is not found in pod
	PvcVolumeMountNotFound = "PvcVolumeMountNotFound"
	// PvcVolumeNotFound is an error that volume is not found in pod
	PvcVolumeNotFound = "PvcVolumeNotFound"
)
View Source
const (
	ResponseResultSigning = ResponseResult("Signing")
	ResponseResultSuccess = ResponseResult("Success")
	ResponseResultFail    = ResponseResult("Fail")
)
View Source
const (
	NotaryServiceTypeIngress      = NotaryServiceType("Ingress")
	NotaryServiceTypeLoadBalancer = NotaryServiceType("LoadBalancer")
)
View Source
const (
	// StatusNotReady is a status that registry is not ready
	StatusNotReady = "NotReady"
	// StatusRunning is a status taht registry is running
	StatusRunning = "Running"
	// StatusCreating is a status that registry subresources are being created
	StatusCreating = "Creating"
	StatusError    = "Error"
)
View Source
const (
	RegServiceTypeLoadBalancer = "LoadBalancer"
	RegServiceTypeIngress      = "ClusterIP"
)
View Source
const (
	RegistryJobStatePending   = RegistryJobState("Pending")
	RegistryJobStateRunning   = RegistryJobState("Running")
	RegistryJobStateCompleted = RegistryJobState("Completed")
	RegistryJobStateFailed    = RegistryJobState("Failed")

	JobTypeSynchronizeExtReg = RegistryJobType("SynchronizeExtReg")
	JobTypeImageReplicate    = RegistryJobType("ImageReplicate")
)

RegistryJob's states

View Source
const AccessModeDefault = "ReadWriteMany"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tmax.io", Version: "v1"}

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

func MakeRegistryError(e string) error

MakeRegistryError sets error of registry subresource

Types

type AccessMode

type AccessMode string

+kubebuilder:validation:Enum=ReadWriteOnce;ReadWriteMany

type ActorRecord

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

func (*ActorRecord) DeepCopy

func (in *ActorRecord) DeepCopy() *ActorRecord

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

func (*ActorRecord) DeepCopyInto

func (in *ActorRecord) DeepCopyInto(out *ActorRecord)

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

type AuthConfig

type AuthConfig struct {
	Realm   string `json:"realm"`
	Service string `json:"service"`
	Issuer  string `json:"issuer"`
}

func (*AuthConfig) DeepCopy

func (in *AuthConfig) DeepCopy() *AuthConfig

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

func (*AuthConfig) DeepCopyInto

func (in *AuthConfig) DeepCopyInto(out *AuthConfig)

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

type Authorizer

type Authorizer struct {
	Username string
	Password string
}

func (*Authorizer) DeepCopy

func (in *Authorizer) DeepCopy() *Authorizer

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

func (*Authorizer) DeepCopyInto

func (in *Authorizer) DeepCopyInto(out *Authorizer)

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

type CreatePvc

type CreatePvc struct {
	// Each PV's access modes are set to the specific modes supported by that particular volume.
	// Ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes
	// You can choose ReadWriteOnce, ReadOnlyMany and ReadWriteMany
	AccessModes []AccessMode `json:"accessModes"`

	// Desired storage size like "10Gi"
	StorageSize string `json:"storageSize"`

	// StorageClassName like "csi-cephfs-sc"
	StorageClassName string `json:"storageClassName"`

	// Delete the pvc as well when this registry is deleted (default: false)
	DeleteWithPvc bool `json:"deleteWithPvc,omitempty"`
}

func (*CreatePvc) DeepCopy

func (in *CreatePvc) DeepCopy() *CreatePvc

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

func (*CreatePvc) DeepCopyInto

func (in *CreatePvc) DeepCopyInto(out *CreatePvc)

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

type ExistPvc

type ExistPvc struct {
	// PVC's name you have created
	PvcName string `json:"pvcName"`
}

func (*ExistPvc) DeepCopy

func (in *ExistPvc) DeepCopy() *ExistPvc

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

func (*ExistPvc) DeepCopyInto

func (in *ExistPvc) DeepCopyInto(out *ExistPvc)

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

type ExternalRegistry

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

	Spec   ExternalRegistrySpec   `json:"spec,omitempty"`
	Status ExternalRegistryStatus `json:"status,omitempty"`
}

ExternalRegistry is the Schema for the externalregistries API

func (*ExternalRegistry) DeepCopy

func (in *ExternalRegistry) DeepCopy() *ExternalRegistry

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

func (*ExternalRegistry) DeepCopyInto

func (in *ExternalRegistry) DeepCopyInto(out *ExternalRegistry)

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

func (*ExternalRegistry) DeepCopyObject

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

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

type ExternalRegistryList

type ExternalRegistryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExternalRegistry `json:"items"`
}

ExternalRegistryList contains a list of ExternalRegistry

func (*ExternalRegistryList) DeepCopy

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

func (*ExternalRegistryList) DeepCopyInto

func (in *ExternalRegistryList) DeepCopyInto(out *ExternalRegistryList)

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

func (*ExternalRegistryList) DeepCopyObject

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

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

type ExternalRegistrySpec

type ExternalRegistrySpec struct {
	// +kubebuilder:validation:Enum=HarborV2;DockerHub;Docker
	// Registry type like HarborV2
	RegistryType RegistryType `json:"registryType"`
	// Registry URL (example: https://192.168.6.100:5000)
	// If ReigstryType is DockerHub, this value must be "https://registry-1.docker.io"
	RegistryURL string `json:"registryUrl"`
	// Certificate secret name for private registry. Secret's data key must be 'ca.crt' or 'tls.crt'.
	CertificateSecret string `json:"certificateSecret,omitempty"`
	// Do not verify tls certificates
	Insecure bool `json:"insecure,omitempty"`
	// Login ID for registry
	LoginID string `json:"loginId,omitempty"`
	// Login password for registry
	LoginPassword string `json:"loginPassword,omitempty"`
	// Schedule is a cron spec for periodic sync
	// If you want to synchronize repository every 5 minute, enter "*/5 * * * *".
	// Cron spec ref: https://ko.wikipedia.org/wiki/Cron
	Schedule string `json:"schedule,omitempty"`
}

ExternalRegistrySpec defines the desired state of ExternalRegistry

func (*ExternalRegistrySpec) DeepCopy

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

func (*ExternalRegistrySpec) DeepCopyInto

func (in *ExternalRegistrySpec) DeepCopyInto(out *ExternalRegistrySpec)

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

type ExternalRegistryStatus

type ExternalRegistryStatus struct {
	// Login id and password secret object for registry
	LoginSecret string `json:"loginSecret,omitempty"`
	// Conditions are status of subresources
	Conditions status.Conditions `json:"conditions,omitempty"`
	// State is a status of external registry
	State ExternalRegistryStatusType `json:"state,omitempty"`
	// StateChangedAt is the time when state was changed
	StateChangedAt metav1.Time `json:"stateChangedAt,omitempty"`
}

ExternalRegistryStatus defines the observed state of ExternalRegistry

func (*ExternalRegistryStatus) DeepCopy

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

func (*ExternalRegistryStatus) DeepCopyInto

func (in *ExternalRegistryStatus) DeepCopyInto(out *ExternalRegistryStatus)

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

type ExternalRegistryStatusType

type ExternalRegistryStatusType string

ExternalRegistryStatusType is status type of external registry

const (
	// ExternalRegistryPending is
	ExternalRegistryPending ExternalRegistryStatusType = "Pending"
	// ExternalRegistryReady is
	ExternalRegistryReady ExternalRegistryStatusType = "Ready"
	// ExternalRegistryNotReady is
	ExternalRegistryNotReady ExternalRegistryStatusType = "NotReady"
)

type ImageInfo

type ImageInfo struct {
	// +kubebuilder:validation:Enum=HpcdRegistry;DockerHub;Docker;HarborV2
	// Registry type like HarborV2
	RegistryType RegistryType `json:"registryType"`
	// metadata name of external registry or hpcd registry
	RegistryName string `json:"registryName"`
	// metadata namespace of external registry or hpcd registry
	RegistryNamespace string `json:"registryNamespace"`
	// Image path (example: library/alpine:3)
	Image string `json:"image"`
}

ImageInfo consists of registry information and image information.

func (*ImageInfo) DeepCopy

func (in *ImageInfo) DeepCopy() *ImageInfo

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

func (*ImageInfo) DeepCopyInto

func (in *ImageInfo) DeepCopyInto(out *ImageInfo)

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

type ImageReplicate

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

	Spec   ImageReplicateSpec   `json:"spec,omitempty"`
	Status ImageReplicateStatus `json:"status,omitempty"`
}

ImageReplicate is the Schema for the imagereplicates API

func (*ImageReplicate) DeepCopy

func (in *ImageReplicate) DeepCopy() *ImageReplicate

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

func (*ImageReplicate) DeepCopyInto

func (in *ImageReplicate) DeepCopyInto(out *ImageReplicate)

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

func (*ImageReplicate) DeepCopyObject

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

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

type ImageReplicateList

type ImageReplicateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImageReplicate `json:"items"`
}

ImageReplicateList contains a list of ImageReplicate

func (*ImageReplicateList) DeepCopy

func (in *ImageReplicateList) DeepCopy() *ImageReplicateList

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

func (*ImageReplicateList) DeepCopyInto

func (in *ImageReplicateList) DeepCopyInto(out *ImageReplicateList)

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

func (*ImageReplicateList) DeepCopyObject

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

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

type ImageReplicateSpec

type ImageReplicateSpec struct {
	// Source image information
	FromImage ImageInfo `json:"fromImage"`
	// Destination image information
	ToImage ImageInfo `json:"toImage"`
	// The name of the signer to sign the image you moved. This field is available only if destination registry's `RegistryType` is `HpcdRegistry`
	Signer string `json:"signer,omitempty"`
}

ImageReplicateSpec defines the desired state of ImageReplicate

func (*ImageReplicateSpec) DeepCopy

func (in *ImageReplicateSpec) DeepCopy() *ImageReplicateSpec

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

func (*ImageReplicateSpec) DeepCopyInto

func (in *ImageReplicateSpec) DeepCopyInto(out *ImageReplicateSpec)

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

type ImageReplicateStatus

type ImageReplicateStatus struct {
	// Conditions are status of subresources
	Conditions status.Conditions `json:"conditions,omitempty"`
	// ImageSignRequestName is ImageSignRequest's name if exists
	ImageSignRequestName string `json:"imageSignRequestName,omitempty"`
	// State is a status of external registry
	State ImageReplicateStatusType `json:"state,omitempty"`
	// StateChangedAt is the time when state was changed
	StateChangedAt metav1.Time `json:"stateChangedAt,omitempty"`
}

ImageReplicateStatus defines the observed state of ImageReplicate

func (*ImageReplicateStatus) DeepCopy

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

func (*ImageReplicateStatus) DeepCopyInto

func (in *ImageReplicateStatus) DeepCopyInto(out *ImageReplicateStatus)

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

type ImageReplicateStatusType

type ImageReplicateStatusType string

ImageReplicateStatusType is status type of external registry

const (
	// ImageReplicateSuccess is a status that replicating image is finished successfully
	ImageReplicateSuccess ImageReplicateStatusType = "Success"
	// ImageReplicateFail is a failed status while copying image
	ImageReplicateFail ImageReplicateStatusType = "Fail"
	// ImageReplicatePending is an initial status
	ImageReplicatePending ImageReplicateStatusType = "Pending"
	// ImageReplicateProcessing is status that replicating is started
	ImageReplicateProcessing ImageReplicateStatusType = "Processing"
)

type ImageScanRequest

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

	Spec   ImageScanRequestSpec   `json:"spec,omitempty"`
	Status ImageScanRequestStatus `json:"status,omitempty"`
}

ImageScanRequest is the Schema for the imagescanrequests API

func (*ImageScanRequest) DeepCopy

func (in *ImageScanRequest) DeepCopy() *ImageScanRequest

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

func (*ImageScanRequest) DeepCopyInto

func (in *ImageScanRequest) DeepCopyInto(out *ImageScanRequest)

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

func (*ImageScanRequest) DeepCopyObject

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

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

type ImageScanRequestESReport

type ImageScanRequestESReport struct {
	Image string `json:"image,omitempty"`
	//Scna results {docker.io/library/alpine:3: {summary : {"Low" : 1, "Medium" : 2, ...}}
	Result ScanResult `json:"result,omitempty"`
}

ImageScanRequestESReport is a report to send the result to Elastic Search

func (*ImageScanRequestESReport) DeepCopy

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

func (*ImageScanRequestESReport) DeepCopyInto

func (in *ImageScanRequestESReport) DeepCopyInto(out *ImageScanRequestESReport)

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

type ImageScanRequestList

type ImageScanRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImageScanRequest `json:"items"`
}

ImageScanRequestList contains a list of ImageScanRequest

func (*ImageScanRequestList) DeepCopy

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

func (*ImageScanRequestList) DeepCopyInto

func (in *ImageScanRequestList) DeepCopyInto(out *ImageScanRequestList)

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

func (*ImageScanRequestList) DeepCopyObject

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

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

type ImageScanRequestSpec

type ImageScanRequestSpec struct {
	ScanTargets []ScanTarget `json:"scanTargets"`
	// Do not verify registry server's certificate
	Insecure bool `json:"insecure,omitempty"`
	// The number of fixable issues allowable
	MaxFixable int `json:"maxFixable,omitempty"`
	// Whether to send result to report server
	SendReport bool `json:"sendReport,omitempty"`
}

ImageScanRequestSpec defines the desired state of ImageScanRequest

func (*ImageScanRequestSpec) DeepCopy

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

func (*ImageScanRequestSpec) DeepCopyInto

func (in *ImageScanRequestSpec) DeepCopyInto(out *ImageScanRequestSpec)

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

type ImageScanRequestStatus

type ImageScanRequestStatus struct {
	//Scan message for status
	Message string `json:"message,omitempty"`
	//Scan error reason
	Reason string `json:"reason,omitempty"`
	//Scan status
	Status ScanRequestStatusType `json:"status,omitempty"`
	//Scna results {docker.io/library/alpine:3: {summary : {"Low" : 1, "Medium" : 2, ...}}
	Results map[string]ScanResult `json:"results,omitempty"`
}

ImageScanRequestStatus defines the observed state of ImageScanRequest

func (*ImageScanRequestStatus) DeepCopy

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

func (*ImageScanRequestStatus) DeepCopyInto

func (in *ImageScanRequestStatus) DeepCopyInto(out *ImageScanRequestStatus)

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

type ImageSignRequest

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

	Spec   ImageSignRequestSpec   `json:"spec,omitempty"`
	Status ImageSignRequestStatus `json:"status,omitempty"`
}

ImageSignRequest is the Schema for the imagesignrequests API

func (*ImageSignRequest) DeepCopy

func (in *ImageSignRequest) DeepCopy() *ImageSignRequest

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

func (*ImageSignRequest) DeepCopyInto

func (in *ImageSignRequest) DeepCopyInto(out *ImageSignRequest)

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

func (*ImageSignRequest) DeepCopyObject

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

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

type ImageSignRequestList

type ImageSignRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImageSignRequest `json:"items"`
}

ImageSignRequestList contains a list of ImageSignRequest

func (*ImageSignRequestList) DeepCopy

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

func (*ImageSignRequestList) DeepCopyInto

func (in *ImageSignRequestList) DeepCopyInto(out *ImageSignRequestList)

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

func (*ImageSignRequestList) DeepCopyObject

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

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

type ImageSignRequestSpec

type ImageSignRequestSpec struct {
	// Image name to sign (example: docker.io/library/alpine:3)
	Image string `json:"image"`
	// ImageSigner's metadata name to sign image
	Signer string `json:"signer"`
	// Secrets to login registry
	RegistrySecret `json:"registryLogin,omitempty"`
}

ImageSignRequestSpec defines the desired state of ImageSignRequest

func (*ImageSignRequestSpec) DeepCopy

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

func (*ImageSignRequestSpec) DeepCopyInto

func (in *ImageSignRequestSpec) DeepCopyInto(out *ImageSignRequestSpec)

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

type ImageSignRequestStatus

type ImageSignRequestStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	*ImageSignResponse `json:"imageSignResponse,omitempty"`
}

ImageSignRequestStatus defines the observed state of ImageSignRequest

func (*ImageSignRequestStatus) DeepCopy

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

func (*ImageSignRequestStatus) DeepCopyInto

func (in *ImageSignRequestStatus) DeepCopyInto(out *ImageSignRequestStatus)

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

type ImageSignResponse

type ImageSignResponse struct {
	// Result: Success / Fail
	Result  ResponseResult `json:"result,omitempty"`
	Reason  string         `json:"reason,omitempty"`
	Message string         `json:"message,omitempty"`
}

func (*ImageSignResponse) DeepCopy

func (in *ImageSignResponse) DeepCopy() *ImageSignResponse

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

func (*ImageSignResponse) DeepCopyInto

func (in *ImageSignResponse) DeepCopyInto(out *ImageSignResponse)

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

type ImageSigner

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

	Spec   ImageSignerSpec   `json:"spec,omitempty"`
	Status ImageSignerStatus `json:"status,omitempty"`
}

ImageSigner is the Schema for the imagesigners API

func (*ImageSigner) DeepCopy

func (in *ImageSigner) DeepCopy() *ImageSigner

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

func (*ImageSigner) DeepCopyInto

func (in *ImageSigner) DeepCopyInto(out *ImageSigner)

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

func (*ImageSigner) DeepCopyObject

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

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

type ImageSignerList

type ImageSignerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImageSigner `json:"items"`
}

ImageSignerList contains a list of ImageSigner

func (*ImageSignerList) DeepCopy

func (in *ImageSignerList) DeepCopy() *ImageSignerList

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

func (*ImageSignerList) DeepCopyInto

func (in *ImageSignerList) DeepCopyInto(out *ImageSignerList)

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

func (*ImageSignerList) DeepCopyObject

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

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

type ImageSignerSpec

type ImageSignerSpec struct {
	// ImageSigner's email
	Email string `json:"email,omitempty"`
	// ImageSigner's phone number
	Phone string `json:"phone,omitempty"`
	// ImageSigner's team
	Team string `json:"team,omitempty"`
	// Additional information of ImageSigner
	Description string `json:"description,omitempty"`
	// Don't deal with this field. If Owner field is set or manipulated, could not be recovered.
	Owner string `json:"owner,omitempty"`
}

ImageSignerSpec defines the desired state of ImageSigner

func (*ImageSignerSpec) DeepCopy

func (in *ImageSignerSpec) DeepCopy() *ImageSignerSpec

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

func (*ImageSignerSpec) DeepCopyInto

func (in *ImageSignerSpec) DeepCopyInto(out *ImageSignerSpec)

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

type ImageSignerStatus

type ImageSignerStatus struct {
	*SignerKeyState `json:"signerKeyState,omitempty"`
}

ImageSignerStatus defines the observed state of ImageSigner

func (*ImageSignerStatus) DeepCopy

func (in *ImageSignerStatus) DeepCopy() *ImageSignerStatus

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

func (*ImageSignerStatus) DeepCopyInto

func (in *ImageSignerStatus) DeepCopyInto(out *ImageSignerStatus)

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

type ImageVersion

type ImageVersion struct {
	// Created time of image version
	CreatedAt metav1.Time `json:"createdAt,omitempty"`
	// Version(=Tag) name
	Version string `json:"version"`
	// If true, this version will be deleted soon.
	Delete bool `json:"delete,omitempty"`
	// If signed image, image signer name is set.
	Signer string `json:"signer,omitempty"`
}

func (*ImageVersion) DeepCopy

func (in *ImageVersion) DeepCopy() *ImageVersion

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

func (*ImageVersion) DeepCopyInto

func (in *ImageVersion) DeepCopyInto(out *ImageVersion)

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

type Ingress

type Ingress struct {
	// [TODO] Minimum, Maximum
	// (example: 192.168.6.110.nip.io)
	DomainName string `json:"domainName"`
}

use ingress service type

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type LoadBalancer

type LoadBalancer struct {
	// external port. Generally use 443 port
	Port int `json:"port"`
}

use loadBalancer service type

func (*LoadBalancer) DeepCopy

func (in *LoadBalancer) DeepCopy() *LoadBalancer

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

func (*LoadBalancer) DeepCopyInto

func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)

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

type Notary

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

	Spec   NotarySpec   `json:"spec,omitempty"`
	Status NotaryStatus `json:"status,omitempty"`
}

Notary is the Schema for the notaries API

func (*Notary) DeepCopy

func (in *Notary) DeepCopy() *Notary

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

func (*Notary) DeepCopyInto

func (in *Notary) DeepCopyInto(out *Notary)

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

func (*Notary) DeepCopyObject

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

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

type NotaryDB added in v0.3.2

type NotaryDB struct {
	// resource requirements
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*NotaryDB) DeepCopy added in v0.3.2

func (in *NotaryDB) DeepCopy() *NotaryDB

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

func (*NotaryDB) DeepCopyInto added in v0.3.2

func (in *NotaryDB) DeepCopyInto(out *NotaryDB)

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

type NotaryList

type NotaryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Notary `json:"items"`
}

NotaryList contains a list of Notary

func (*NotaryList) DeepCopy

func (in *NotaryList) DeepCopy() *NotaryList

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

func (*NotaryList) DeepCopyInto

func (in *NotaryList) DeepCopyInto(out *NotaryList)

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

func (*NotaryList) DeepCopyObject

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

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

type NotaryPVC

type NotaryPVC struct {
	// Use exist pvc
	// +kubebuilder:validation:OneOf
	Exist *ExistPvc `json:"exist,omitempty"` // [TODO] One Of

	// Create new pvc
	// +kubebuilder:validation:OneOf
	Create *CreatePvc `json:"create,omitempty"` // [TODO] One Of
}

func (*NotaryPVC) DeepCopy

func (in *NotaryPVC) DeepCopy() *NotaryPVC

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

func (*NotaryPVC) DeepCopyInto

func (in *NotaryPVC) DeepCopyInto(out *NotaryPVC)

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

type NotaryServer added in v0.3.2

type NotaryServer struct {
	// resource requirements
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*NotaryServer) DeepCopy added in v0.3.2

func (in *NotaryServer) DeepCopy() *NotaryServer

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

func (*NotaryServer) DeepCopyInto added in v0.3.2

func (in *NotaryServer) DeepCopyInto(out *NotaryServer)

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

type NotaryServiceType

type NotaryServiceType string

type NotarySigner added in v0.3.2

type NotarySigner struct {
	// resource requirements
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*NotarySigner) DeepCopy added in v0.3.2

func (in *NotarySigner) DeepCopy() *NotarySigner

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

func (*NotarySigner) DeepCopyInto added in v0.3.2

func (in *NotarySigner) DeepCopyInto(out *NotarySigner)

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

type NotarySpec

type NotarySpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// Root CA certificate secret for notary
	RootCASecret string `json:"rootCASecret"`
	// Settings for registry authentication config
	AuthConfig AuthConfig `json:"authConfig"`
	// Service type to expose notary
	// +kubebuilder:validation:Enum=Ingress;LoadBalancer
	ServiceType           NotaryServiceType `json:"serviceType"`
	PersistentVolumeClaim NotaryPVC         `json:"persistentVolumeClaim"`

	// Settings for notary server
	Server NotaryServer `json:"server,omitempty"`
	// Settings for notary signer
	Signer NotarySigner `json:"signer,omitempty"`
	// Settings for notary database
	DB NotaryDB `json:"db,omitempty"`
}

NotarySpec defines the desired state of Notary

func (*NotarySpec) DeepCopy

func (in *NotarySpec) DeepCopy() *NotarySpec

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

func (*NotarySpec) DeepCopyInto

func (in *NotarySpec) DeepCopyInto(out *NotarySpec)

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

type NotaryStatus

type NotaryStatus struct {
	Conditions           status.Conditions `json:"conditions,omitempty"`
	ServerClusterIP      string            `json:"serverClusterIP,omitempty"`
	ServerLoadBalancerIP string            `json:"serverLoadBalancerIP,omitempty"`
	SignerClusterIP      string            `json:"signerClusterIP,omitempty"`
	SignerLoadBalancerIP string            `json:"signerLoadBalancerIP,omitempty"`
	NotaryURL            string            `json:"notaryURL,omitempty"`
}

NotaryStatus defines the observed state of Notary

func (*NotaryStatus) DeepCopy

func (in *NotaryStatus) DeepCopy() *NotaryStatus

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

func (*NotaryStatus) DeepCopyInto

func (in *NotaryStatus) DeepCopyInto(out *NotaryStatus)

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

type Registry

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

	Spec   RegistrySpec   `json:"spec"`
	Status RegistryStatus `json:"status,omitempty"`
}

Registry is the Schema for the registries API +kubebuilder:subresource:status +kubebuilder:resource:path=registries,scope=Namespaced,shortName=reg +kubebuilder:printcolumn:name="IMAGE",type=string,priority=1,JSONPath=`.spec.image` +kubebuilder:printcolumn:name="REGISTRY_URL",type=string,JSONPath=`.status.serverURL` +kubebuilder:printcolumn:name="NOTARY_URL",type=string,JSONPath=`.status.notaryURL` +kubebuilder:printcolumn:name="CAPACITY",type=string,priority=1,JSONPath=`.status.capacity` +kubebuilder:printcolumn:name="STATUS",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=`.metadata.creationTimestamp`

func (*Registry) DeepCopy

func (in *Registry) DeepCopy() *Registry

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

func (*Registry) DeepCopyInto

func (in *Registry) DeepCopyInto(out *Registry)

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

func (*Registry) DeepCopyObject

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

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

type RegistryCronJob

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

	Spec   RegistryCronJobSpec   `json:"spec,omitempty"`
	Status RegistryCronJobStatus `json:"status,omitempty"`
}

RegistryCronJob is the Schema for the jobs

func (*RegistryCronJob) DeepCopy

func (in *RegistryCronJob) DeepCopy() *RegistryCronJob

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

func (*RegistryCronJob) DeepCopyInto

func (in *RegistryCronJob) DeepCopyInto(out *RegistryCronJob)

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

func (*RegistryCronJob) DeepCopyObject

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

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

type RegistryCronJobList

type RegistryCronJobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RegistryCronJob `json:"items"`
}

RegistryCronJobList contains a list of RegistryCronJob

func (*RegistryCronJobList) DeepCopy

func (in *RegistryCronJobList) DeepCopy() *RegistryCronJobList

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

func (*RegistryCronJobList) DeepCopyInto

func (in *RegistryCronJobList) DeepCopyInto(out *RegistryCronJobList)

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

func (*RegistryCronJobList) DeepCopyObject

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

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

type RegistryCronJobSpec

type RegistryCronJobSpec struct {
	// Schedule is a cron spec for periodic jobs
	Schedule string `json:"schedule"`

	// JobSpec is a spec for the job
	JobSpec RegistryJobSpec `json:"jobSpec"`
}

RegistryCronJobSpec defines the desired state of RegistryJob

func (*RegistryCronJobSpec) DeepCopy

func (in *RegistryCronJobSpec) DeepCopy() *RegistryCronJobSpec

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

func (*RegistryCronJobSpec) DeepCopyInto

func (in *RegistryCronJobSpec) DeepCopyInto(out *RegistryCronJobSpec)

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

type RegistryCronJobStatus

type RegistryCronJobStatus struct {
	// LastScheduledTime is the latest time when the job is scheduled
	LastScheduledTime *metav1.Time `json:"lastScheduledTime,omitempty"`
}

RegistryCronJobStatus defines the observed state of RegistryJob

func (*RegistryCronJobStatus) DeepCopy

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

func (*RegistryCronJobStatus) DeepCopyInto

func (in *RegistryCronJobStatus) DeepCopyInto(out *RegistryCronJobStatus)

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

type RegistryDeployment

type RegistryDeployment struct {
	// Deployment's label
	Labels map[string]string `json:"labels,omitempty"`
	// Registry pod's node selector
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// Deployment's label selector
	Selector metav1.LabelSelector `json:"selector,omitempty"`
	// Deployment's toleration configuration
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// Deployment's resource requirements (default: Both limits and requests are `cpu:100m` and `memory:512Mi`)
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

RegistryDeployment is deployment settings of registry server

func (*RegistryDeployment) DeepCopy

func (in *RegistryDeployment) DeepCopy() *RegistryDeployment

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

func (*RegistryDeployment) DeepCopyInto

func (in *RegistryDeployment) DeepCopyInto(out *RegistryDeployment)

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

type RegistryDescriptor

type RegistryDescriptor struct {
	MediaType  string `json:"mediaType"`
	Size       int    `json:"size"`
	Digest     string `json:"digest"`
	Length     int    `json:"length"`
	Repository string `json:"repository"`
	Url        string `json:"url"`
	Tag        string `json:"tag"`
}

func (*RegistryDescriptor) DeepCopy

func (in *RegistryDescriptor) DeepCopy() *RegistryDescriptor

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

func (*RegistryDescriptor) DeepCopyInto

func (in *RegistryDescriptor) DeepCopyInto(out *RegistryDescriptor)

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

type RegistryErrors

type RegistryErrors struct {
	// contains filtered or unexported fields
}

RegistryErrors represents error of registry subresource

func (*RegistryErrors) DeepCopy

func (in *RegistryErrors) DeepCopy() *RegistryErrors

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

func (*RegistryErrors) DeepCopyInto

func (in *RegistryErrors) DeepCopyInto(out *RegistryErrors)

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

func (RegistryErrors) Error

func (r RegistryErrors) Error() string

type RegistryEvent

type RegistryEvent struct {
	Id             string             `json:"id"`
	Timestamp      string             `json:"timestamp"`
	Action         string             `json:"action"`
	Target         RegistryDescriptor `json:"target"`
	Length         int                `json:"length"`
	Repository     string             `json:"repository"`
	FromRepository string             `json:"fromRepository"`
	Url            string             `json:"url"`
	Tag            string             `json:"tag"`
	Request        RequestRecord      `json:"request"`
	Actor          ActorRecord        `json:"actor"`
	Source         SourceRecord       `json:"source"`
}

func (*RegistryEvent) DeepCopy

func (in *RegistryEvent) DeepCopy() *RegistryEvent

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

func (*RegistryEvent) DeepCopyInto

func (in *RegistryEvent) DeepCopyInto(out *RegistryEvent)

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

type RegistryEvents

type RegistryEvents struct {
	Events []RegistryEvent `json:"events"`
}

func (*RegistryEvents) DeepCopy

func (in *RegistryEvents) DeepCopy() *RegistryEvents

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

func (*RegistryEvents) DeepCopyInto

func (in *RegistryEvents) DeepCopyInto(out *RegistryEvents)

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

type RegistryJob

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

	Spec   RegistryJobSpec   `json:"spec,omitempty"`
	Status RegistryJobStatus `json:"status,omitempty"`
}

RegistryJob is the Schema for the jobs

func (*RegistryJob) DeepCopy

func (in *RegistryJob) DeepCopy() *RegistryJob

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

func (*RegistryJob) DeepCopyInto

func (in *RegistryJob) DeepCopyInto(out *RegistryJob)

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

func (*RegistryJob) DeepCopyObject

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

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

type RegistryJobClaim

type RegistryJobClaim struct {
	// +kubebuilder:validation:Enum=SynchronizeExtReg;ImageReplicate
	// Type of job to work
	JobType RegistryJobType `json:"jobType"`
	// HandleObject refers to the HandleObject
	HandleObject corev1.LocalObjectReference `json:"handleObject"`
}

RegistryJobClaim is a claim of registry job

func (*RegistryJobClaim) DeepCopy

func (in *RegistryJobClaim) DeepCopy() *RegistryJobClaim

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

func (*RegistryJobClaim) DeepCopyInto

func (in *RegistryJobClaim) DeepCopyInto(out *RegistryJobClaim)

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

type RegistryJobList

type RegistryJobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RegistryJob `json:"items"`
}

RegistryJobList contains a list of RegistryJob

func (*RegistryJobList) DeepCopy

func (in *RegistryJobList) DeepCopy() *RegistryJobList

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

func (*RegistryJobList) DeepCopyInto

func (in *RegistryJobList) DeepCopyInto(out *RegistryJobList)

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

func (*RegistryJobList) DeepCopyObject

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

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

type RegistryJobSpec

type RegistryJobSpec struct {
	// TTL is a time-to-live (in seconds)
	// If 0, it is deleted immediately
	// If -1, it is not deleted
	// If ttl > 0, it is deleted after ttl seconds
	TTL int `json:"ttl"`

	// Priority is an integer value, greater or equal to 0
	Priority int `json:"priority,omitempty"`

	// Claim is a claim that need to be handled
	Claim *RegistryJobClaim `json:"claim,omitempty"`
}

RegistryJobSpec defines the desired state of RegistryJob

func (*RegistryJobSpec) DeepCopy

func (in *RegistryJobSpec) DeepCopy() *RegistryJobSpec

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

func (*RegistryJobSpec) DeepCopyInto

func (in *RegistryJobSpec) DeepCopyInto(out *RegistryJobSpec)

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

type RegistryJobState

type RegistryJobState string

RegistryJobState is a state of the RegistryJob

type RegistryJobStatus

type RegistryJobStatus struct {
	// State is a state of the RegistryJob
	State RegistryJobState `json:"state"`

	// Message is a message for the RegistryJob (normally an error string)
	Message string `json:"message,omitempty"`

	// StartTime is actual time the task started
	StartTime *metav1.Time `json:"startTime,omitempty"`

	// CompletionTime is a time when the job is completed
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`
}

RegistryJobStatus defines the observed state of RegistryJob

func (*RegistryJobStatus) DeepCopy

func (in *RegistryJobStatus) DeepCopy() *RegistryJobStatus

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

func (*RegistryJobStatus) DeepCopyInto

func (in *RegistryJobStatus) DeepCopyInto(out *RegistryJobStatus)

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

type RegistryJobType

type RegistryJobType string

RegistryJobType is a job type name

type RegistryList

type RegistryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Registry `json:"items"`
}

RegistryList contains a list of Registry

func (*RegistryList) DeepCopy

func (in *RegistryList) DeepCopy() *RegistryList

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

func (*RegistryList) DeepCopyInto

func (in *RegistryList) DeepCopyInto(out *RegistryList)

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

func (*RegistryList) DeepCopyObject

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

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

type RegistryNotary

type RegistryNotary struct {
	// Activate notary service to sign images
	Enabled bool `json:"enabled"`
	// Use Ingress or LoadBalancer
	// +kubebuilder:validation:Enum=Ingress;LoadBalancer
	ServiceType NotaryServiceType `json:"serviceType,omitempty"`
	// Settings for notary pvc. Either `Exist` or `Create` must be entered.
	PersistentVolumeClaim NotaryPVC `json:"persistentVolumeClaim,omitempty"`
	// Settings for notary server
	Server NotaryServer `json:"server,omitempty"`
	// Settings for notary signer
	Signer NotarySigner `json:"signer,omitempty"`
	// Settings for notary database
	DB NotaryDB `json:"db,omitempty"`
}

RegistryNotary is notary service configuration

func (*RegistryNotary) DeepCopy

func (in *RegistryNotary) DeepCopy() *RegistryNotary

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

func (*RegistryNotary) DeepCopyInto

func (in *RegistryNotary) DeepCopyInto(out *RegistryNotary)

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

type RegistryPVC

type RegistryPVC struct {
	// Registry's pvc mount path (default: /var/lib/registry)
	MountPath string `json:"mountPath,omitempty"`

	// +kubebuilder:validation:OneOf
	Exist *ExistPvc `json:"exist,omitempty"` // [TODO] One Of

	// +kubebuilder:validation:OneOf
	Create *CreatePvc `json:"create,omitempty"` // [TODO] One Of
}

func (*RegistryPVC) DeepCopy

func (in *RegistryPVC) DeepCopy() *RegistryPVC

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

func (*RegistryPVC) DeepCopyInto

func (in *RegistryPVC) DeepCopyInto(out *RegistryPVC)

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

type RegistrySecret

type RegistrySecret struct {
	// Registry's imagePullSecret for login
	// If you don't have dockerconfigjson type's secret in this namespace,
	// you should refer to https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
	// to make it first.
	DcjSecretName string `json:"dcjSecretName"`
	// If you want to trust registry's certificate, enter certifiacete's secret name
	CertSecretName string `json:"certSecretName,omitempty"`
}

RegistrySecret is a secret for registry

func (*RegistrySecret) DeepCopy

func (in *RegistrySecret) DeepCopy() *RegistrySecret

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

func (*RegistrySecret) DeepCopyInto

func (in *RegistrySecret) DeepCopyInto(out *RegistrySecret)

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

type RegistryService

type RegistryService struct {
	// Use Ingress or LoadBalancer
	// +kubebuilder:validation:Enum=Ingress;LoadBalancer
	ServiceType RegistryServiceType `json:"serviceType"`
}

func (*RegistryService) DeepCopy

func (in *RegistryService) DeepCopy() *RegistryService

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

func (*RegistryService) DeepCopyInto

func (in *RegistryService) DeepCopyInto(out *RegistryService)

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

type RegistryServiceType

type RegistryServiceType string

RegistryServiceType is type of registry service

type RegistrySpec

type RegistrySpec struct {

	// Registry's image name
	Image string `json:"image,omitempty"`
	// Description for registry
	Description string `json:"description,omitempty"`
	// Login ID for registry
	LoginID string `json:"loginId"`
	// Login password for registry
	LoginPassword string `json:"loginPassword"`
	// If ReadOnly is true, clients will not be allowed to write(push) to the registry.
	ReadOnly bool `json:"readOnly,omitempty"`
	// Settings for notary service
	Notary RegistryNotary `json:"notary,omitempty"`
	// The name of the configmap where the registry config.yml content
	CustomConfigYml string `json:"customConfigYml,omitempty"`

	// Settings for registry's deployemnt
	RegistryDeployment RegistryDeployment `json:"registryDeployment,omitempty"`
	// Service type to expose registry
	RegistryService RegistryService `json:"service"`
	// Settings for registry pvc. Either `Exist` or `Create` must be entered.
	PersistentVolumeClaim RegistryPVC `json:"persistentVolumeClaim"`
}

RegistrySpec defines the desired state of Registry

func (*RegistrySpec) DeepCopy

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto

func (in *RegistrySpec) DeepCopyInto(out *RegistrySpec)

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

type RegistryStatus

type RegistryStatus struct {

	// Conditions are status of subresources
	Conditions status.Conditions `json:"conditions,omitempty"`
	// Phase is status of registry
	Phase string `json:"phase,omitempty"`
	// Message is a message of registry status
	Message string `json:"message,omitempty"`
	// Reason is a reason of registry status
	Reason string `json:"reason,omitempty"`
	// PhaseChangedAt is the time when phase was changed
	PhaseChangedAt metav1.Time `json:"phaseChangedAt,omitempty"`
	// Capacity is registry's srotage size
	Capacity string `json:"capacity,omitempty"`
	// ReadOnly is whether the registry is readonly
	ReadOnly bool `json:"readOnly,omitempty"`
	// ClusterIP is cluster ip of service
	ClusterIP string `json:"clusterIP,omitempty"`
	// LoadBalancerIP is external ip of service
	LoadBalancerIP string `json:"loadBalancerIP,omitempty"`
	// PodRecreateRequired is set if the registry pod is required to be recreated
	PodRecreateRequired bool `json:"podRecreateRequired,omitempty"`
	// ServerURL is registry server URL
	ServerURL string `json:"serverURL,omitempty"`
	// NotaryURL is notary server URL
	NotaryURL string `json:"notaryURL,omitempty"`
}

RegistryStatus defines the observed state of Registry

func (*RegistryStatus) DeepCopy

func (in *RegistryStatus) DeepCopy() *RegistryStatus

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

func (*RegistryStatus) DeepCopyInto

func (in *RegistryStatus) DeepCopyInto(out *RegistryStatus)

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

type RegistryType

type RegistryType string

RegistryType is a type of external registry

const (
	// RegistryTypeHarborV2 is harbor v2 registry type
	RegistryTypeHarborV2 RegistryType = "HarborV2"
	// RegistryTypeDockerHub is docker hub registry type
	RegistryTypeDockerHub RegistryType = "DockerHub"
	// RegistryTypeDocker is docker registry type
	RegistryTypeDocker RegistryType = "Docker"
)
const (
	// RegistryTypeHpcdRegistry is internal hypercloud registry type
	RegistryTypeHpcdRegistry RegistryType = "HpcdRegistry"
)

type Repository

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

	Spec RepositorySpec `json:"spec"`
}

Repository is the Schema for the repositories API +kubebuilder:subresource:status +kubebuilder:resource:path=repositories,scope=Namespaced,shortName=repo +kubebuilder:printcolumn:name="REPOSITORY",type=string,JSONPath=`.spec.name` +kubebuilder:printcolumn:name="REGISTRY",type=string,JSONPath=`.spec.registry` +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=`.metadata.creationTimestamp`

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.

func (*Repository) DeepCopyObject

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

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

type RepositoryList

type RepositoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Repository `json:"items"`
}

func (*RepositoryList) DeepCopy

func (in *RepositoryList) DeepCopy() *RepositoryList

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

func (*RepositoryList) DeepCopyInto

func (in *RepositoryList) DeepCopyInto(out *RepositoryList)

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

func (*RepositoryList) DeepCopyObject

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

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

type RepositorySpec

type RepositorySpec struct {
	// Repository name
	Name string `json:"name,omitempty"`
	// Versions(=Tags) of image
	Versions []ImageVersion `json:"versions,omitempty"`
	// Name of Registry which owns repository
	Registry string `json:"registry,omitempty"`
}

func (*RepositorySpec) DeepCopy

func (in *RepositorySpec) DeepCopy() *RepositorySpec

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

func (*RepositorySpec) DeepCopyInto

func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)

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

type RequestRecord

type RequestRecord struct {
	Id        string `json:"id"`
	Addr      string `json:"addr"`
	Host      string `json:"host"`
	Method    string `json:"method"`
	Useragent string `json:"useragent"`
}

func (*RequestRecord) DeepCopy

func (in *RequestRecord) DeepCopy() *RequestRecord

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

func (*RequestRecord) DeepCopyInto

func (in *RequestRecord) DeepCopyInto(out *RequestRecord)

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

type ResponseResult

type ResponseResult string

ResponseResult is ResponseResult type

type ScanRequestStatusType

type ScanRequestStatusType string

ScanRequestStatusType is status type of scan request

const (
	ScanRequestSuccess    ScanRequestStatusType = "Success"
	ScanRequestFail       ScanRequestStatusType = "Fail"
	ScanRequestPending    ScanRequestStatusType = "Pending"
	ScanRequestProcessing ScanRequestStatusType = "Processing"
	// ScanRequestError is scan request is failed
	ScanRequestError ScanRequestStatusType = "Error"
)

type ScanResult

type ScanResult struct {
	//Scan summary
	Summary map[string]int `json:"summary,omitempty"`
	//Scan fatal message
	Fatal []string `json:"fatal,omitempty"`
	//Scan vulnerabilities
	Vulnerabilities map[string]Vulnerabilities `json:"vulnerabilities,omitempty"`
}

ScanResult is result of scanning an image

func (*ScanResult) DeepCopy

func (in *ScanResult) DeepCopy() *ScanResult

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

func (*ScanResult) DeepCopyInto

func (in *ScanResult) DeepCopyInto(out *ScanResult)

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

type ScanTarget

type ScanTarget struct {
	// Registry URL (example: docker.io)
	RegistryURL string `json:"registryUrl"`
	// Image path (example: library/alpine:3)
	Images []string `json:"images"`
	// The name of certificate secret for private registry.
	CertificateSecret string `json:"certificateSecret,omitempty"`
	// The name of secret containing login credential of registry
	ImagePullSecret string `json:"imagePullSecret,omitempty"`
}

ScanTarget is a target setting to scan images

func (*ScanTarget) DeepCopy

func (in *ScanTarget) DeepCopy() *ScanTarget

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

func (*ScanTarget) DeepCopyInto

func (in *ScanTarget) DeepCopyInto(out *ScanTarget)

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

type SignerKey

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

	Spec   SignerKeySpec   `json:"spec,omitempty"`
	Status SignerKeyStatus `json:"status,omitempty"`
}

SignerKey is the Schema for the signerkeys API

func (*SignerKey) DeepCopy

func (in *SignerKey) DeepCopy() *SignerKey

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

func (*SignerKey) DeepCopyInto

func (in *SignerKey) DeepCopyInto(out *SignerKey)

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

func (*SignerKey) DeepCopyObject

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

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

func (SignerKey) GetPassPhrase

func (s SignerKey) GetPassPhrase() TrustPass

func (SignerKey) GetTargetKey

func (s SignerKey) GetTargetKey(target string) (*TrustKey, error)

type SignerKeyList

type SignerKeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SignerKey `json:"items"`
}

SignerKeyList contains a list of SignerKey

func (*SignerKeyList) DeepCopy

func (in *SignerKeyList) DeepCopy() *SignerKeyList

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

func (*SignerKeyList) DeepCopyInto

func (in *SignerKeyList) DeepCopyInto(out *SignerKeyList)

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

func (*SignerKeyList) DeepCopyObject

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

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

type SignerKeySpec

type SignerKeySpec struct {

	// Foo is an example field of SignerKey. Edit SignerKey_types.go to remove/update
	Root TrustKey `json:"root,omitempty"`
	// Targets is {namespace/registryName/imageName: TrustKey{}, ...}
	Targets map[string]TrustKey `json:"targets,omitempty"`
}

SignerKeySpec defines the desired state of SignerKey

func (*SignerKeySpec) DeepCopy

func (in *SignerKeySpec) DeepCopy() *SignerKeySpec

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

func (*SignerKeySpec) DeepCopyInto

func (in *SignerKeySpec) DeepCopyInto(out *SignerKeySpec)

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

type SignerKeyState

type SignerKeyState struct {
	// Whether SignerKey is created
	Created bool `json:"created,omitempty"`
	// Reason failed to create SignerKey
	Reason string `json:"reason,omitempty"`
	// Message failed to create SignerKey
	Message string `json:"message,omitempty"`
	// SignerKey's root key ID
	RootKeyID string `json:"rootKeyId,omitempty"`
	// Created time
	CreatedAt *metav1.Time `json:"createdAt,omitempty"`
}

SignerKeyState is ehe status information about whether signer key is created

func (*SignerKeyState) DeepCopy

func (in *SignerKeyState) DeepCopy() *SignerKeyState

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

func (*SignerKeyState) DeepCopyInto

func (in *SignerKeyState) DeepCopyInto(out *SignerKeyState)

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

type SignerKeyStatus

type SignerKeyStatus struct {
}

SignerKeyStatus defines the observed state of SignerKey

func (*SignerKeyStatus) DeepCopy

func (in *SignerKeyStatus) DeepCopy() *SignerKeyStatus

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

func (*SignerKeyStatus) DeepCopyInto

func (in *SignerKeyStatus) DeepCopyInto(out *SignerKeyStatus)

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

type SourceRecord

type SourceRecord struct {
	Addr       string `json:"addr"`
	InstanceID string `json:"instanceID"`
}

func (*SourceRecord) DeepCopy

func (in *SourceRecord) DeepCopy() *SourceRecord

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

func (*SourceRecord) DeepCopyInto

func (in *SourceRecord) DeepCopyInto(out *SourceRecord)

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

type TrustKey

type TrustKey struct {
	ID         string `json:"id"`
	Key        string `json:"key"`
	PassPhrase string `json:"passPhrase"`
}

TrustKey defines key and value set

func (*TrustKey) DeepCopy

func (in *TrustKey) DeepCopy() *TrustKey

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

func (*TrustKey) DeepCopyInto

func (in *TrustKey) DeepCopyInto(out *TrustKey)

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

type TrustPass

type TrustPass map[string]string

TrustPass is in form of KeyID=PassPhrase

func (TrustPass) AddKeyPass

func (p TrustPass) AddKeyPass(key, val string)

func (TrustPass) DeepCopy

func (in TrustPass) DeepCopy() TrustPass

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

func (TrustPass) DeepCopyInto

func (in TrustPass) DeepCopyInto(out *TrustPass)

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

func (TrustPass) GetKeyPass

func (p TrustPass) GetKeyPass(key string) (string, error)

type Vulnerabilities

type Vulnerabilities []Vulnerability

Vulnerabilities is a set of Vulnerability instances

func (Vulnerabilities) DeepCopy

func (in Vulnerabilities) DeepCopy() Vulnerabilities

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

func (Vulnerabilities) DeepCopyInto

func (in Vulnerabilities) DeepCopyInto(out *Vulnerabilities)

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

type Vulnerability

type Vulnerability struct {
	// Severity name
	Name string `json:"Name,omitempty"`
	// Severity namespace
	NamespaceName string `json:"NamespaceName,omitempty"`
	// Description for severity
	Description string `json:"Description,omitempty"`
	// Description link
	Link string `json:"Link,omitempty"`
	// Severity degree
	Severity string `json:"Severity,omitempty"`
	// Metadata
	//Metadata runtime.RawExtension `json:"Metadata,omitempty"`
	// Fixed version
	FixedBy string `json:"FixedBy,omitempty"`
}

Vulnerability is the information of the vulnerability found.

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