service

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: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port struct {
	Name       string
	Port       *int
	TargetPort int
	Protocol   string
}

func PortFromKube

func PortFromKube(kubePort model.ServicePort) Port

func (Port) RenderJSON

func (port Port) RenderJSON() (string, error)

func (*Port) RenderTable

func (port *Port) RenderTable() string

func (Port) RenderYAML

func (port Port) RenderYAML() (string, error)

func (Port) String

func (port Port) String() string

func (*Port) TableHeaders

func (_ *Port) TableHeaders() []string

func (*Port) TableRows

func (port *Port) TableRows() [][]string

type PortList

type PortList []Port

func (PortList) String

func (list PortList) String() string

type Service

type Service struct {
	Name       string
	CreatedAt  time.Time
	Deploy     string
	IPs        []string
	Domain     string
	SolutionID string
	Ports      []Port
}

func ServiceFromKube

func ServiceFromKube(kubeService kubeModels.Service) Service

func (Service) AllExternalPorts

func (service Service) AllExternalPorts() []int

func (Service) AllTargetPorts

func (service Service) AllTargetPorts() []int

func (Service) Copy

func (service Service) Copy() Service

func (Service) MarshalJSON

func (serv Service) MarshalJSON() ([]byte, error)

func (Service) MarshalYAML

func (serv Service) MarshalYAML() (interface{}, error)

func (Service) RenderJSON

func (serv Service) RenderJSON() (string, error)

func (Service) RenderTable

func (serv Service) RenderTable() string

func (Service) RenderYAML

func (serv Service) RenderYAML() (string, error)

func (*Service) TableHeaders

func (_ *Service) TableHeaders() []string

func (*Service) TableRows

func (serv *Service) TableRows() [][]string

func (*Service) ToKube

func (serv *Service) ToKube() kubeModels.Service

func (*Service) UnmarshalJSON

func (serv *Service) UnmarshalJSON(data []byte) error

func (*Service) UnmarshalYAML

func (serv *Service) UnmarshalYAML(unmarshal func(interface{}) error) error

type ServiceList

type ServiceList []Service

func ServiceListFromKube

func ServiceListFromKube(kubeList model.ServicesList) ServiceList

func (ServiceList) AvailableForIngress

func (list ServiceList) AvailableForIngress() ServiceList

func (ServiceList) GetByName

func (list ServiceList) GetByName(name string) (Service, bool)

func (ServiceList) Names

func (list ServiceList) Names() []string

func (ServiceList) RenderJSON

func (list ServiceList) RenderJSON() (string, error)

func (ServiceList) RenderTable

func (list ServiceList) RenderTable() string

func (ServiceList) RenderYAML

func (list ServiceList) RenderYAML() (string, error)

func (ServiceList) TableHeaders

func (_ ServiceList) TableHeaders() []string

func (ServiceList) TableRows

func (list ServiceList) TableRows() [][]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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