Documentation ¶
Index ¶
- type Port
- type PortList
- type Service
- func (service Service) AllExternalPorts() []int
- func (service Service) AllTargetPorts() []int
- func (service Service) Copy() Service
- func (serv Service) MarshalJSON() ([]byte, error)
- func (serv Service) MarshalYAML() (interface{}, error)
- func (serv Service) RenderJSON() (string, error)
- func (serv Service) RenderTable() string
- func (serv Service) RenderYAML() (string, error)
- func (_ *Service) TableHeaders() []string
- func (serv *Service) TableRows() [][]string
- func (serv *Service) ToKube() kubeModels.Service
- func (serv *Service) UnmarshalJSON(data []byte) error
- func (serv *Service) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ServiceList
- func (list ServiceList) AvailableForIngress() ServiceList
- func (list ServiceList) GetByName(name string) (Service, bool)
- func (list ServiceList) Names() []string
- func (list ServiceList) RenderJSON() (string, error)
- func (list ServiceList) RenderTable() string
- func (list ServiceList) RenderYAML() (string, error)
- func (_ ServiceList) TableHeaders() []string
- func (list ServiceList) TableRows() [][]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Port ¶
func PortFromKube ¶
func PortFromKube(kubePort model.ServicePort) Port
func (Port) RenderJSON ¶
func (*Port) RenderTable ¶
func (Port) RenderYAML ¶
func (*Port) TableHeaders ¶
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) AllTargetPorts ¶
func (Service) MarshalJSON ¶
func (Service) MarshalYAML ¶
func (Service) RenderJSON ¶
func (Service) RenderTable ¶
func (Service) RenderYAML ¶
func (*Service) TableHeaders ¶
func (*Service) ToKube ¶
func (serv *Service) ToKube() kubeModels.Service
func (*Service) UnmarshalJSON ¶
func (*Service) UnmarshalYAML ¶
type ServiceList ¶
type ServiceList []Service
func ServiceListFromKube ¶
func ServiceListFromKube(kubeList model.ServicesList) ServiceList
func (ServiceList) AvailableForIngress ¶
func (list ServiceList) AvailableForIngress() ServiceList
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.