Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Factories = make(map[string]ProviderFactory)
Factories - a map of provider creation factory implementations stored by name
Functions ¶
func Register ¶
func Register(factory ProviderFactory)
Register - will register a new network.Provider
Types ¶
type CanalNetworkProvider ¶ added in v0.0.2
type CanalNetworkProvider struct{}
CanalNetworkProvider - a struct to represent the concrete implementation of a Weave network.Provider
func (*CanalNetworkProvider) Create ¶ added in v0.0.2
func (fnp *CanalNetworkProvider) Create() error
Create - will create the K8 network resources (Canal)
func (*CanalNetworkProvider) Name ¶ added in v0.0.2
func (fnp *CanalNetworkProvider) Name() string
Name - will return the Canal NetworkProvider name
func (*CanalNetworkProvider) PodNetworkCidr ¶ added in v0.0.2
func (fnp *CanalNetworkProvider) PodNetworkCidr() string
PodNetworkCidr - will return the Canal NetworkProvider name
type FlannelNetworkProvider ¶
type FlannelNetworkProvider struct{}
FlannelNetworkProvider - a struct to represent the concrete implementation of a Flannel NetworkProvider
func (*FlannelNetworkProvider) Create ¶
func (fnp *FlannelNetworkProvider) Create() error
Create - will create the K8 network resources
func (*FlannelNetworkProvider) Name ¶
func (fnp *FlannelNetworkProvider) Name() string
Name - will return the Flannel NetworkProvider name
func (*FlannelNetworkProvider) PodNetworkCidr ¶ added in v0.0.2
func (fnp *FlannelNetworkProvider) PodNetworkCidr() string
PodNetworkCidr - will return the Canal NetworkProvider name
type Provider ¶
Provider is an abstract interface for Network.
func CreateProvider ¶
CreateProvider - will return a network.Provider implementation from a name
func NewCanalNetworkProvider ¶ added in v0.0.2
func NewCanalNetworkProvider() Provider
NewCanalNetworkProvider - a factory method to initialise and return a Canal specific network.Provider
func NewFlannelNetworkProvider ¶
func NewFlannelNetworkProvider() Provider
NewFlannelNetworkProvider - a factory method to initialise and return a Flannel specific NetworkProvider
func NewWeaveNetworkProvider ¶
func NewWeaveNetworkProvider() Provider
NewWeaveNetworkProvider - a factory method to initialise and return a Weave specific network.Provider
type ProviderFactory ¶
type ProviderFactory func() Provider
ProviderFactory - Interface definition for a network.provider implementation
type WeaveNetworkProvider ¶
type WeaveNetworkProvider struct{}
WeaveNetworkProvider - a struct to represent the concrete implementation of a Weave network.Provider
func (*WeaveNetworkProvider) Create ¶
func (fnp *WeaveNetworkProvider) Create() error
Create - will create the K8 network resources (Weave)
func (*WeaveNetworkProvider) Name ¶
func (fnp *WeaveNetworkProvider) Name() string
Name - will return the Weave NetworkProvider name
func (*WeaveNetworkProvider) PodNetworkCidr ¶ added in v0.0.2
func (fnp *WeaveNetworkProvider) PodNetworkCidr() string
PodNetworkCidr - will return the Canal NetworkProvider name