services

package
v0.0.0-...-29dce44 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetServices returns a Service by name
	GetService(string, int) (*Service, error)
}

Client represents an interfaces for clients to rancher services

func NewServicesClient

func NewServicesClient(metadataClient MetadataServicesClient) Client

NewServicesClient returns a new services client implementation

type Container

type Container struct {
	IP           string
	Index        int
	ExternalPort int
}

Container represents a container on rancher

type MetadataServicesClient

type MetadataServicesClient interface {
	GetSelfServiceByName(string) (metadata.Service, error)
}

MetadataServicesClient is a subset of metadata.Client with only the fields the services client needs

type Service

type Service struct {
	Name       string
	Containers []Container
}

Service represents a rancher service

Jump to

Keyboard shortcuts

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