fake

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	FakeGetPlans          func(instance string) ([]types.Plan, *http.Response, error)
	FakeGetFlavors        func(instance string) ([]types.Flavor, *http.Response, error)
	FakeScale             func(args client.ScaleArgs) (*http.Response, error)
	FakeUpdateCertificate func(args client.UpdateCertificateArgs) (*http.Response, error)
	FakeUpdateBlock       func(args client.UpdateBlockArgs) (*http.Response, error)
	FakeDeleteBlock       func(args client.DeleteBlockArgs) (*http.Response, error)
	FakeListBlocks        func(args client.ListBlocksArgs) ([]types.Block, *http.Response, error)
	FakeDeleteRoute       func(args client.DeleteRouteArgs) (*http.Response, error)
	FakeListRoutes        func(args client.ListRoutesArgs) ([]types.Route, *http.Response, error)
	FakeUpdateRoute       func(args client.UpdateRouteArgs) (*http.Response, error)
	FakeInfo              func(args client.InfoArgs) (*types.InstanceInfo, *http.Response, error)
	FakeGetAutoscale      func(args client.GetAutoscaleArgs) (*types.Autoscale, *http.Response, error)
	FakeUpdateAutoscale   func(args client.UpdateAutoscaleArgs) (*http.Response, error)
	FakeRemoveAutoscale   func(args client.RemoveAutoscaleArgs) (*http.Response, error)
}

func (*FakeClient) DeleteBlock

func (f *FakeClient) DeleteBlock(ctx context.Context, args client.DeleteBlockArgs) (*http.Response, error)

func (*FakeClient) DeleteRoute

func (f *FakeClient) DeleteRoute(ctx context.Context, args client.DeleteRouteArgs) (*http.Response, error)

func (*FakeClient) GetAutoscale added in v0.8.1

func (*FakeClient) GetFlavors

func (f *FakeClient) GetFlavors(ctx context.Context, instance string) ([]types.Flavor, *http.Response, error)

func (*FakeClient) GetPlans

func (f *FakeClient) GetPlans(ctx context.Context, instance string) ([]types.Plan, *http.Response, error)

func (*FakeClient) Info added in v0.7.4

func (*FakeClient) ListBlocks

func (f *FakeClient) ListBlocks(ctx context.Context, args client.ListBlocksArgs) ([]types.Block, *http.Response, error)

func (*FakeClient) ListRoutes

func (f *FakeClient) ListRoutes(ctx context.Context, args client.ListRoutesArgs) ([]types.Route, *http.Response, error)

func (*FakeClient) RemoveAutoscale added in v0.8.1

func (f *FakeClient) RemoveAutoscale(ctx context.Context, args client.RemoveAutoscaleArgs) (*http.Response, error)

func (*FakeClient) Scale

func (f *FakeClient) Scale(ctx context.Context, args client.ScaleArgs) (*http.Response, error)

func (*FakeClient) UpdateAutoscale added in v0.8.1

func (f *FakeClient) UpdateAutoscale(ctx context.Context, args client.UpdateAutoscaleArgs) (*http.Response, error)

func (*FakeClient) UpdateBlock

func (f *FakeClient) UpdateBlock(ctx context.Context, args client.UpdateBlockArgs) (*http.Response, error)

func (*FakeClient) UpdateCertificate

func (f *FakeClient) UpdateCertificate(ctx context.Context, args client.UpdateCertificateArgs) (*http.Response, error)

func (*FakeClient) UpdateRoute

func (f *FakeClient) UpdateRoute(ctx context.Context, args client.UpdateRouteArgs) (*http.Response, error)

Jump to

Keyboard shortcuts

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