mocks

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func (*API) CloudDNS

func (_m *API) CloudDNS() clouddns.API

CloudDNS provides a mock function with given fields:

func (*API) IPAM

func (_m *API) IPAM() ipam.API

IPAM provides a mock function with given fields:

func (*API) LBaaS

func (_m *API) LBaaS() lbaas.API

LBaaS provides a mock function with given fields:

func (*API) Test

func (_m *API) Test() test.API

Test provides a mock function with given fields:

func (*API) VLAN

func (_m *API) VLAN() vlan.API

VLAN provides a mock function with given fields:

func (*API) VSphere

func (_m *API) VSphere() vsphere.API

VSphere provides a mock function with given fields:

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the API type

func (*Backend) Create

func (_m *Backend) Create(ctx context.Context, definition backend.Definition) (v1.Backend, error)

Create provides a mock function with given fields: ctx, definition

func (*Backend) DeleteByID

func (_m *Backend) DeleteByID(ctx context.Context, identifier string) error

DeleteByID provides a mock function with given fields: ctx, identifier

func (*Backend) Get

func (_m *Backend) Get(ctx context.Context, page int, limit int) ([]backend.BackendInfo, error)

Get provides a mock function with given fields: ctx, page, limit

func (*Backend) GetByID

func (_m *Backend) GetByID(ctx context.Context, identifier string) (v1.Backend, error)

GetByID provides a mock function with given fields: ctx, identifier

func (*Backend) GetPage

func (_m *Backend) GetPage(ctx context.Context, page int, limit int, opts ...param.Parameter) (pagination.Page, error)

GetPage provides a mock function with given fields: ctx, page, limit, opts

func (*Backend) NextPage

func (_m *Backend) NextPage(ctx context.Context, page pagination.Page) (pagination.Page, error)

NextPage provides a mock function with given fields: ctx, page

func (*Backend) Update

func (_m *Backend) Update(ctx context.Context, identifier string, definition backend.Definition) (v1.Backend, error)

Update provides a mock function with given fields: ctx, identifier, definition

type Bind

type Bind struct {
	mock.Mock
}

Bind is an autogenerated mock type for the API type

func (*Bind) Create

func (_m *Bind) Create(ctx context.Context, definition bind.Definition) (v1.Bind, error)

Create provides a mock function with given fields: ctx, definition

func (*Bind) DeleteByID

func (_m *Bind) DeleteByID(ctx context.Context, identifier string) error

DeleteByID provides a mock function with given fields: ctx, identifier

func (*Bind) Get

func (_m *Bind) Get(ctx context.Context, page int, limit int) ([]bind.BindInfo, error)

Get provides a mock function with given fields: ctx, page, limit

func (*Bind) GetByID

func (_m *Bind) GetByID(ctx context.Context, identifier string) (v1.Bind, error)

GetByID provides a mock function with given fields: ctx, identifier

func (*Bind) GetPage

func (_m *Bind) GetPage(ctx context.Context, page int, limit int, opts ...param.Parameter) (pagination.Page, error)

GetPage provides a mock function with given fields: ctx, page, limit, opts

func (*Bind) NextPage

func (_m *Bind) NextPage(ctx context.Context, page pagination.Page) (pagination.Page, error)

NextPage provides a mock function with given fields: ctx, page

func (*Bind) Update

func (_m *Bind) Update(ctx context.Context, identifier string, definition bind.Definition) (v1.Bind, error)

Update provides a mock function with given fields: ctx, identifier, definition

type CloudDNS

type CloudDNS struct {
	mock.Mock
}

CloudDNS is an autogenerated mock type for the API type

func (*CloudDNS) Zone

func (_m *CloudDNS) Zone() zone.API

Zone provides a mock function with given fields:

type Frontend

type Frontend struct {
	mock.Mock
}

Frontend is an autogenerated mock type for the API type

func (*Frontend) Create

func (_m *Frontend) Create(ctx context.Context, definition frontend.Definition) (v1.Frontend, error)

Create provides a mock function with given fields: ctx, definition

func (*Frontend) DeleteByID

func (_m *Frontend) DeleteByID(ctx context.Context, identifier string) error

DeleteByID provides a mock function with given fields: ctx, identifier

func (*Frontend) Get

func (_m *Frontend) Get(ctx context.Context, page int, limit int) ([]frontend.FrontendInfo, error)

Get provides a mock function with given fields: ctx, page, limit

func (*Frontend) GetByID

func (_m *Frontend) GetByID(ctx context.Context, identifier string) (v1.Frontend, error)

GetByID provides a mock function with given fields: ctx, identifier

func (*Frontend) GetPage

func (_m *Frontend) GetPage(ctx context.Context, page int, limit int, opts ...param.Parameter) (pagination.Page, error)

GetPage provides a mock function with given fields: ctx, page, limit, opts

func (*Frontend) NextPage

func (_m *Frontend) NextPage(ctx context.Context, page pagination.Page) (pagination.Page, error)

NextPage provides a mock function with given fields: ctx, page

func (*Frontend) Update

func (_m *Frontend) Update(ctx context.Context, identifier string, definition frontend.Definition) (v1.Frontend, error)

Update provides a mock function with given fields: ctx, identifier, definition

type Info

type Info struct {
	mock.Mock
}

Info is an autogenerated mock type for the API type

func (*Info) Get

func (_m *Info) Get(ctx context.Context, identifier string) (info.Info, error)

Get provides a mock function with given fields: ctx, identifier

type LBaaS

type LBaaS struct {
	mock.Mock
}

LBaaS is an autogenerated mock type for the API type

func (*LBaaS) ACL

func (_m *LBaaS) ACL() acl.API

ACL provides a mock function with given fields:

func (*LBaaS) Backend

func (_m *LBaaS) Backend() backend.API

Backend provides a mock function with given fields:

func (*LBaaS) Bind

func (_m *LBaaS) Bind() bind.API

Bind provides a mock function with given fields:

func (*LBaaS) Frontend

func (_m *LBaaS) Frontend() frontend.API

Frontend provides a mock function with given fields:

func (*LBaaS) LoadBalancer

func (_m *LBaaS) LoadBalancer() loadbalancer.API

LoadBalancer provides a mock function with given fields:

func (*LBaaS) Server

func (_m *LBaaS) Server() server.API

Server provides a mock function with given fields:

type LoadBalancer

type LoadBalancer struct {
	mock.Mock
}

LoadBalancer is an autogenerated mock type for the API type

func (*LoadBalancer) Get

func (_m *LoadBalancer) Get(ctx context.Context, page int, limit int) ([]loadbalancer.LoadBalancerInfo, error)

Get provides a mock function with given fields: ctx, page, limit

func (*LoadBalancer) GetByID

func (_m *LoadBalancer) GetByID(ctx context.Context, identifier string) (v1.LoadBalancer, error)

GetByID provides a mock function with given fields: ctx, identifier

func (*LoadBalancer) GetPage

func (_m *LoadBalancer) GetPage(ctx context.Context, page int, limit int, opts ...param.Parameter) (pagination.Page, error)

GetPage provides a mock function with given fields: ctx, page, limit, opts

func (*LoadBalancer) NextPage

func (_m *LoadBalancer) NextPage(ctx context.Context, page pagination.Page) (pagination.Page, error)

NextPage provides a mock function with given fields: ctx, page

type PowerControl

type PowerControl struct {
	mock.Mock
}

PowerControl is an autogenerated mock type for the API type

func (*PowerControl) AwaitCompletion

func (_m *PowerControl) AwaitCompletion(ctx context.Context, vmID string, taskID string) error

AwaitCompletion provides a mock function with given fields: ctx, vmID, taskID

func (*PowerControl) Get

func (_m *PowerControl) Get(ctx context.Context, vmIdentifier string) (powercontrol.State, error)

Get provides a mock function with given fields: ctx, vmIdentifier

func (*PowerControl) Set

func (_m *PowerControl) Set(ctx context.Context, vmIdentifier string, request powercontrol.Request) (powercontrol.Task, error)

Set provides a mock function with given fields: ctx, vmIdentifier, request

type Search struct {
	mock.Mock
}

Search is an autogenerated mock type for the API type

func (*Search) ByName

func (_m *Search) ByName(ctx context.Context, name string) ([]search.VM, error)

ByName provides a mock function with given fields: ctx, name

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the API type

func (*Server) Create

func (_m *Server) Create(ctx context.Context, definition server.Definition) (v1.Server, error)

Create provides a mock function with given fields: ctx, definition

func (*Server) DeleteByID

func (_m *Server) DeleteByID(ctx context.Context, identifier string) error

DeleteByID provides a mock function with given fields: ctx, identifier

func (*Server) Get

func (_m *Server) Get(ctx context.Context, page int, limit int) ([]server.ServerInfo, error)

Get provides a mock function with given fields: ctx, page, limit

func (*Server) GetByID

func (_m *Server) GetByID(ctx context.Context, identifier string) (v1.Server, error)

GetByID provides a mock function with given fields: ctx, identifier

func (*Server) GetPage

func (_m *Server) GetPage(ctx context.Context, page int, limit int, opts ...param.Parameter) (pagination.Page, error)

GetPage provides a mock function with given fields: ctx, page, limit, opts

func (*Server) NextPage

func (_m *Server) NextPage(ctx context.Context, page pagination.Page) (pagination.Page, error)

NextPage provides a mock function with given fields: ctx, page

func (*Server) Update

func (_m *Server) Update(ctx context.Context, identifier string, definition server.Definition) (v1.Server, error)

Update provides a mock function with given fields: ctx, identifier, definition

type VMList

type VMList struct {
	mock.Mock
}

VMList is an autogenerated mock type for the API type

func (*VMList) Get

func (_m *VMList) Get(ctx context.Context, page int, limit int) ([]vmlist.VM, error)

Get provides a mock function with given fields: ctx, page, limit

type VSphere

type VSphere struct {
	mock.Mock
}

VSphere is an autogenerated mock type for the API type

func (*VSphere) Info

func (_m *VSphere) Info() info.API

Info provides a mock function with given fields:

func (*VSphere) PowerControl

func (_m *VSphere) PowerControl() powercontrol.API

PowerControl provides a mock function with given fields:

func (*VSphere) Provisioning

func (_m *VSphere) Provisioning() provisioning.API

Provisioning provides a mock function with given fields:

func (*VSphere) Search

func (_m *VSphere) Search() search.API

Search provides a mock function with given fields:

func (*VSphere) VMList

func (_m *VSphere) VMList() vmlist.API

VMList provides a mock function with given fields:

Jump to

Keyboard shortcuts

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