package
0.8.11
Repository: https://github.com/appc/spec.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
IsValidOsArch checks if a OS-architecture combination is valid given a map of valid OS-architectures.
LabelsFromMap creates Labels from a map[ACIdentifier]string.
MountPointFromString takes a command line mountpoint parameter and returns a mountpoint It is useful for actool patch-manifest --mounts Example mountpoint parameters: database,path=/tmp,readOnly=true.
MustACIdentifier generates a new ACIdentifier from a string, If the given string is not a valid ACIdentifier, it panics.
MustACName generates a new ACName from a string, If the given string is not a valid ACName, it panics.
NewACIdentifier generates a new ACIdentifier from a string.
NewACName generates a new ACName from a string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewSemVer generates a new SemVer from a string.
No description provided by the author
No description provided by the author
NewUUID generates a new UUID from the given string.
PortFromString takes a command line port parameter and returns a port It is useful for actool patch-manifest --ports Example port parameters: health-check,protocol=udp,port=8000 query,protocol=tcp,port=8080,count=1,socketActivated=true.
SanitizeACIdentifier replaces every invalid ACIdentifier character in s with an underscore making it a legal ACIdentifier string.
SanitizeACName replaces every invalid ACName character in s with a dash making it a legal ACName string.
No description provided by the author
ToAppcOSArch translates a Golang arch tuple (OS, architecture, flavor) into an appc arch tuple (OS, architecture).
ToGoOSArch translates an appc arch tuple (OS, architecture) into a Golang arch tuple (OS, architecture, flavor).
No description provided by the author
VolumeFromString takes a command line volume parameter and returns a volume Example volume parameters: database,kind=host,source=/tmp,readOnly=true,recursive=true.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO(lucab): add "ulimit" isolators.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrIncompatibleIsolator is returned whenever an Isolators set contains conflicting IsolatorValue instances.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidIsolator is returned upon validation failures due to improper or partially constructed Isolator instances (eg.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidACIdentifier is a regular expression that defines a valid ACIdentifier.
ValidACName is a regular expression that defines a valid ACName.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExposedPort represents a port listening on the host side.
Hash encodes a hash specified in a string of the form: "<type>-<value>" for example "sha512-06c733b1838136838e6d2d3e8fa5aea4c7905e92[...]" Valid types are currently: * sha512.
Isolator is a model for unmarshalling isolator types from their JSON-encoded representation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MountPoint is the application-side manifestation of a Volume.
Port represents a port as offered by an application *inside* the pod.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Volume encapsulates a volume which should be mounted into the filesystem of all apps in a PodManifest.

# Interfaces

No description provided by the author
IsolatorValue encapsulates the actual value of an Isolator which may be serialized as any arbitrary JSON blob.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

ACIdentifier (an App-Container Identifier) is a format used by keys in image names and image labels of the App Container Standard.
An ACIdentifierError is returned when a bad value is used for an ACIdentifier.
ACKind wraps a string to define a field which must be set with one of several ACKind values.
An ACKindError is returned when the wrong ACKind is set in a manifest.
ACName (an App-Container Name) is a format used by keys in different formats of the App Container Standard.
An ACNameError is returned when a bad value is used for an ACName.
An ACVersionError is returned when a bad ACVersion is set in a manifest.
No description provided by the author
Date wraps time.Time to marshal/unmarshal to/from JSON strings in strict accordance with RFC3339 TODO(jonboulle): golang's implementation seems slightly buggy here; according to http://tools.ietf.org/html/rfc3339#section-5.6 , applications may choose to separate the date and time with a space instead of a T character (for example, `date --rfc-3339` on GNU coreutils) - but this is considered an error by go's parser.
No description provided by the author
No description provided by the author
No description provided by the author
Isolators encapsulates a list of individual Isolators for the ImageManifest and PodManifest schemas.
No description provided by the author
No description provided by the author
No description provided by the author
LinuxCPUShares assigns the CPU time share weight to the processes executed.
No description provided by the author
LinuxOOMScoreAdj is equivalent to /proc/[pid]/oom_score_adj.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SemVer implements the Unmarshaler interface to define a field that must be a semantic version string TODO(jonboulle): extend upstream instead of wrapping?.
No description provided by the author
URL wraps url.URL to marshal/unmarshal to/from JSON strings and enforce that the scheme is HTTP/HTTPS only.
UserAnnotations are arbitrary key-value pairs, to be supplied and interpreted by the user.
UserLabels are arbitrary key-value pairs, to be supplied and interpreted by the user.
UUID encodes an RFC4122-compliant UUID, marshaled to/from a string TODO(jonboulle): vendor a package for this? TODO(jonboulle): consider more flexibility in input string formats.