modulebuilder

package
v0.0.0-...-af597a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const KubernetesBuildProcessorName = "kubernetes"

Variables

View Source
var EnabledBuildArchitectures = map[BuildArchitecture]bool{}

Functions

This section is empty.

Types

type BuildArchitecture

type BuildArchitecture string
const BuildArchitectureX86_64 BuildArchitecture = "x86_64"

func (BuildArchitecture) String

func (ba BuildArchitecture) String() string

type BuildProcessor

type BuildProcessor interface {
	Start() error
	Request(b build.Build) error
	WithContext(c context.Context)
	WithLogger(logger *zap.Logger)
	WithModuleStorage(ms *filesystem.ModuleStorage)
	String() string
}

type KubernetesBuildProcessor

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

func NewKubernetesBuildProcessor

func NewKubernetesBuildProcessor(corev1Client v1.CoreV1Interface, clientConfig *restclient.Config, bufferSize int, namespace string) *KubernetesBuildProcessor

NewKubernetesBuildProcessor constructs a KubernetesBuildProcessor starting from a kubernetes.Clientset. bufferSize represents the length of the channel we use to do the builds. A bigger bufferSize will mean that we can save more Builds for processing, however setting this to a big value will have impacts

func (*KubernetesBuildProcessor) Request

func (*KubernetesBuildProcessor) Start

func (bp *KubernetesBuildProcessor) Start() error

func (*KubernetesBuildProcessor) String

func (bp *KubernetesBuildProcessor) String() string

func (*KubernetesBuildProcessor) WithContext

func (bp *KubernetesBuildProcessor) WithContext(c context.Context)

func (*KubernetesBuildProcessor) WithLogger

func (bp *KubernetesBuildProcessor) WithLogger(logger *zap.Logger)

func (*KubernetesBuildProcessor) WithModuleStorage

func (bp *KubernetesBuildProcessor) WithModuleStorage(ms *filesystem.ModuleStorage)

type NopBuildProcessor

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

func NewNopBuildProcessor

func NewNopBuildProcessor() *NopBuildProcessor

func (*NopBuildProcessor) Request

func (bp *NopBuildProcessor) Request(b build.Build) error

func (*NopBuildProcessor) Start

func (bp *NopBuildProcessor) Start() error

func (*NopBuildProcessor) String

func (bp *NopBuildProcessor) String() string

func (*NopBuildProcessor) WithContext

func (bp *NopBuildProcessor) WithContext(c context.Context)

func (*NopBuildProcessor) WithLogger

func (bp *NopBuildProcessor) WithLogger(logger *zap.Logger)

func (*NopBuildProcessor) WithModuleStorage

func (bp *NopBuildProcessor) WithModuleStorage(ms *filesystem.ModuleStorage)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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