pkg

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPrototypes

func LoadPrototypes(a app.App, d Descriptor) (prototype.Prototypes, error)

LoadPrototypes returns prototypes for a Package.

Types

type Descriptor

type Descriptor struct {
	Registry string
	Part     string
	Version  string
}

Descriptor describes a package.

func ParseName

func ParseName(name string) (Descriptor, error)

ParseName parses a package name into its components

type Package

type Package struct {
	Name        string
	Description string
	Prototypes  prototype.Prototypes
}

Package is a ksonnet package.

func Find

func Find(a app.App, name string) (*Package, error)

Find finds a package by name.

func New

func New(a app.App, d Descriptor, part *parts.Spec) (*Package, error)

New creates a new new instance of Package using a part.

func NewFromData

func NewFromData(a app.App, d Descriptor, data []byte) (*Package, error)

NewFromData creates a new instance of Package using part data bytes.

Jump to

Keyboard shortcuts

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