schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 App

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

App describes an application referenced in a ContainerRuntimeManifest

type AppList

type AppList []App

func (AppList) Get

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

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

type AppManifest

type AppManifest struct {
	ACVersion     types.SemVer         `json:"acVersion"`
	ACKind        types.ACKind         `json:"acKind"`
	Name          types.ACName         `json:"name"`
	OS            string               `json:"os"`
	Arch          string               `json:"arch"`
	Exec          []string             `json:"exec"`
	EventHandlers []types.EventHandler `json:"eventHandlers"`
	User          string               `json:"user"`
	Group         string               `json:"group"`
	Environment   map[string]string    `json:"environment"`
	MountPoints   []types.MountPoint   `json:"mountPoints"`
	Ports         []types.Port         `json:"ports"`
	Isolators     []types.Isolator     `json:"isolators"`
	Annotations   types.Annotations    `json:"annotations"`
}

func (AppManifest) MarshalJSON

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

func (*AppManifest) UnmarshalJSON

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

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 Dependency

type Dependency struct {
	Name types.ACName `json:"name"`
	Hash types.Hash   `json:"hash"`
	Root string       `json:"root"`
}

type FilesetManifest

type FilesetManifest struct {
	ACVersion    types.SemVer `json:"acVersion"`
	ACKind       types.ACKind `json:"acKind"`
	Name         types.ACName `json:"name"`
	OS           string       `json:"os"`
	Arch         string       `json:"arch"`
	Dependencies []Dependency `json:"dependencies"`
	Files        []string     `json:"files"`
}

func NewFilesetManifest

func NewFilesetManifest(name string) (*FilesetManifest, error)

func (FilesetManifest) MarshalJSON

func (fsm FilesetManifest) MarshalJSON() ([]byte, error)

func (*FilesetManifest) UnmarshalJSON

func (fsm *FilesetManifest) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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