Documentation ¶
Index ¶
- type FakeClient
- func (f *FakeClient) DeleteBlock(ctx context.Context, args client.DeleteBlockArgs) error
- func (f *FakeClient) DeleteRoute(ctx context.Context, args client.DeleteRouteArgs) error
- func (f *FakeClient) Exec(ctx context.Context, args client.ExecArgs) (*websocket.Conn, error)
- func (f *FakeClient) GetAutoscale(ctx context.Context, args client.GetAutoscaleArgs) (*types.Autoscale, error)
- func (f *FakeClient) GetFlavors(ctx context.Context, instance string) ([]types.Flavor, error)
- func (f *FakeClient) GetPlans(ctx context.Context, instance string) ([]types.Plan, error)
- func (f *FakeClient) Info(ctx context.Context, args client.InfoArgs) (*types.InstanceInfo, error)
- func (f *FakeClient) ListBlocks(ctx context.Context, args client.ListBlocksArgs) ([]types.Block, error)
- func (f *FakeClient) ListRoutes(ctx context.Context, args client.ListRoutesArgs) ([]types.Route, error)
- func (f *FakeClient) RemoveAutoscale(ctx context.Context, args client.RemoveAutoscaleArgs) error
- func (f *FakeClient) Scale(ctx context.Context, args client.ScaleArgs) error
- func (f *FakeClient) UpdateAutoscale(ctx context.Context, args client.UpdateAutoscaleArgs) error
- func (f *FakeClient) UpdateBlock(ctx context.Context, args client.UpdateBlockArgs) error
- func (f *FakeClient) UpdateCertificate(ctx context.Context, args client.UpdateCertificateArgs) error
- func (f *FakeClient) UpdateRoute(ctx context.Context, args client.UpdateRouteArgs) error
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, error) FakeGetFlavors func(instance string) ([]types.Flavor, error) FakeScale func(args client.ScaleArgs) error FakeUpdateCertificate func(args client.UpdateCertificateArgs) error FakeUpdateBlock func(args client.UpdateBlockArgs) error FakeDeleteBlock func(args client.DeleteBlockArgs) error FakeListBlocks func(args client.ListBlocksArgs) ([]types.Block, error) FakeDeleteRoute func(args client.DeleteRouteArgs) error FakeListRoutes func(args client.ListRoutesArgs) ([]types.Route, error) FakeUpdateRoute func(args client.UpdateRouteArgs) error FakeInfo func(args client.InfoArgs) (*types.InstanceInfo, error) FakeGetAutoscale func(args client.GetAutoscaleArgs) (*types.Autoscale, error) FakeUpdateAutoscale func(args client.UpdateAutoscaleArgs) error FakeRemoveAutoscale func(args client.RemoveAutoscaleArgs) error FakeExec func(ctx context.Context, args client.ExecArgs) (*websocket.Conn, error) }
func (*FakeClient) DeleteBlock ¶
func (f *FakeClient) DeleteBlock(ctx context.Context, args client.DeleteBlockArgs) error
func (*FakeClient) DeleteRoute ¶
func (f *FakeClient) DeleteRoute(ctx context.Context, args client.DeleteRouteArgs) error
func (*FakeClient) GetAutoscale ¶ added in v0.8.1
func (f *FakeClient) GetAutoscale(ctx context.Context, args client.GetAutoscaleArgs) (*types.Autoscale, error)
func (*FakeClient) GetFlavors ¶
func (*FakeClient) Info ¶ added in v0.7.4
func (f *FakeClient) Info(ctx context.Context, args client.InfoArgs) (*types.InstanceInfo, error)
func (*FakeClient) ListBlocks ¶
func (f *FakeClient) ListBlocks(ctx context.Context, args client.ListBlocksArgs) ([]types.Block, error)
func (*FakeClient) ListRoutes ¶
func (f *FakeClient) ListRoutes(ctx context.Context, args client.ListRoutesArgs) ([]types.Route, error)
func (*FakeClient) RemoveAutoscale ¶ added in v0.8.1
func (f *FakeClient) RemoveAutoscale(ctx context.Context, args client.RemoveAutoscaleArgs) error
func (*FakeClient) UpdateAutoscale ¶ added in v0.8.1
func (f *FakeClient) UpdateAutoscale(ctx context.Context, args client.UpdateAutoscaleArgs) error
func (*FakeClient) UpdateBlock ¶
func (f *FakeClient) UpdateBlock(ctx context.Context, args client.UpdateBlockArgs) error
func (*FakeClient) UpdateCertificate ¶
func (f *FakeClient) UpdateCertificate(ctx context.Context, args client.UpdateCertificateArgs) error
func (*FakeClient) UpdateRoute ¶
func (f *FakeClient) UpdateRoute(ctx context.Context, args client.UpdateRouteArgs) error
Click to show internal directories.
Click to hide internal directories.