service

package
v3.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 9 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
	Ports     []Port
	// contains filtered or unexported fields
}

func ServiceFromKube

func ServiceFromKube(kubeService kubeModels.Service) 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

type ServiceList

type ServiceList []Service

func ServiceListFromKube

func ServiceListFromKube(kubeList []model.Service) ServiceList

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