dataset

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeploymentResource = "deployment"
	ConfigMapResource  = "configmap"
)

Functions

This section is empty.

Types

type Pkg

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

Pkg represents a package that can be created on the file system by using the Build function

func NewPackage

func NewPackage(name string) *Pkg

NewPackage creates a new package for testing.

func (*Pkg) Build

func (p *Pkg) Build(path string) error

Build outputs the current data structure as a set of (nested) package in the provided path.

func (*Pkg) Name

func (p *Pkg) Name() string

Name returns the name of the current package

func (*Pkg) WithKptfile

func (p *Pkg) WithKptfile() *Pkg

WithKptfile configures the current package to have a Kptfile

func (*Pkg) WithResource

func (p *Pkg) WithResource(resource string) *Pkg

WithResource configures the package to include the provided resource

func (*Pkg) WithSubPackages

func (p *Pkg) WithSubPackages(ps ...*Pkg) *Pkg

WithSubPackages adds the provided packages as subpackages to the current package

Jump to

Keyboard shortcuts

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