buildpod

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildPodable

type BuildPodable interface {
	GetName() string
	GetNamespace() string
	ServiceAccount() string
	BuilderSpec() corev1alpha1.BuildBuilderSpec
	CnbBindings() corev1alpha1.CNBBindings
	Services() buildapi.Services

	BuildPod(buildapi.BuildPodImages, buildapi.BuildContext) (*corev1.Pod, error)
}

type Generator

type Generator struct {
	BuildPodConfig  buildapi.BuildPodImages
	K8sClient       k8sclient.Interface
	KeychainFactory registry.KeychainFactory
	ImageFetcher    ImageFetcher
	DynamicClient   dynamic.Interface
}

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, build BuildPodable) (*v1.Pod, error)

type ImageFetcher

type ImageFetcher interface {
	Fetch(keychain authn.Keychain, repoName string) (ggcrv1.Image, string, error)
}

Jump to

Keyboard shortcuts

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