Documentation ¶
Index ¶
- func CreateSelfSignedCert() (string, string, error)
- func InitDatabase(name string, createHub *blackduckapi.BlackduckSpec, isClusterScope bool, ...) error
- type Creater
- func (hc *Creater) Ensure(blackduck *blackduckapi.Blackduck) error
- func (hc *Creater) GetComponents(blackduck *blackduckapi.Blackduck) (*api.ComponentList, error)
- func (hc *Creater) GetPVC(blackduck *blackduckapi.Blackduck) ([]*components.PersistentVolumeClaim, error)
- func (hc *Creater) GetPostgresComponents(blackduck *blackduckapi.Blackduck) (*api.ComponentList, error)
- func (hc *Creater) Versions() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSelfSignedCert ¶
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
Click to show internal directories.
Click to hide internal directories.