Documentation ¶
Index ¶
- Constants
- func GetHubKnobs() map[string]string
- func GetVersions() []string
- type ContainerFlavor
- type Creater
- func (c *Creater) GetAuthenticationDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetAuthenticationService() *components.Service
- func (c *Creater) GetBinaryScannerDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetCfsslDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetCfsslService() *components.Service
- func (c *Creater) GetConfigmaps() []*components.ConfigMap
- func (c *Creater) GetDocumentationDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetDocumentationService() *components.Service
- func (c *Creater) GetFullContainerNameFromImageRegistryConf(baseContainer string) string
- func (c *Creater) GetImageTag(inputs ...string) string
- func (c *Creater) GetJobRunnerDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetLabel(name string) map[string]string
- func (c *Creater) GetLogStashService() *components.Service
- func (c *Creater) GetNodeAffinityConfigs(podName string) map[horizonapi.AffinityType][]*horizonapi.NodeAffinityConfig
- func (c *Creater) GetOpenShiftRoute() *api.Route
- func (c *Creater) GetPVCs() ([]*components.PersistentVolumeClaim, error)
- func (c *Creater) GetPostgres() *postgres.Postgres
- func (c *Creater) GetPostgresConfigmap() *components.ConfigMap
- func (c *Creater) GetPostgresSecret(adminPassword string, userPassword string, postgresPassword string) *components.Secret
- func (c *Creater) GetRabbitmqDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetRabbitmqService() *components.Service
- func (c *Creater) GetRegistrationDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetRegistrationService() *components.Service
- func (c *Creater) GetScanDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetScanService() *components.Service
- func (c *Creater) GetSecrets(cert string, key string, sealKey []byte) []*components.Secret
- func (c *Creater) GetSolrDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetSolrService() *components.Service
- func (c *Creater) GetUploadCacheDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetUploadCacheService() *components.Service
- func (c *Creater) GetVersionLabel(name string) map[string]string
- func (c *Creater) GetWebAppService() *components.Service
- func (c *Creater) GetWebServerLoadBalancerService() *components.Service
- func (c *Creater) GetWebServerNodePortService() *components.Service
- func (c *Creater) GetWebServerService() *components.Service
- func (c *Creater) GetWebappLogstashDeployment(webAppImageName string, logstashImageName string) (*components.Deployment, error)
- func (c *Creater) GetWebserverDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetZookeeperDeployment(imageName string) (*components.Deployment, error)
- func (c *Creater) GetZookeeperService() *components.Service
- type Flavor
Constants ¶
const ( // PostgresPort will hold the port number of Postgres PostgresPort = int32(5432) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerFlavor ¶
type ContainerFlavor struct { WebserverMemoryLimit string SolrMemoryLimit string WebappCPULimit string WebappMemoryLimit string WebappHubMaxMemory string ScanReplicas *int32 ScanMemoryLimit string ScanHubMaxMemory string JobRunnerReplicas *int32 JobRunnerMemoryLimit string JobRunnerHubMaxMemory string CfsslMemoryLimit string LogstashMemoryLimit string RegistrationMemoryLimit string ZookeeperMemoryLimit string AuthenticationMemoryLimit string AuthenticationHubMaxMemory string DocumentationMemoryLimit string PostgresMemoryLimit string PostgresCPULimit string BinaryScannerMemoryLimit string RabbitmqMemoryLimit string UploadCacheMemoryLimit string }
ContainerFlavor configuration will have the settings for flavored Black Duck Blackduck
func GetContainersFlavor ¶
func GetContainersFlavor(flavor string) *ContainerFlavor
GetContainersFlavor will return the default settings for the flavored Black Duck Blackduck TODO Make this typesafe, make flavor const into an enum.
type Creater ¶
type Creater struct {
// contains filtered or unexported fields
}
Creater will store the configuration to create the hub containers
func NewCreater ¶
func NewCreater(config *protoform.Config, kubeConfig *rest.Config, kubeClient *kubernetes.Clientset, blackDuck *blackduckapi.Blackduck, hubContainerFlavor *ContainerFlavor, isBinaryAnalysisEnabled bool) *Creater
NewCreater will return a creater
func (*Creater) GetAuthenticationDeployment ¶
func (c *Creater) GetAuthenticationDeployment(imageName string) (*components.Deployment, error)
GetAuthenticationDeployment will return the authentication deployment
func (*Creater) GetAuthenticationService ¶
func (c *Creater) GetAuthenticationService() *components.Service
GetAuthenticationService will return the authentication service
func (*Creater) GetBinaryScannerDeployment ¶
func (c *Creater) GetBinaryScannerDeployment(imageName string) (*components.Deployment, error)
GetBinaryScannerDeployment will return the binary scanner deployment
func (*Creater) GetCfsslDeployment ¶
func (c *Creater) GetCfsslDeployment(imageName string) (*components.Deployment, error)
GetCfsslDeployment will return the cfssl deployment
func (*Creater) GetCfsslService ¶
func (c *Creater) GetCfsslService() *components.Service
GetCfsslService will return the cfssl service
func (*Creater) GetConfigmaps ¶
func (c *Creater) GetConfigmaps() []*components.ConfigMap
GetConfigmaps will return the configMaps
func (*Creater) GetDocumentationDeployment ¶
func (c *Creater) GetDocumentationDeployment(imageName string) (*components.Deployment, error)
GetDocumentationDeployment will return the documentation deployment
func (*Creater) GetDocumentationService ¶
func (c *Creater) GetDocumentationService() *components.Service
GetDocumentationService will return the cfssl service
func (*Creater) GetFullContainerNameFromImageRegistryConf ¶
GetFullContainerNameFromImageRegistryConf returns the tag that is specified for a container by trying to look in the custom tags provided, if those arent filled, it uses the "HubVersion" as a default, which works for blackduck < 5.1.0.
func (*Creater) GetImageTag ¶
GetImageTag returns the image tag of the given container
func (*Creater) GetJobRunnerDeployment ¶
func (c *Creater) GetJobRunnerDeployment(imageName string) (*components.Deployment, error)
GetJobRunnerDeployment will return the job runner deployment
func (*Creater) GetLogStashService ¶
func (c *Creater) GetLogStashService() *components.Service
GetLogStashService will return the logstash service
func (*Creater) GetNodeAffinityConfigs ¶
func (c *Creater) GetNodeAffinityConfigs(podName string) map[horizonapi.AffinityType][]*horizonapi.NodeAffinityConfig
GetNodeAffinityConfigs takes in a podName, and returns all associated []*horizonapi.NodeAffinityConfig based on what the user provided
func (*Creater) GetOpenShiftRoute ¶
GetOpenShiftRoute creates the OpenShift route component for the webserver
func (*Creater) GetPVCs ¶
func (c *Creater) GetPVCs() ([]*components.PersistentVolumeClaim, error)
GetPVCs will return the PVCs
func (*Creater) GetPostgres ¶
GetPostgres will return the postgres object
func (*Creater) GetPostgresConfigmap ¶
func (c *Creater) GetPostgresConfigmap() *components.ConfigMap
GetPostgresConfigmap will return the postgres configMaps
func (*Creater) GetPostgresSecret ¶
func (c *Creater) GetPostgresSecret(adminPassword string, userPassword string, postgresPassword string) *components.Secret
GetPostgresSecret will return the postgres secret
func (*Creater) GetRabbitmqDeployment ¶
func (c *Creater) GetRabbitmqDeployment(imageName string) (*components.Deployment, error)
GetRabbitmqDeployment will return the rabbitmq deployment
func (*Creater) GetRabbitmqService ¶
func (c *Creater) GetRabbitmqService() *components.Service
GetRabbitmqService will return the rabbitmq service
func (*Creater) GetRegistrationDeployment ¶
func (c *Creater) GetRegistrationDeployment(imageName string) (*components.Deployment, error)
GetRegistrationDeployment will return the registration deployment
func (*Creater) GetRegistrationService ¶
func (c *Creater) GetRegistrationService() *components.Service
GetRegistrationService will return the registration service
func (*Creater) GetScanDeployment ¶
func (c *Creater) GetScanDeployment(imageName string) (*components.Deployment, error)
GetScanDeployment will return the scan deployment
func (*Creater) GetScanService ¶
func (c *Creater) GetScanService() *components.Service
GetScanService will return the scan service
func (*Creater) GetSecrets ¶
GetSecrets will return the secrets
func (*Creater) GetSolrDeployment ¶
func (c *Creater) GetSolrDeployment(imageName string) (*components.Deployment, error)
GetSolrDeployment will return the solr deployment
func (*Creater) GetSolrService ¶
func (c *Creater) GetSolrService() *components.Service
GetSolrService will return the solr service
func (*Creater) GetUploadCacheDeployment ¶
func (c *Creater) GetUploadCacheDeployment(imageName string) (*components.Deployment, error)
GetUploadCacheDeployment will return the uploadCache deployment
func (*Creater) GetUploadCacheService ¶
func (c *Creater) GetUploadCacheService() *components.Service
GetUploadCacheService will return the uploadCache service
func (*Creater) GetVersionLabel ¶
GetVersionLabel will return the label including the version
func (*Creater) GetWebAppService ¶
func (c *Creater) GetWebAppService() *components.Service
GetWebAppService will return the webapp service
func (*Creater) GetWebServerLoadBalancerService ¶
func (c *Creater) GetWebServerLoadBalancerService() *components.Service
GetWebServerLoadBalancerService will return the webserver loadbalancer service
func (*Creater) GetWebServerNodePortService ¶
func (c *Creater) GetWebServerNodePortService() *components.Service
GetWebServerNodePortService will return the webserver nodeport service
func (*Creater) GetWebServerService ¶
func (c *Creater) GetWebServerService() *components.Service
GetWebServerService will return the webserver service
func (*Creater) GetWebappLogstashDeployment ¶
func (c *Creater) GetWebappLogstashDeployment(webAppImageName string, logstashImageName string) (*components.Deployment, error)
GetWebappLogstashDeployment will return the webapp and logstash deployment
func (*Creater) GetWebserverDeployment ¶
func (c *Creater) GetWebserverDeployment(imageName string) (*components.Deployment, error)
GetWebserverDeployment will return the webserver deployment
func (*Creater) GetZookeeperDeployment ¶
func (c *Creater) GetZookeeperDeployment(imageName string) (*components.Deployment, error)
GetZookeeperDeployment will return the zookeeper deployment
func (*Creater) GetZookeeperService ¶
func (c *Creater) GetZookeeperService() *components.Service
GetZookeeperService will return the zookeeper service
Source Files ¶
- authentication.go
- binaryscanner.go
- cfssl.go
- configmap.go
- constants.go
- containerflavor.go
- creater.go
- documentation.go
- envConfig.go
- environs.go
- helper.go
- imageTags.go
- jobrunner.go
- label.go
- nodeAffinity.go
- postgres.go
- pvc.go
- rabbitmq.go
- registration.go
- route.go
- scan.go
- secrets.go
- solr.go
- uploadcache.go
- volumes.go
- webapplogstash.go
- webserver.go
- zookeeper.go