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 {
Readiness *ReadinessProbe `json:"-"`
Secrets map[string]string
Platform *Platform
WorkingDir string
Image string
Name string
Script string
User string
ExposedPorts []Binding
Cmd []string
Entrypoint []string
Env []string
Volumes []Volume
Memory int64
CPU uint64
Tty bool
}
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.