blackduck

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: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSelfSignedCert

func CreateSelfSignedCert() (string, string, error)

CreateSelfSignedCert will create a random self signed certificate

func InitDatabase

func InitDatabase(name string, createHub *blackduckapi.BlackduckSpec, isClusterScope bool, adminPassword string, userPassword string, postgresPassword string) error

InitDatabase will init the database

Types

type Creater

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

Creater will store the configuration to create the Blackduck

func NewCreater

func NewCreater(config *protoform.Config, kubeConfig *rest.Config, kubeClient *kubernetes.Clientset, hubClient *blackduckclientset.Clientset,
	routeClient *routeclient.RouteV1Client) *Creater

NewCreater will instantiate the Creater

func (*Creater) Ensure

func (hc *Creater) Ensure(blackduck *blackduckapi.Blackduck) error

Ensure will ensure the instance is correctly deployed

func (*Creater) GetComponents

func (hc *Creater) GetComponents(blackduck *blackduckapi.Blackduck) (*api.ComponentList, error)

GetComponents returns the components

func (*Creater) GetPVC

func (hc *Creater) GetPVC(blackduck *blackduckapi.Blackduck) ([]*components.PersistentVolumeClaim, error)

GetPVC returns the PVC

func (*Creater) GetPostgresComponents

func (hc *Creater) GetPostgresComponents(blackduck *blackduckapi.Blackduck) (*api.ComponentList, error)

GetPostgresComponents returns the blackduck postgres component list

func (*Creater) Versions

func (hc *Creater) Versions() []string

Versions returns the supported version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL