bundle

package
v0.0.0-...-84534e0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pull

func Pull(ctx context.Context, resolver remotes.Resolver, ref, dir string) error

func Push

func Push(ctx context.Context, resolver remotes.Resolver, ref string, b Bundle) error

Types

type Blob

type Blob struct {
	MediaType MediaType
	Content   []byte
}

func KubeYamlBlobReader

func KubeYamlBlobReader(file string) (*Blob, error)

func KustomizeBaseBlobReader

func KustomizeBaseBlobReader(file string) (*Blob, error)

type BlobReader

type BlobReader = func(file string) (*Blob, error)

type Bundle

type Bundle map[string]*Blob

func Build

func Build(ctx context.Context, dir string) (Bundle, error)

type MediaType

type MediaType string
const (
	MediaTypeKubeYaml      MediaType = "application/vnd.k8s.manifest.v1+yaml"
	MediaTypeKustomizeYaml MediaType = "application/vnd.k8s.kustomization.manifest.v1+yaml"

	BlobReaderContextKey = "BlobReader"
)

Jump to

Keyboard shortcuts

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