container

package
v3.5.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageName

func ImageName(image string) string

Types

type Container

type Container struct {
	kubeModels.Container
}

func (Container) ConfigMountsMap

func (container Container) ConfigMountsMap() map[string]kubeModels.ContainerVolume

func (Container) ConfigmapNames

func (container Container) ConfigmapNames() []string

func (Container) Copy

func (container Container) Copy() Container

func (Container) ImageName

func (container Container) ImageName() string

func (Container) MarshalJSON

func (cont Container) MarshalJSON() ([]byte, error)

func (Container) MarshalYAML

func (container Container) MarshalYAML() (interface{}, error)

func (Container) Patch

func (container Container) Patch(overlay Container) Container

func (Container) RenderJSON

func (cont Container) RenderJSON() (string, error)

func (Container) RenderTable

func (cont Container) RenderTable() string

func (Container) RenderYAML

func (container Container) RenderYAML() (string, error)

func (Container) SemanticVersion

func (container Container) SemanticVersion() (version semver.Version, ok bool)

func (Container) String

func (container Container) String() string

func (Container) TableHeaders

func (Container) TableHeaders() []string

func (Container) TableRows

func (cont Container) TableRows() [][]string

func (Container) ToKube

func (container Container) ToKube() kubeModels.Container

func (*Container) UnmarshalJSON

func (cont *Container) UnmarshalJSON(data []byte) error

func (*Container) UnmarshalYAML

func (container *Container) UnmarshalYAML(decode func(interface{}) error) error

func (Container) Validate

func (container Container) Validate() error

func (Container) VolumeMountsMap

func (container Container) VolumeMountsMap() map[string]kubeModels.ContainerVolume

type ContainerList

type ContainerList []Container

func (ContainerList) ConfigMountsMap

func (list ContainerList) ConfigMountsMap() map[string]model.ContainerVolume

func (ContainerList) Copy

func (list ContainerList) Copy() ContainerList

func (ContainerList) DeleteByName

func (list ContainerList) DeleteByName(name string) ContainerList

func (ContainerList) Filter

func (list ContainerList) Filter(pred func(cont Container) bool) ContainerList

func (ContainerList) GetByName

func (containers ContainerList) GetByName(name string) (Container, bool)

func (ContainerList) Images

func (containers ContainerList) Images() []string

func (ContainerList) Names

func (containers ContainerList) Names() []string

func (ContainerList) Replace

func (list ContainerList) Replace(cont Container) (ContainerList, bool)

func (ContainerList) SemanticVersions

func (list ContainerList) SemanticVersions() []string

func (ContainerList) VolumeMountsMap

func (list ContainerList) VolumeMountsMap() map[string]model.ContainerVolume

type PortMap

type PortMap map[string]model.ContainerPort

func NewPortSet

func NewPortSet(ports Ports) PortMap

func (PortMap) Copy

func (pmap PortMap) Copy() PortMap

func (PortMap) Len

func (pmap PortMap) Len() int

func (PortMap) Merge

func (pmap PortMap) Merge(rights ...model.ContainerPort) PortMap

func (PortMap) Ports

func (set PortMap) Ports() Ports

type Ports

type Ports []model.ContainerPort

func (Ports) Filter

func (ports Ports) Filter(pred func(port model.ContainerPort) bool) Ports

func (Ports) Len

func (ports Ports) Len() int

func (Ports) Ports

func (ports Ports) Ports() []int

func (Ports) Strings

func (ports Ports) Strings() str.Vector

func (Ports) TCP

func (ports Ports) TCP() Ports

func (Ports) UDP

func (ports Ports) UDP() Ports

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL