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

Documentation

Index

Constants

View Source
const (
	CRDResources      = "BLACKDUCK"
	DatabaseResources = "DATABASE"
	PVCResources      = "PVC"
)

Constants for each unit of a deployment of Black Duck

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackduck

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

Blackduck is used for the Blackduck deployment

func NewBlackduck

func NewBlackduck(config *protoform.Config, kubeConfig *rest.Config) *Blackduck

NewBlackduck will return a Blackduck

func (*Blackduck) Delete

func (b *Blackduck) Delete(name string) error

Delete will be used to delete a blackduck instance

func (*Blackduck) Ensure

func (b *Blackduck) Ensure(bd *blackduckapi.Blackduck) error

Ensure will make sure the instance is correctly deployed or deploy it if needed

func (Blackduck) GetComponents

func (b Blackduck) GetComponents(bd *blackduckapi.Blackduck, compType string) (*api.ComponentList, error)

GetComponents gets the Black Duck's creater and returns the components

func (*Blackduck) Versions

func (b *Blackduck) Versions() []string

Versions returns the versions that the operator supports

type Creater

type Creater interface {
	Ensure(blackDuck *blackduckapi.Blackduck) error
	Versions() []string
	GetComponents(blackDuck *blackduckapi.Blackduck) (*api.ComponentList, error)
	GetPostgresComponents(blackDuck *blackduckapi.Blackduck) (*api.ComponentList, error)
	GetPVC(blackduck *blackduckapi.Blackduck) ([]*components.PersistentVolumeClaim, error)
}

Creater interface

Directories

Path Synopsis
v1
v2
v3

Jump to

Keyboard shortcuts

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