v1

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder will initiantiate the scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme will add the scheme to the scheme builder
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   blackduck.GroupName,
	Version: "v1",
}

SchemeGroupVersion will store CRD Api version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource will create the resource

Types

type Blackduck

type Blackduck struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata,omitempty"`
	View               BlackduckView   `json:"view"`
	Spec               BlackduckSpec   `json:"spec"`
	Status             BlackduckStatus `json:"status,omitempty"`
}

Blackduck will be CRD blackduck definition +genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*Blackduck) DeepCopy

func (in *Blackduck) DeepCopy() *Blackduck

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

func (*Blackduck) DeepCopyInto

func (in *Blackduck) DeepCopyInto(out *Blackduck)

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

func (*Blackduck) DeepCopyObject

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

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

type BlackduckList

type BlackduckList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

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

BlackduckList will store the list of Blackducks +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*BlackduckList) DeepCopy

func (in *BlackduckList) DeepCopy() *BlackduckList

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

func (*BlackduckList) DeepCopyInto

func (in *BlackduckList) DeepCopyInto(out *BlackduckList)

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

func (*BlackduckList) DeepCopyObject

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

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

type BlackduckSpec

type BlackduckSpec struct {
	Namespace             string                         `json:"namespace"`
	Size                  string                         `json:"size"`
	Version               string                         `json:"version"`
	ExposeService         string                         `json:"exposeService"`
	DbPrototype           string                         `json:"dbPrototype,omitempty"`
	ExternalPostgres      *PostgresExternalDBConfig      `json:"externalPostgres,omitempty"`
	PVCStorageClass       string                         `json:"pvcStorageClass,omitempty"`
	LivenessProbes        bool                           `json:"livenessProbes"`
	ScanType              string                         `json:"scanType,omitempty"`
	PersistentStorage     bool                           `json:"persistentStorage"`
	PVC                   []PVC                          `json:"pvc,omitempty"`
	NodeAffinities        map[string][]NodeAffinity      `json:"nodeAffinities,omitempty"`
	SecurityContexts      map[string]api.SecurityContext `json:"securityContexts,omitempty"`
	CertificateName       string                         `json:"certificateName"`
	Certificate           string                         `json:"certificate,omitempty"`
	CertificateKey        string                         `json:"certificateKey,omitempty"`
	ProxyCertificate      string                         `json:"proxyCertificate,omitempty"`
	AuthCustomCA          string                         `json:"authCustomCa"`
	Type                  string                         `json:"type,omitempty"`
	DesiredState          string                         `json:"desiredState"`
	Environs              []string                       `json:"environs,omitempty"`
	ImageRegistries       []string                       `json:"imageRegistries,omitempty"`
	LicenseKey            string                         `json:"licenseKey,omitempty"`
	RegistryConfiguration *api.RegistryConfiguration     `json:"registryConfiguration,omitempty"`
	AdminPassword         string                         `json:"adminPassword"`
	UserPassword          string                         `json:"userPassword"`
	PostgresPassword      string                         `json:"postgresPassword"`
	SealKey               string                         `json:"sealKey"`
}

BlackduckSpec will be CRD Blackduck definition's Spec

func (*BlackduckSpec) DeepCopy

func (in *BlackduckSpec) DeepCopy() *BlackduckSpec

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

func (*BlackduckSpec) DeepCopyInto

func (in *BlackduckSpec) DeepCopyInto(out *BlackduckSpec)

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

type BlackduckStatus

type BlackduckStatus struct {
	State         string            `json:"state"`
	IP            string            `json:"ip"`
	PVCVolumeName map[string]string `json:"pvcVolumeName,omitempty"`
	Fqdn          string            `json:"fqdn,omitempty"`
	ErrorMessage  string            `json:"errorMessage,omitempty"`
}

BlackduckStatus will be CRD Blackduck definition's Status

func (*BlackduckStatus) DeepCopy

func (in *BlackduckStatus) DeepCopy() *BlackduckStatus

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

func (*BlackduckStatus) DeepCopyInto

func (in *BlackduckStatus) DeepCopyInto(out *BlackduckStatus)

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

type BlackduckView

type BlackduckView struct {
	Clones            map[string]string `json:"clones"`
	StorageClasses    map[string]string `json:"storageClasses"`
	CertificateNames  []string          `json:"certificateNames"`
	Environs          []string          `json:"environs"`
	ContainerTags     []string          `json:"containerTags"`
	Version           string            `json:"version"`
	SupportedVersions []string          `json:"supportedVersions"`
	NodeAffinities    string            `json:"nodeAffinities"`
}

BlackduckView will be used to populate information for the Blackduck UI.

func (*BlackduckView) DeepCopy

func (in *BlackduckView) DeepCopy() *BlackduckView

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

func (*BlackduckView) DeepCopyInto

func (in *BlackduckView) DeepCopyInto(out *BlackduckView)

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

type Environs

type Environs struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Environs will hold the list of Environment variables

func (*Environs) DeepCopy

func (in *Environs) DeepCopy() *Environs

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

func (*Environs) DeepCopyInto

func (in *Environs) DeepCopyInto(out *Environs)

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

type NodeAffinity

type NodeAffinity struct {
	AffinityType string   `json:"affinityType"`
	Key          string   `json:"key"`
	Op           string   `json:"op"`
	Values       []string `json:"values"`
}

NodeAffinity will contain the specifications of a node affinity TODO: currently, keeping it simple, but can be modified in the future to take in complex scenarios

func (*NodeAffinity) DeepCopy

func (in *NodeAffinity) DeepCopy() *NodeAffinity

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

func (*NodeAffinity) DeepCopyInto

func (in *NodeAffinity) DeepCopyInto(out *NodeAffinity)

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

type PVC

type PVC struct {
	Name         string `json:"name"`
	Size         string `json:"size,omitempty"`
	StorageClass string `json:"storageClass,omitempty"`
	VolumeName   string `json:"volumeName,omitempty"`
}

PVC will contain the specifications of the different PVC. This will overwrite the default claim configuration

func (*PVC) DeepCopy

func (in *PVC) DeepCopy() *PVC

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

func (*PVC) DeepCopyInto

func (in *PVC) DeepCopyInto(out *PVC)

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

type PostgresExternalDBConfig

type PostgresExternalDBConfig struct {
	PostgresHost          string `json:"postgresHost"`
	PostgresPort          int    `json:"postgresPort"`
	PostgresAdmin         string `json:"postgresAdmin"`
	PostgresUser          string `json:"postgresUser"`
	PostgresSsl           bool   `json:"postgresSsl"`
	PostgresAdminPassword string `json:"postgresAdminPassword"`
	PostgresUserPassword  string `json:"postgresUserPassword"`
}

PostgresExternalDBConfig contain the external database configuration

func (*PostgresExternalDBConfig) DeepCopy

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

func (*PostgresExternalDBConfig) DeepCopyInto

func (in *PostgresExternalDBConfig) DeepCopyInto(out *PostgresExternalDBConfig)

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