exposestrategy

package
v2.3.22+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const ExternalIPLabel = "fabric8.io/externalIP"

Variables

View Source
var (
	ExposeLabel                 = Label{Key: "expose", Value: "true"}
	ExposeAnnotationKey         = "fabric8.io/exposeUrl"
	ApiServicePathAnnotationKey = "api.service.kubernetes.io/path"
)

Functions

This section is empty.

Types

type ExposeStrategy

type ExposeStrategy interface {
	Add(svc *api.Service) error
	Remove(svc *api.Service) error
}

func New

func New(exposer, domain, nodeIP, routeHost string, routeUsePath, http, tlsAcme bool, client *client.Client, restClientConfig *restclient.Config, encoder runtime.Encoder) (ExposeStrategy, error)

func NewAutoStrategy

func NewAutoStrategy(exposer, domain, nodeIP, routeHost string, routeUsePath, http, tlsAcme bool, client *client.Client, restClientConfig *restclient.Config, encoder runtime.Encoder) (ExposeStrategy, error)

type IngressStrategy

type IngressStrategy struct {
	// contains filtered or unexported fields
}

func NewIngressStrategy

func NewIngressStrategy(client *client.Client, encoder runtime.Encoder, domain string, http, tlsAcme bool) (*IngressStrategy, error)

func (*IngressStrategy) Add

func (s *IngressStrategy) Add(svc *api.Service) error

func (*IngressStrategy) Remove

func (s *IngressStrategy) Remove(svc *api.Service) error

type Label

type Label struct {
	Key   string
	Value string
}

type LoadBalancerStrategy

type LoadBalancerStrategy struct {
	// contains filtered or unexported fields
}

func NewLoadBalancerStrategy

func NewLoadBalancerStrategy(client *client.Client, encoder runtime.Encoder) (*LoadBalancerStrategy, error)

func (*LoadBalancerStrategy) Add

func (s *LoadBalancerStrategy) Add(svc *api.Service) error

func (*LoadBalancerStrategy) Remove

func (s *LoadBalancerStrategy) Remove(svc *api.Service) error

type NodePortStrategy

type NodePortStrategy struct {
	// contains filtered or unexported fields
}

func NewNodePortStrategy

func NewNodePortStrategy(client *client.Client, encoder runtime.Encoder, nodeIP string) (*NodePortStrategy, error)

func (*NodePortStrategy) Add

func (s *NodePortStrategy) Add(svc *api.Service) error

func (*NodePortStrategy) Remove

func (s *NodePortStrategy) Remove(svc *api.Service) error

type RouteStrategy

type RouteStrategy struct {
	// contains filtered or unexported fields
}

func NewRouteStrategy

func NewRouteStrategy(client *client.Client, oclient *oclient.Client, encoder runtime.Encoder, domain, routeHost string, routeUsePath, http bool) (*RouteStrategy, error)

func (*RouteStrategy) Add

func (s *RouteStrategy) Add(svc *api.Service) error

func (*RouteStrategy) Remove

func (s *RouteStrategy) Remove(svc *api.Service) error

Jump to

Keyboard shortcuts

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