package schema
import "github.com/appc/spec/schema"
Index ¶
- Constants
- Variables
- type AppList
- type ContainerRuntimeManifest
- func (cm ContainerRuntimeManifest) MarshalJSON() ([]byte, error)
- func (cm *ContainerRuntimeManifest) UnmarshalJSON(data []byte) error
- type ImageManifest
- func (am ImageManifest) MarshalJSON() ([]byte, error)
- func (am *ImageManifest) UnmarshalJSON(data []byte) error
- type Kind
- type RuntimeApp
Constants ¶
const (
ACIExtension = ".aci"
)
Variables ¶
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 ¶
func (Kind) MarshalJSON ¶
func (*Kind) UnmarshalJSON ¶
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 ¶
Path | Synopsis |
---|---|
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.