Versions in this module Expand all Collapse all v0 v0.5.0 Sep 22, 2016 Changes in this version + const DefaultContentType + const OpendaylightSockDir + const OpendaylightSpecDir + const ServiceAffinityClientIP + const ServiceAffinityNone + var ErrMultipleResults = errors.New("MultipleResults") + var ErrNotFound = errors.New("NotFound") + func DecodeRequest(w http.ResponseWriter, r *http.Request, req interface{}) (err error) + func EncodeResponse(w http.ResponseWriter, res Response) + func ErrorResponse(w http.ResponseWriter, err error) + func FullSocketAddr(addr, dir string) (string, error) + func WriteSpec(name, addr, dir string) error + type BaseError struct + DefaultErrString string + Info string + func (e BaseError) Error() string + type Config struct + Global struct{ ... } + LoadBalancer LoadBalancerOpts + Plugin PluginOpts + type Err400er interface + Error400 func(ErrUnexpectedResponseCode) error + type Err401er interface + Error401 func(ErrUnexpectedResponseCode) error + type Err404er interface + Error404 func(ErrUnexpectedResponseCode) error + type Err405er interface + Error405 func(ErrUnexpectedResponseCode) error + type Err408er interface + Error408 func(ErrUnexpectedResponseCode) error + type Err429er interface + Error429 func(ErrUnexpectedResponseCode) error + type Err500er interface + Error500 func(ErrUnexpectedResponseCode) error + type Err503er interface + Error503 func(ErrUnexpectedResponseCode) error + type ErrDefault400 struct + func (e ErrDefault400) Error() string + type ErrDefault401 struct + func (e ErrDefault401) Error() string + type ErrDefault404 struct + func (e ErrDefault404) Error() string + type ErrDefault405 struct + func (e ErrDefault405) Error() string + type ErrDefault408 struct + func (e ErrDefault408) Error() string + type ErrDefault429 struct + func (e ErrDefault429) Error() string + type ErrDefault500 struct + func (e ErrDefault500) Error() string + type ErrDefault503 struct + func (e ErrDefault503) Error() string + type ErrEndpointNotFound struct + func (e ErrEndpointNotFound) Error() string + type ErrErrorAfterReauthentication struct + ErrOriginal error + func (e ErrErrorAfterReauthentication) Error() string + type ErrInvalidInput struct + Value interface{} + func (e ErrInvalidInput) Error() string + type ErrMissingInput struct + Argument string + func (e ErrMissingInput) Error() string + type ErrMultipleResourcesFound struct + Count int + Name string + ResourceType string + func (e ErrMultipleResourcesFound) Error() string + type ErrResourceNotFound struct + Name string + ResourceType string + func (e ErrResourceNotFound) Error() string + type ErrServiceNotFound struct + func (e ErrServiceNotFound) Error() string + type ErrTimeOut struct + func (e ErrTimeOut) Error() string + type ErrUnableToReauthenticate struct + ErrOriginal error + func (e ErrUnableToReauthenticate) Error() string + type ErrUnexpectedResponseCode struct + Actual int + Body []byte + Expected []int + Method string + URL string + func (e ErrUnexpectedResponseCode) Error() string + type ErrUnexpectedType struct + Actual string + Expected string + func (e ErrUnexpectedType) Error() string + type LoadBalancerOpts struct + CreateMonitor bool + LBMethod string + MonitorDelay MyDuration + MonitorMaxRetries uint + MonitorTimeout MyDuration + type MyDuration struct + func (d *MyDuration) UnmarshalText(text []byte) error + type OpenDaylight struct + ExtNetID string + Plugin plugins.PluginInterface + func NewOpenDaylight(config io.Reader) (*OpenDaylight, error) + func (os *OpenDaylight) BuildPortName(podName, namespace, networkID string) string + func (os *OpenDaylight) CreateNetwork(network *provider.Network) error + func (os *OpenDaylight) CreatePort(networkID, tenantID, portName, podHostname string) (*portsbinding.Port, error) + func (os *OpenDaylight) DeleteNetwork(networkName string) error + func (os *OpenDaylight) DeletePort(portName string) error + func (os *OpenDaylight) GetNetwork(networkName string) (*provider.Network, error) + func (os *OpenDaylight) GetNetworkByID(networkID string) (*provider.Network, error) + func (os *OpenDaylight) GetPort(name string) (*ports.Port, error) + func (os *OpenDaylight) ListPorts(networkID, deviceOwner string) ([]ports.Port, error) + func (os *OpenDaylight) OSNetworktoProviderNetwork(osNetwork *networks.Network) (*provider.Network, error) + func (os *OpenDaylight) PodStatus(podName, namespace, podInfraContainerID string, network *provider.Network, ...) (string, error) + func (os *OpenDaylight) SetupPod(podName, namespace, podInfraContainerID string, network *provider.Network, ...) error + func (os *OpenDaylight) TeardownPod(podName, namespace, podInfraContainerID string, network *provider.Network, ...) error + func (os *OpenDaylight) ToProviderStatus(status string) string + func (os *OpenDaylight) UpdateNetwork(network *provider.Network) error + type OpenDaylightClient struct + BaseUrl string + HTTPClient http.Client + func NewOpenDaylightClient(config *Config) (*OpenDaylightClient, error) + func (client *OpenDaylightClient) AddInterface(routerId string, opts routers.AddInterfaceOpts) (r routers.InterfaceResult) + func (client *OpenDaylightClient) CreateNetwork(opts networks.CreateOpts) (r networks.CreateResult) + func (client *OpenDaylightClient) CreatePort(opts portsbinding.CreateOpts) (r portsbinding.CreateResult) + func (client *OpenDaylightClient) CreateRouter(opts routers.CreateOpts) (r routers.CreateResult) + func (client *OpenDaylightClient) CreateSubnet(opts subnets.CreateOpts) (r subnets.CreateResult) + func (client *OpenDaylightClient) Delete(url string, opts *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) DeleteNetwork(networkId string) (r networks.DeleteResult) + func (client *OpenDaylightClient) DeletePort(portId string) (r ports.DeleteResult) + func (client *OpenDaylightClient) DeleteRouter(routerId string) (r routers.DeleteResult) + func (client *OpenDaylightClient) DeleteSubnet(subnetId string) (r subnets.DeleteResult) + func (client *OpenDaylightClient) Get(url string, JSONResponse interface{}, opts *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) GetSubnet(subnetId string) (r subnets.GetResult) + func (client *OpenDaylightClient) ListNetwork(opts *networks.ListOpts) ([]networks.Network, error) + func (client *OpenDaylightClient) ListPort(opts ports.ListOptsBuilder) ([]ports.Port, error) + func (client *OpenDaylightClient) ListRouter(opts routers.ListOpts) ([]routers.Router, error) + func (client *OpenDaylightClient) Patch(url string, JSONBody interface{}, JSONResponse interface{}, opts *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) Post(url string, JSONBody interface{}, JSONResponse interface{}, opts *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) Put(url string, JSONBody interface{}, JSONResponse interface{}, opts *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) RemoveInterface(routerId string, opts routers.RemoveInterfaceOpts) (r routers.InterfaceResult) + func (client *OpenDaylightClient) Request(method, url string, options *RequestOpts) (*http.Response, error) + func (client *OpenDaylightClient) UpdateNetwork() + func (client *OpenDaylightClient) UpdatePort(portId string, opts portsbinding.UpdateOpts) (r portsbinding.UpdateResult) + func (client *OpenDaylightClient) UpdateRouter() + type PluginOpts struct + IntegrationBridge string + PluginName string + type Request interface + type RequestOpts struct + ErrorContext error + JSONBody interface{} + JSONResponse interface{} + MoreHeaders map[string]string + OkCodes []int + RawBody io.Reader + type Response struct + Err string + Result interface{}