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 { ExposedPorts []Binding Volumes []Volume // List of volumes (mounts) used for the container Platform *Platform Readiness *ReadinessProbe `json:"-"` Image string // Name of the image as it was passed by the operator (e.g., could be symbolic) Name string Script string User string // User that will run the command(s) inside the container, also supports user:group WorkingDir string // Current directory (PWD) in which the command will be launched Cmd []string Entrypoint []string Env []string // List of environment variable to set in the container Memory int64 CPU uint64 Tty bool // Attach standard streams to a tty, including stdin if it is not closed }
type ImageInfo ¶
type ImageInfo struct { Platform *PlatformSpec ID string }
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.