exposestrategy

package
v2.3.93+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
const ExternalIPLabel = "fabric8.io/externalIP"
View Source
const (
	PathModeUsePath = "path"
)

Variables

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

Functions

func UrlJoin

func UrlJoin(paths ...string) string

UrlJoin joins the given paths so that there is only ever one '/' character between the paths

Types

type AmbassadorStrategy

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

func NewAmbassadorStrategy

func NewAmbassadorStrategy(client *client.Client, encoder runtime.Encoder, domain string, http, tlsAcme bool, urltemplate, pathMode string) (*AmbassadorStrategy, error)

func (*AmbassadorStrategy) Add

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

func (*AmbassadorStrategy) Remove

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

type ExposeStrategy

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

func New

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

func NewAutoStrategy

func NewAutoStrategy(exposer, domain, urltemplate string, nodeIP, routeHost, pathMode 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, urltemplate, pathMode string) (*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