Documentation ¶
Index ¶
- Constants
- func CreateFakeHTTPClient() *fake.RESTClient
- func NewConfigMap(id, rv, namespace string, keys map[string]string) *v1.ConfigMap
- func NewEndpoints(svcName, rv, node, namespace string, readyIps, notReadyIps []string, ...) *v1.Endpoints
- func NewExternalDNS(name, namespace string, spec cisapiv1.ExternalDNSSpec) *cisapiv1.ExternalDNS
- func NewIPAM(name, namespace string, spec ficV1.IPAMSpec, status ficV1.IPAMStatus) *ficV1.IPAM
- func NewIngress(id, rv, namespace string, spec v1beta1.IngressSpec, ...) *v1beta1.Ingress
- func NewIngressLink(name, namespace, rv string, spec cisapiv1.IngressLinkSpec) *cisapiv1.IngressLink
- func NewNamespace(name, rv string, labels map[string]string) *v1.Namespace
- func NewNode(id string, rv string, unsched bool, addresses []v1.NodeAddress, ...) *v1.Node
- func NewRoute(id, rv, namespace string, spec routeapi.RouteSpec, ...) *routeapi.Route
- func NewSecret(name, namespace, cert, key string) *v1.Secret
- func NewService(id, rv, namespace string, serviceType v1.ServiceType, ...) *v1.Service
- func NewTLSProfile(name, namespace string, spec cisapiv1.TLSProfileSpec) *cisapiv1.TLSProfile
- func NewTransportServer(name, namespace string, spec cisapiv1.TransportServerSpec) *cisapiv1.TransportServer
- func NewVirtualServer(name, namespace string, spec cisapiv1.VirtualServerSpec) *cisapiv1.VirtualServer
- type MockPoller
- type MockWriter
Constants ¶
View Source
const ( // VirtualServer is a F5 Custom Resource Kind. VirtualServer = "VirtualServer" // TLSProfile is a F5 Custom Resource Kind TLSProfile = "TLSProfile" // IngressLink is a Custom Resource used by both F5 and Nginx IngressLink = "IngressLink" // TransportServer is a F5 Custom Resource Kind TransportServer = "TransportServer" // ExternalDNS is a F5 Customr Resource Kind ExternalDNS = "ExternalDNS" // IPAM is a F5 Customr Resource Kind IPAM = "IPAM" )
View Source
const ( ImmediateFail = iota AsyncFail Timeout Success )
Variables ¶
This section is empty.
Functions ¶
func CreateFakeHTTPClient ¶
func CreateFakeHTTPClient() *fake.RESTClient
CreateFakeHTTPClient returns a fake RESTClient which also satisfies rest.Interface
func NewConfigMap ¶
NewConfigMap returns a new configmap object
func NewEndpoints ¶
func NewEndpoints( svcName, rv, node, namespace string, readyIps, notReadyIps []string, ports []v1.EndpointPort, ) *v1.Endpoints
NewEndpoints returns an endpoints objects
func NewExternalDNS ¶
func NewExternalDNS(name, namespace string, spec cisapiv1.ExternalDNSSpec) *cisapiv1.ExternalDNS
func NewIngress ¶
func NewIngress(id, rv, namespace string, spec v1beta1.IngressSpec, annotations map[string]string) *v1beta1.Ingress
NewIngress returns a new ingress object
func NewIngressLink ¶
func NewIngressLink(name, namespace, rv string, spec cisapiv1.IngressLinkSpec) *cisapiv1.IngressLink
func NewNode ¶
func NewNode( id string, rv string, unsched bool, addresses []v1.NodeAddress, taints []v1.Taint, ) *v1.Node
NewNode returns a new node object
func NewRoute ¶
func NewRoute( id, rv, namespace string, spec routeapi.RouteSpec, annotations map[string]string, ) *routeapi.Route
NewRoute returns a new route object
func NewService ¶
func NewService(id, rv, namespace string, serviceType v1.ServiceType, portSpecList []v1.ServicePort) *v1.Service
NewService returns a service
func NewTLSProfile ¶
func NewTLSProfile(name, namespace string, spec cisapiv1.TLSProfileSpec) *cisapiv1.TLSProfile
func NewTransportServer ¶
func NewTransportServer(name, namespace string, spec cisapiv1.TransportServerSpec) *cisapiv1.TransportServer
func NewVirtualServer ¶
func NewVirtualServer(name, namespace string, spec cisapiv1.VirtualServerSpec) *cisapiv1.VirtualServer
Types ¶
type MockPoller ¶
type MockPoller struct {
FailStyle int
}
func (*MockPoller) RegisterListener ¶
func (mp *MockPoller) RegisterListener(p pollers.PollListener) error
func (*MockPoller) Run ¶
func (mp *MockPoller) Run() error
func (*MockPoller) Stop ¶
func (mp *MockPoller) Stop() error
type MockWriter ¶
type MockWriter struct { FailStyle int WrittenTimes int Sections map[string]interface{} File string sync.Mutex }
func (*MockWriter) GetOutputFilename ¶
func (mw *MockWriter) GetOutputFilename() string
func (*MockWriter) SendSection ¶
func (mw *MockWriter) SendSection( name string, obj interface{}, ) (<-chan struct{}, <-chan error, error)
func (*MockWriter) Stop ¶
func (mw *MockWriter) Stop()
Click to show internal directories.
Click to hide internal directories.