Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AutoPlatform = &Platform{}
Functions ¶
func GetPlatforms ¶
Types ¶
type Binding ¶
type Binding struct { Host PortBinding Container PortBinding }
type CommitOptions ¶
type ContainerConfig ¶
type ContainerConfig struct { Cmd []string Entrypoint []string Env []string // List of environment variable to set in the container ExposedPorts []Binding Image string // Name of the image as it was passed by the operator (e.g. could be symbolic) Name string Platform *Platform Readiness *ReadinessProbe `json:"-"` Tty bool // Attach standard streams to a tty, including stdin if it is not closed. User string // User that will run the command(s) inside the container, also support user:group Volumes []Volume // List of volumes (mounts) used for the container WorkingDir string // Current directory (PWD) in the command will be launched Memory int64 CPU uint64 Script string }
type ImageInfo ¶
type ImageInfo struct { ID string Platform *PlatformSpec }
type Platform ¶
type Platform struct { Host *PlatformSpec Container *PlatformSpec }
func GetPlatformSpec ¶
func GetPlatformSpec() *Platform
func NewPlatform ¶
type PlatformSpec ¶
func GetContainerPlatform ¶
func GetContainerPlatform(host *PlatformSpec) *PlatformSpec
func GetContainerPlatform2 ¶
func GetContainerPlatform2(host *PlatformSpec) *PlatformSpec
func GetImagePlatform ¶
func GetImagePlatform(host *PlatformSpec) *PlatformSpec
func ParsePlatform ¶
func ParsePlatform(platform string) *PlatformSpec
func ParsePlatforms ¶ added in v0.10.0
func ParsePlatforms(platforms ...string) []*PlatformSpec
func (*PlatformSpec) String ¶
func (p *PlatformSpec) String() string
func (*PlatformSpec) ToOrg ¶
func (p *PlatformSpec) ToOrg() *ocispec.Platform
type PortBinding ¶
func (PortBinding) String ¶ added in v0.7.0
func (p PortBinding) String() string
type ReadinessProbe ¶
Click to show internal directories.
Click to hide internal directories.