stack

package
v0.0.0-...-add3e08 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStack

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

func NewBaseStack

func NewBaseStack(stackDir string) (BaseStack, error)

func (BaseStack) GetBaseBuildDockerfilePath

func (bs BaseStack) GetBaseBuildDockerfilePath() string

func (BaseStack) GetBaseRunDockerfilePath

func (bs BaseStack) GetBaseRunDockerfilePath() string

func (BaseStack) GetBuildDescription

func (bs BaseStack) GetBuildDescription() string

func (BaseStack) GetBuildPackages

func (bs BaseStack) GetBuildPackages() string

func (BaseStack) GetCNBBuildDockerfilePath

func (bs BaseStack) GetCNBBuildDockerfilePath() string

func (BaseStack) GetCNBRunDockerfilePath

func (bs BaseStack) GetCNBRunDockerfilePath() string

func (BaseStack) GetName

func (bs BaseStack) GetName() string

func (BaseStack) GetRunDescription

func (bs BaseStack) GetRunDescription() string

func (BaseStack) GetRunPackages

func (bs BaseStack) GetRunPackages() string

func (BaseStack) GetSources

func (bs BaseStack) GetSources() string

type Creator

type Creator struct {
	PackageFinder   PackageFinder
	MixinsGenerator MixinsGenerator
	ImageClient     ImageClient
}

func (Creator) CreateBionicStack

func (c Creator) CreateBionicStack(stack Stack, buildBaseTag, runBaseTag string, publish bool) error

type FullStack

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

func NewFullStack

func NewFullStack(stackDir string) (FullStack, error)

func (FullStack) GetBaseBuildDockerfilePath

func (bs FullStack) GetBaseBuildDockerfilePath() string

func (FullStack) GetBaseRunDockerfilePath

func (bs FullStack) GetBaseRunDockerfilePath() string

func (FullStack) GetBuildDescription

func (bs FullStack) GetBuildDescription() string

func (FullStack) GetBuildPackages

func (bs FullStack) GetBuildPackages() string

func (FullStack) GetCNBBuildDockerfilePath

func (bs FullStack) GetCNBBuildDockerfilePath() string

func (FullStack) GetCNBRunDockerfilePath

func (bs FullStack) GetCNBRunDockerfilePath() string

func (FullStack) GetName

func (bs FullStack) GetName() string

func (FullStack) GetRunDescription

func (bs FullStack) GetRunDescription() string

func (FullStack) GetRunPackages

func (bs FullStack) GetRunPackages() string

func (FullStack) GetSources

func (bs FullStack) GetSources() string

type ImageClient

type ImageClient interface {
	Build(tag, dockerfilePath string, buildArgs ...string) error
	Push(tag string) (string, error)
	Pull(tag string, keychain authn.Keychain) (v1.Image, error)
	SetLabel(tag, key, value string) error
}

type Mixins

type Mixins struct{}

func (Mixins) GetMixins

func (m Mixins) GetMixins(buildPackages, runPackages []string) ([]string, []string)

type MixinsGenerator

type MixinsGenerator interface {
	GetMixins(buildPackages, runPackages []string) ([]string, []string)
}

type PackageFinder

type PackageFinder interface {
	GetPackagesList(image string) ([]string, error)
	GetPackageMetadata(imageName string) (string, error)
}

type Stack

type Stack interface {
	GetName() string
	GetSources() string
	GetBuildPackages() string
	GetRunPackages() string
	GetBaseBuildDockerfilePath() string
	GetBaseRunDockerfilePath() string
	GetCNBBuildDockerfilePath() string
	GetCNBRunDockerfilePath() string
	GetBuildDescription() string
	GetRunDescription() string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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