schema

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACIExtension = ".aci"
)

Variables

View Source
var (
	AppContainerVersion types.SemVer
)

Functions

This section is empty.

Types

type AppList

type AppList []RuntimeApp

func (AppList) Get

func (al AppList) Get(name types.ACName) *RuntimeApp

Get retrieves an app by the specified name from the AppList; if there is no such app, nil is returned. The returned *RuntimeApp MUST be considered read-only.

type ContainerRuntimeManifest

type ContainerRuntimeManifest struct {
	ACVersion   types.SemVer            `json:"acVersion"`
	ACKind      types.ACKind            `json:"acKind"`
	UUID        types.UUID              `json:"uuid"`
	Apps        AppList                 `json:"apps"`
	Volumes     []types.Volume          `json:"volumes"`
	Isolators   []types.Isolator        `json:"isolators"`
	Annotations map[types.ACName]string `json:"annotations"`
}

func (ContainerRuntimeManifest) MarshalJSON

func (cm ContainerRuntimeManifest) MarshalJSON() ([]byte, error)

func (*ContainerRuntimeManifest) UnmarshalJSON

func (cm *ContainerRuntimeManifest) UnmarshalJSON(data []byte) error

type ImageManifest

type ImageManifest struct {
	ACKind        types.ACKind       `json:"acKind"`
	ACVersion     types.SemVer       `json:"acVersion"`
	Name          types.ACName       `json:"name"`
	Labels        types.Labels       `json:"labels"`
	App           types.App          `json:"app"`
	Annotations   types.Annotations  `json:"annotations"`
	Dependencies  types.Dependencies `json:"dependencies"`
	PathWhitelist []string           `json:"pathWhitelist"`
}

func (ImageManifest) MarshalJSON

func (am ImageManifest) MarshalJSON() ([]byte, error)

func (*ImageManifest) UnmarshalJSON

func (am *ImageManifest) UnmarshalJSON(data []byte) error

type Kind

type Kind struct {
	ACVersion types.SemVer `json:"acVersion"`
	ACKind    types.ACKind `json:"acKind"`
}

func (Kind) MarshalJSON

func (k Kind) MarshalJSON() ([]byte, error)

func (*Kind) UnmarshalJSON

func (k *Kind) UnmarshalJSON(data []byte) error

type RuntimeApp

type RuntimeApp struct {
	Name        types.ACName            `json:"name"`
	ImageID     types.Hash              `json:"imageID"`
	Isolators   []types.Isolator        `json:"isolators"`
	Annotations map[types.ACName]string `json:"annotations"`
}

RuntimeApp describes an application referenced in a ContainerRuntimeManifest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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