ir

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs

type Inputs struct {
	Services  map[string]*Service
	Volumes   map[string]*Volume
	TargetCfg TargetCfg
}

func FromCompose

func FromCompose(project *composeTypes.Project) *Inputs

func NewInputs

func NewInputs() *Inputs

type PublishedPort added in v0.9.3

type PublishedPort struct {
	ServicePort   uint16
	ContainerPort uint16
}

type Service

type Service struct {
	Name string
	// contains filtered or unexported fields
}

Service provides some k8ify-specific abstractions & utility around Compose service configurations.

func NewService

func NewService(name string, composeService composeTypes.ServiceConfig) *Service

func (*Service) AddPart added in v0.7.0

func (s *Service) AddPart(part *Service)

func (*Service) AsCompose

func (s *Service) AsCompose() composeTypes.ServiceConfig

AsCompose returns the underlying compose config TODO(mh): make me obsolete!

func (*Service) GetParts added in v0.7.0

func (s *Service) GetParts() []*Service

func (*Service) GetPorts added in v0.9.3

func (s *Service) GetPorts() []PublishedPort

func (*Service) IsSingleton

func (s *Service) IsSingleton() bool

func (*Service) Labels

func (s *Service) Labels() map[string]string

func (*Service) VolumeNames

func (s *Service) VolumeNames() []string

VolumeNames lists the names of all volumes that are mounted by this service

func (*Service) Volumes added in v0.3.1

func (s *Service) Volumes(volumes map[string]*Volume) (map[string]*Volume, map[string]*Volume)

type TargetCfg added in v0.11.0

type TargetCfg map[string]interface{}

func (TargetCfg) IsSubdomainOfAppsDomain added in v0.11.0

func (t TargetCfg) IsSubdomainOfAppsDomain(domain string) bool

func (TargetCfg) MaxExposeLength added in v0.11.0

func (t TargetCfg) MaxExposeLength() int

type Volume

type Volume struct {
	Name string
	// contains filtered or unexported fields
}

Volume provides some k8ify-specific abstractions & utility around Compose volume configurations.

func NewVolume

func NewVolume(name string, composeVolume composeTypes.VolumeConfig) *Volume

func (*Volume) IsShared

func (v *Volume) IsShared() bool

func (*Volume) IsSingleton

func (v *Volume) IsSingleton() bool

func (*Volume) Labels

func (v *Volume) Labels() map[string]string

func (*Volume) Size

func (v *Volume) Size(fallback string) resource.Quantity

func (*Volume) SizeIsMissing

func (v *Volume) SizeIsMissing() bool

Jump to

Keyboard shortcuts

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