mocks

package
v0.0.0-...-ceada53 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	mock.Mock
}

ACL is an autogenerated mock type for the ACL type

func NewACL

func NewACL(t mockConstructorTestingTNewACL) *ACL

NewACL creates a new instance of ACL. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ACL) Create

func (_m *ACL) Create(ctx context.Context, data *acl.Input) (string, error)

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

func (*ACL) Delete

func (_m *ACL) Delete(ctx context.Context, aclID string) error

Delete provides a mock function with given fields: ctx, aclID

func (*ACL) Get

func (_m *ACL) Get(ctx context.Context, aclID string) (*acl.ACL, error)

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

func (*ACL) GetByName

func (_m *ACL) GetByName(ctx context.Context, aclName string) (*acl.ACL, error)

GetByName provides a mock function with given fields: ctx, aclName

func (*ACL) List

func (_m *ACL) List(ctx context.Context) ([]*acl.ACL, error)

List provides a mock function with given fields: ctx

func (*ACL) Update

func (_m *ACL) Update(ctx context.Context, aclID string, data *acl.Input) (*common.UpdateResponse, error)

Update provides a mock function with given fields: ctx, aclID, data

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) ACL

func (_m *Client) ACL() vmanage.ACL

ACL provides a mock function with given fields:

func (*Client) Connection

func (_m *Client) Connection() vmanage.Connection

Connection provides a mock function with given fields:

func (*Client) Device

func (_m *Client) Device() vmanage.Device

Device provides a mock function with given fields:

func (*Client) Feature

func (_m *Client) Feature() vmanage.Feature

Feature provides a mock function with given fields:

func (*Client) GetToken

func (_m *Client) GetToken() string

GetToken provides a mock function with given fields:

func (*Client) Login

func (_m *Client) Login(ctx context.Context, username string, password string) error

Login provides a mock function with given fields: ctx, username, password

func (*Client) Policy

func (_m *Client) Policy() vmanage.Policy

Policy provides a mock function with given fields:

func (*Client) SetToken

func (_m *Client) SetToken(token string)

SetToken provides a mock function with given fields: token

func (*Client) Site

func (_m *Client) Site() vmanage.Site

Site provides a mock function with given fields:

func (*Client) Status

func (_m *Client) Status() vmanage.Status

Status provides a mock function with given fields:

func (*Client) VPC

func (_m *Client) VPC() vmanage.VPC

VPC provides a mock function with given fields:

func (*Client) VPN

func (_m *Client) VPN() vmanage.VPN

VPN provides a mock function with given fields:

type Connection

type Connection struct {
	mock.Mock
}

Connection is an autogenerated mock type for the Connection type

func NewConnection

func NewConnection(t mockConstructorTestingTNewConnection) *Connection

NewConnection creates a new instance of Connection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Connection) Create

func (_m *Connection) Create(ctx context.Context, parameters *connection.Parameters) (string, error)

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

func (*Connection) GetStatus

func (_m *Connection) GetStatus(ctx context.Context, cloudType string) ([]*connection.Status, error)

GetStatus provides a mock function with given fields: ctx, cloudType

type Device

type Device struct {
	mock.Mock
}

Device is an autogenerated mock type for the Device type

func NewDevice

func NewDevice(t mockConstructorTestingTNewDevice) *Device

NewDevice creates a new instance of Device. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Device) Get

func (_m *Device) Get(ctx context.Context, templateID string) (*device.Template, error)

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

func (*Device) GetAttachedDevices

func (_m *Device) GetAttachedDevices(ctx context.Context, templateID string) ([]*device.AttachedDevice, error)

GetAttachedDevices provides a mock function with given fields: ctx, templateID

func (*Device) GetByName

func (_m *Device) GetByName(ctx context.Context, templateName string) (*device.Template, error)

GetByName provides a mock function with given fields: ctx, templateName

func (*Device) GetFromSite

func (_m *Device) GetFromSite(ctx context.Context, siteID string) (*device.Template, error)

GetFromSite provides a mock function with given fields: ctx, siteID

func (*Device) List

func (_m *Device) List(ctx context.Context) ([]*device.Template, error)

List provides a mock function with given fields: ctx

func (*Device) PushConfiguration

func (_m *Device) PushConfiguration(ctx context.Context, attachedDevices []*device.AttachedDevice, templateID string) (string, error)

PushConfiguration provides a mock function with given fields: ctx, attachedDevices, templateID

func (*Device) Update

func (_m *Device) Update(ctx context.Context, template *device.Template) (*device.UpdateResponse, error)

Update provides a mock function with given fields: ctx, template

type Feature

type Feature struct {
	mock.Mock
}

Feature is an autogenerated mock type for the Feature type

func NewFeature

func NewFeature(t mockConstructorTestingTNewFeature) *Feature

NewFeature creates a new instance of Feature. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Feature) Create

func (_m *Feature) Create(ctx context.Context, template *feature.TemplateInput) (string, error)

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

func (*Feature) Get

func (_m *Feature) Get(ctx context.Context, templateID string) (*feature.Template, error)

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

func (*Feature) List

func (_m *Feature) List(ctx context.Context) ([]*feature.TemplateInput, error)

List provides a mock function with given fields: ctx

func (*Feature) ListByType

func (_m *Feature) ListByType(ctx context.Context, templateType string) ([]*feature.TemplateInput, error)

ListByType provides a mock function with given fields: ctx, templateType

func (*Feature) Update

func (_m *Feature) Update(ctx context.Context, templateID string, template *feature.Template) (*common.UpdateResponse, error)

Update provides a mock function with given fields: ctx, templateID, template

type Policy

type Policy struct {
	mock.Mock
}

Policy is an autogenerated mock type for the Policy type

func NewPolicy

func NewPolicy(t mockConstructorTestingTNewPolicy) *Policy

NewPolicy creates a new instance of Policy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Policy) Create

func (_m *Policy) Create(ctx context.Context, data *policy.Input) (string, error)

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

func (*Policy) Delete

func (_m *Policy) Delete(ctx context.Context, policyID string) error

Delete provides a mock function with given fields: ctx, policyID

func (*Policy) Get

func (_m *Policy) Get(ctx context.Context, policyID string) (*policy.Input, error)

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

func (*Policy) List

func (_m *Policy) List(ctx context.Context) ([]*policy.Policy, error)

List provides a mock function with given fields: ctx

type Site

type Site struct {
	mock.Mock
}

Site is an autogenerated mock type for the Site type

func NewSite

func NewSite(t mockConstructorTestingTNewSite) *Site

NewSite creates a new instance of Site. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Site) Get

func (_m *Site) Get(ctx context.Context, siteID string) (*site.Site, error)

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

func (*Site) List

func (_m *Site) List(ctx context.Context) ([]*site.Site, error)

List provides a mock function with given fields: ctx

type Status

type Status struct {
	mock.Mock
}

Status is an autogenerated mock type for the Status type

func NewStatus

func NewStatus(t mockConstructorTestingTNewStatus) *Status

NewStatus creates a new instance of Status. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Status) ActionStatusLongPoll

func (_m *Status) ActionStatusLongPoll(ctx context.Context, id string) error

ActionStatusLongPoll provides a mock function with given fields: ctx, id

type VPC

type VPC struct {
	mock.Mock
}

VPC is an autogenerated mock type for the VPC type

func NewVPC

func NewVPC(t mockConstructorTestingTNewVPC) *VPC

NewVPC creates a new instance of VPC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VPC) CreateVPCTag

func (_m *VPC) CreateVPCTag(ctx context.Context, tagName string, _a2 *vpc.VPC) (string, error)

CreateVPCTag provides a mock function with given fields: ctx, tagName, _a2

func (*VPC) DeleteVPCTag

func (_m *VPC) DeleteVPCTag(ctx context.Context, cloudType string, tag string) (string, error)

DeleteVPCTag provides a mock function with given fields: ctx, cloudType, tag

func (*VPC) Get

func (_m *VPC) Get(ctx context.Context, cloudType string, vpcID string) (*vpc.VPC, error)

Get provides a mock function with given fields: ctx, cloudType, vpcID

func (*VPC) GetByName

func (_m *VPC) GetByName(ctx context.Context, cloudType string, vpcName string) (*vpc.VPC, error)

GetByName provides a mock function with given fields: ctx, cloudType, vpcName

func (*VPC) List

func (_m *VPC) List(ctx context.Context, cloudType string) ([]*vpc.VPC, error)

List provides a mock function with given fields: ctx, cloudType

func (*VPC) ListAll

func (_m *VPC) ListAll(ctx context.Context) ([]*vpc.VPC, error)

ListAll provides a mock function with given fields: ctx

func (*VPC) ListWithParameters

func (_m *VPC) ListWithParameters(ctx context.Context, parameters *vpc.ListVPCParameters) ([]*vpc.VPC, error)

ListWithParameters provides a mock function with given fields: ctx, parameters

func (*VPC) ListWithTag

func (_m *VPC) ListWithTag(ctx context.Context, cloudType string) ([]*vpc.VPC, error)

ListWithTag provides a mock function with given fields: ctx, cloudType

func (*VPC) ListWithTagWithParameters

func (_m *VPC) ListWithTagWithParameters(ctx context.Context, parameters *vpc.ListVPCTagParameters) ([]*vpc.VPC, error)

ListWithTagWithParameters provides a mock function with given fields: ctx, parameters

type VPN

type VPN struct {
	mock.Mock
}

VPN is an autogenerated mock type for the VPN type

func NewVPN

func NewVPN(t mockConstructorTestingTNewVPN) *VPN

NewVPN creates a new instance of VPN. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VPN) List

func (_m *VPN) List(ctx context.Context, cloudType string) ([]*vpn.Data, error)

List provides a mock function with given fields: ctx, cloudType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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