Documentation ¶
Index ¶
- type ACL
- func (_m *ACL) Create(ctx context.Context, data *acl.Input) (string, error)
- func (_m *ACL) Delete(ctx context.Context, aclID string) error
- func (_m *ACL) Get(ctx context.Context, aclID string) (*acl.ACL, error)
- func (_m *ACL) GetByName(ctx context.Context, aclName string) (*acl.ACL, error)
- func (_m *ACL) List(ctx context.Context) ([]*acl.ACL, error)
- func (_m *ACL) Update(ctx context.Context, aclID string, data *acl.Input) (*common.UpdateResponse, error)
- type Client
- func (_m *Client) ACL() vmanage.ACL
- func (_m *Client) Connection() vmanage.Connection
- func (_m *Client) Device() vmanage.Device
- func (_m *Client) Feature() vmanage.Feature
- func (_m *Client) GetToken() string
- func (_m *Client) Login(ctx context.Context, username string, password string) error
- func (_m *Client) Policy() vmanage.Policy
- func (_m *Client) SetToken(token string)
- func (_m *Client) Site() vmanage.Site
- func (_m *Client) Status() vmanage.Status
- func (_m *Client) VPC() vmanage.VPC
- func (_m *Client) VPN() vmanage.VPN
- type Connection
- type Device
- func (_m *Device) Get(ctx context.Context, templateID string) (*device.Template, error)
- func (_m *Device) GetAttachedDevices(ctx context.Context, templateID string) ([]*device.AttachedDevice, error)
- func (_m *Device) GetByName(ctx context.Context, templateName string) (*device.Template, error)
- func (_m *Device) GetFromSite(ctx context.Context, siteID string) (*device.Template, error)
- func (_m *Device) List(ctx context.Context) ([]*device.Template, error)
- func (_m *Device) PushConfiguration(ctx context.Context, attachedDevices []*device.AttachedDevice, ...) (string, error)
- func (_m *Device) Update(ctx context.Context, template *device.Template) (*device.UpdateResponse, error)
- type Feature
- func (_m *Feature) Create(ctx context.Context, template *feature.TemplateInput) (string, error)
- func (_m *Feature) Get(ctx context.Context, templateID string) (*feature.Template, error)
- func (_m *Feature) List(ctx context.Context) ([]*feature.TemplateInput, error)
- func (_m *Feature) ListByType(ctx context.Context, templateType string) ([]*feature.TemplateInput, error)
- func (_m *Feature) Update(ctx context.Context, templateID string, template *feature.Template) (*common.UpdateResponse, error)
- type Policy
- func (_m *Policy) Create(ctx context.Context, data *policy.Input) (string, error)
- func (_m *Policy) Delete(ctx context.Context, policyID string) error
- func (_m *Policy) Get(ctx context.Context, policyID string) (*policy.Input, error)
- func (_m *Policy) List(ctx context.Context) ([]*policy.Policy, error)
- type Site
- type Status
- type VPC
- func (_m *VPC) CreateVPCTag(ctx context.Context, tagName string, _a2 *vpc.VPC) (string, error)
- func (_m *VPC) DeleteVPCTag(ctx context.Context, cloudType string, tag string) (string, error)
- func (_m *VPC) Get(ctx context.Context, cloudType string, vpcID string) (*vpc.VPC, error)
- func (_m *VPC) GetByName(ctx context.Context, cloudType string, vpcName string) (*vpc.VPC, error)
- func (_m *VPC) List(ctx context.Context, cloudType string) ([]*vpc.VPC, error)
- func (_m *VPC) ListAll(ctx context.Context) ([]*vpc.VPC, error)
- func (_m *VPC) ListWithParameters(ctx context.Context, parameters *vpc.ListVPCParameters) ([]*vpc.VPC, error)
- func (_m *VPC) ListWithTag(ctx context.Context, cloudType string) ([]*vpc.VPC, error)
- func (_m *VPC) ListWithTagWithParameters(ctx context.Context, parameters *vpc.ListVPCTagParameters) ([]*vpc.VPC, error)
- type VPN
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
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.
type Client ¶
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) Connection ¶
func (_m *Client) Connection() vmanage.Connection
Connection provides a mock function with given fields:
type Connection ¶
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 ¶
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) 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) GetFromSite ¶
GetFromSite provides a mock function with given fields: ctx, siteID
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
type Feature ¶
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) ListByType ¶
func (_m *Feature) ListByType(ctx context.Context, templateType string) ([]*feature.TemplateInput, error)
ListByType provides a mock function with given fields: ctx, templateType
type Policy ¶
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.
type Site ¶
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.
type Status ¶
Status is an autogenerated mock type for the Status type
type VPC ¶
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 ¶
CreateVPCTag provides a mock function with given fields: ctx, tagName, _a2
func (*VPC) DeleteVPCTag ¶
DeleteVPCTag provides a mock function with given fields: ctx, cloudType, tag
func (*VPC) GetByName ¶
GetByName provides a mock function with given fields: ctx, cloudType, vpcName
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 ¶
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