parts

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIVersion = "0.0.1"
	DefaultKind       = "ksonnet.io/parts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BugSpec

type BugSpec struct {
	URL string `json:"url"`
}

type ContributorSpec

type ContributorSpec struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type ContributorSpecs

type ContributorSpecs []*ContributorSpec

type PrototypeRefSpecs

type PrototypeRefSpecs []string

type QuickStartSpec

type QuickStartSpec struct {
	Prototype     string            `json:"prototype"`
	ComponentName string            `json:"componentName"`
	Flags         map[string]string `json:"flags"`
	Comment       string            `json:"comment"`
}

type RepositorySpec

type RepositorySpec struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type Spec

type Spec struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`

	Prototypes   PrototypeRefSpecs `json:"prototypes"`
	Name         string            `json:"name"`
	Version      string            `json:"version"`
	Description  string            `json:"description"`
	Author       string            `json:"author"`
	Contributors ContributorSpecs  `json:"contributors"`
	Repository   RepositorySpec    `json:"repository"`
	Bugs         *BugSpec          `json:"bugs"`
	Keywords     []string          `json:"keywords"`
	QuickStart   *QuickStartSpec   `json:"quickStart"`
	License      string            `json:"license"`
}

func Unmarshal

func Unmarshal(bytes []byte) (*Spec, error)

func (*Spec) Marshal

func (s *Spec) Marshal() ([]byte, error)

type Specs

type Specs []*Spec

Jump to

Keyboard shortcuts

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