package schema

import "github.com/appc/spec/schema"

Index

Constants

const (
	ACIExtension = ".aci"
)

Variables

var (
	AppContainerVersion types.SemVer
)

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

Source Files

app.go container.go doc.go kind.go version.go

Directories

PathSynopsis
schema/types
Version
v0.1.1
Published
Dec 11, 2014
Platform
darwin/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.