Documentation ¶
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Blackduck
- type Host
- type ImageFacade
- type OpsSight
- type OpsSightList
- type OpsSightSpec
- type OpsSightStatus
- type Perceiver
- type Perceptor
- type PodPerceiver
- type Prometheus
- type RegistryAuth
- type Scanner
- type ScannerPod
- type Skyfire
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder will initiantiate the scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme will add the scheme to the scheme builder AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: opssight.GroupName, Version: "v1", }
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Blackduck ¶
type Blackduck struct { ExternalHosts []*Host `json:"externalHosts"` ConnectionsEnvironmentVariableName string `json:"connectionsEnvironmentVariableName"` BlackduckPassword string `json:"blackduckPassword"` TLSVerification bool `json:"tlsVerification"` // Auto scaling parameters InitialCount int `json:"initialCount"` MaxCount int `json:"maxCount"` DeleteBlackduckThresholdPercentage int `json:"deleteBlackduckThresholdPercentage"` BlackduckSpec *blackduckapi.BlackduckSpec `json:"blackduckSpec"` }
Blackduck stores the Black Duck instance
func (*Blackduck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Blackduck.
func (*Blackduck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Host ¶
type Host struct { Scheme string `json:"scheme"` Domain string `json:"domain"` // it can be domain name or ip address Port int `json:"port"` User string `json:"user"` Password string `json:"password"` ConcurrentScanLimit int `json:"concurrentScanLimit"` }
Host configures the Black Duck hosts
func (*Host) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Host.
func (*Host) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageFacade ¶
type ImageFacade struct { InternalRegistries []*RegistryAuth `json:"internalRegistries"` ImagePullerType string `json:"imagePullerType"` }
ImageFacade stores the Image Facade configuration
func (*ImageFacade) DeepCopy ¶
func (in *ImageFacade) DeepCopy() *ImageFacade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageFacade.
func (*ImageFacade) DeepCopyInto ¶
func (in *ImageFacade) DeepCopyInto(out *ImageFacade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpsSight ¶
type OpsSight struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata,omitempty"` Spec OpsSightSpec `json:"spec"` Status OpsSightStatus `json:"status,omitempty"` }
OpsSight is a specification for a OpsSight resource
func (*OpsSight) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsSight.
func (*OpsSight) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpsSight) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OpsSightList ¶
type OpsSightList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []OpsSight `json:"items"` }
OpsSightList is a list of OpsSight resources
func (*OpsSightList) DeepCopy ¶
func (in *OpsSightList) DeepCopy() *OpsSightList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsSightList.
func (*OpsSightList) DeepCopyInto ¶
func (in *OpsSightList) DeepCopyInto(out *OpsSightList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpsSightList) DeepCopyObject ¶
func (in *OpsSightList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OpsSightSpec ¶
type OpsSightSpec struct { // OpsSight Namespace string `json:"namespace"` IsUpstream bool `json:"isUpstream"` Perceptor *Perceptor `json:"perceptor"` ScannerPod *ScannerPod `json:"scannerPod"` Perceiver *Perceiver `json:"perceiver"` // CPU and memory configurations DefaultCPU string `json:"defaultCpu,omitempty"` // Example: "300m" DefaultMem string `json:"defaultMem,omitempty"` // Example: "1300Mi" ScannerCPU string `json:"scannerCpu,omitempty"` // Example: "300m" ScannerMem string `json:"scannerMem,omitempty"` // Example: "1300Mi" // Log level LogLevel string `json:"logLevel,omitempty"` // Metrics EnableMetrics bool `json:"enableMetrics"` Prometheus *Prometheus `json:"prometheus"` // Skyfire EnableSkyfire bool `json:"enableSkyfire"` Skyfire *Skyfire `json:"skyfire"` // Black Duck Blackduck *Blackduck `json:"blackduck"` DesiredState string `json:"desiredState"` // Image handler ImageRegistries []string `json:"imageRegistries,omitempty"` RegistryConfiguration *api.RegistryConfiguration `json:"registryConfiguration,omitempty"` }
OpsSightSpec is the spec for a OpsSight resource
func (*OpsSightSpec) DeepCopy ¶
func (in *OpsSightSpec) DeepCopy() *OpsSightSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsSightSpec.
func (*OpsSightSpec) DeepCopyInto ¶
func (in *OpsSightSpec) DeepCopyInto(out *OpsSightSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpsSightStatus ¶
type OpsSightStatus struct { State string `json:"state"` ErrorMessage string `json:"errorMessage"` InternalHosts []*Host `json:"internalHosts"` }
OpsSightStatus is the status for a OpsSight resource
func (*OpsSightStatus) DeepCopy ¶
func (in *OpsSightStatus) DeepCopy() *OpsSightStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsSightStatus.
func (*OpsSightStatus) DeepCopyInto ¶
func (in *OpsSightStatus) DeepCopyInto(out *OpsSightStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Perceiver ¶
type Perceiver struct { Certificate string `json:"certificate,omitempty"` CertificateKey string `json:"certificateKey,omitempty"` EnableImagePerceiver bool `json:"enableImagePerceiver"` EnableArtifactoryPerceiver bool `json:"enableArtifactoryPerceiver"` EnableArtifactoryPerceiverDumper bool `json:"enableArtifactoryPerceiverDumper"` EnableQuayPerceiver bool `json:"enableQuayPerceiver"` EnablePodPerceiver bool `json:"enablePodPerceiver"` PodPerceiver *PodPerceiver `json:"podPerceiver,omitempty"` AnnotationIntervalSeconds int `json:"annotationIntervalSeconds"` DumpIntervalMinutes int `json:"dumpIntervalMinutes"` Expose string `json:"expose"` }
Perceiver stores the Perceiver configuration
func (*Perceiver) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Perceiver.
func (*Perceiver) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Perceptor ¶
type Perceptor struct { CheckForStalledScansPauseHours int `json:"checkForStalledScansPauseHours"` StalledScanClientTimeoutHours int `json:"stalledScanClientTimeoutHours"` ModelMetricsPauseSeconds int `json:"modelMetricsPauseSeconds"` UnknownImagePauseMilliseconds int `json:"unknownImagePauseMilliseconds"` ClientTimeoutMilliseconds int `json:"clientTimeoutMilliseconds"` Expose string `json:"expose"` }
Perceptor stores the Perceptor configuration
func (*Perceptor) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Perceptor.
func (*Perceptor) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodPerceiver ¶
type PodPerceiver struct {
NamespaceFilter string `json:"namespaceFilter,omitempty"`
}
PodPerceiver stores the Pod Perceiver configuration
func (*PodPerceiver) DeepCopy ¶
func (in *PodPerceiver) DeepCopy() *PodPerceiver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPerceiver.
func (*PodPerceiver) DeepCopyInto ¶
func (in *PodPerceiver) DeepCopyInto(out *PodPerceiver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Prometheus ¶
type Prometheus struct {
Expose string `json:"expose"`
}
Prometheus container definition
func (*Prometheus) DeepCopy ¶
func (in *Prometheus) DeepCopy() *Prometheus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prometheus.
func (*Prometheus) DeepCopyInto ¶
func (in *Prometheus) DeepCopyInto(out *Prometheus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegistryAuth ¶
type RegistryAuth struct { URL string `json:"url"` User string `json:"user"` Password string `json:"password"` Token string `json:"token"` }
RegistryAuth will store the Secured Registries
func (*RegistryAuth) DeepCopy ¶
func (in *RegistryAuth) DeepCopy() *RegistryAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryAuth.
func (*RegistryAuth) DeepCopyInto ¶
func (in *RegistryAuth) DeepCopyInto(out *RegistryAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Scanner ¶
type Scanner struct {
ClientTimeoutSeconds int `json:"clientTimeoutSeconds"`
}
Scanner stores the Perceptor scanner configuration
func (*Scanner) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scanner.
func (*Scanner) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScannerPod ¶
type ScannerPod struct { Scanner *Scanner `json:"scanner"` ImageFacade *ImageFacade `json:"imageFacade"` ReplicaCount int `json:"scannerReplicaCount"` ImageDirectory string `json:"imageDirectory"` }
ScannerPod stores the Perceptor scanner and Image Facade configuration
func (*ScannerPod) DeepCopy ¶
func (in *ScannerPod) DeepCopy() *ScannerPod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScannerPod.
func (*ScannerPod) DeepCopyInto ¶
func (in *ScannerPod) DeepCopyInto(out *ScannerPod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Skyfire ¶
type Skyfire struct { HubClientTimeoutSeconds int `json:"hubClientTimeoutSeconds"` HubDumpPauseSeconds int `json:"hubDumpPauseSeconds"` KubeDumpIntervalSeconds int `json:"kubeDumpIntervalSeconds"` PerceptorDumpIntervalSeconds int `json:"perceptorDumpIntervalSeconds"` }
Skyfire stores the Skyfire configuration
func (*Skyfire) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Skyfire.
func (*Skyfire) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.