fake

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 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 RpaasManager

type RpaasManager struct {
	FakeUpdateCertificate func(instance, name string, cert tls.Certificate) error
	FakeCreateInstance    func(args rpaas.CreateArgs) error
	FakeDeleteInstance    func(instanceName string) error
	FakeUpdateInstance    func(instanceName string, args rpaas.UpdateInstanceArgs) error
	FakeGetInstance       func(instanceName string) (*v1alpha1.RpaasInstance, error)
	FakeDeleteBlock       func(instanceName, blockName string) error
	FakeListBlocks        func(instanceName string) ([]rpaas.ConfigurationBlock, error)
	FakeUpdateBlock       func(instanceName string, block rpaas.ConfigurationBlock) error
	FakeInstanceAddress   func(name string) (string, error)
	FakeInstanceStatus    func(name string) (rpaas.PodStatusMap, error)
	FakeScale             func(instanceName string, replicas int32) error
	FakeGetPlans          func() ([]v1alpha1.RpaasPlan, error)
	FakeCreateExtraFiles  func(instanceName string, files ...rpaas.File) error
	FakeDeleteExtraFiles  func(instanceName string, filenames ...string) error
	FakeGetExtraFiles     func(instanceName string) ([]rpaas.File, error)
	FakeUpdateExtraFiles  func(instanceName string, files ...rpaas.File) error
	FakeBindApp           func(instanceName string, args rpaas.BindAppArgs) error
	FakeUnbindApp         func(instanceName string) error
	FakePurgeCache        func(instanceName string, args rpaas.PurgeCacheArgs) (int, error)
	FakeDeleteRoute       func(instanceName, path string) error
	FakeGetRoutes         func(instanceName string) ([]rpaas.Route, error)
	FakeUpdateRoute       func(instanceName string, route rpaas.Route) error
}

func (*RpaasManager) BindApp

func (m *RpaasManager) BindApp(ctx context.Context, instanceName string, args rpaas.BindAppArgs) error

func (*RpaasManager) CreateExtraFiles

func (m *RpaasManager) CreateExtraFiles(ctx context.Context, instanceName string, files ...rpaas.File) error

func (*RpaasManager) CreateInstance

func (m *RpaasManager) CreateInstance(ctx context.Context, args rpaas.CreateArgs) error

func (*RpaasManager) DeleteBlock

func (m *RpaasManager) DeleteBlock(ctx context.Context, instanceName, blockName string) error

func (*RpaasManager) DeleteExtraFiles

func (m *RpaasManager) DeleteExtraFiles(ctx context.Context, instanceName string, filenames ...string) error

func (*RpaasManager) DeleteInstance

func (m *RpaasManager) DeleteInstance(ctx context.Context, name string) error

func (*RpaasManager) DeleteRoute

func (m *RpaasManager) DeleteRoute(ctx context.Context, instanceName, path string) error

func (*RpaasManager) GetExtraFiles

func (m *RpaasManager) GetExtraFiles(ctx context.Context, instanceName string) ([]rpaas.File, error)

func (*RpaasManager) GetInstance

func (m *RpaasManager) GetInstance(ctx context.Context, name string) (*v1alpha1.RpaasInstance, error)

func (*RpaasManager) GetInstanceAddress

func (m *RpaasManager) GetInstanceAddress(ctx context.Context, name string) (string, error)

func (*RpaasManager) GetInstanceStatus

func (m *RpaasManager) GetInstanceStatus(ctx context.Context, name string) (rpaas.PodStatusMap, error)

func (*RpaasManager) GetPlans

func (m *RpaasManager) GetPlans(ctx context.Context) ([]v1alpha1.RpaasPlan, error)

func (*RpaasManager) GetRoutes

func (m *RpaasManager) GetRoutes(ctx context.Context, instanceName string) ([]rpaas.Route, error)

func (*RpaasManager) ListBlocks

func (m *RpaasManager) ListBlocks(ctx context.Context, instanceName string) ([]rpaas.ConfigurationBlock, error)

func (*RpaasManager) PurgeCache

func (m *RpaasManager) PurgeCache(ctx context.Context, instanceName string, args rpaas.PurgeCacheArgs) (int, error)

func (*RpaasManager) Scale

func (m *RpaasManager) Scale(ctx context.Context, instanceName string, replicas int32) error

func (*RpaasManager) UnbindApp

func (m *RpaasManager) UnbindApp(ctx context.Context, instanceName string) error

func (*RpaasManager) UpdateBlock

func (m *RpaasManager) UpdateBlock(ctx context.Context, instanceName string, block rpaas.ConfigurationBlock) error

func (*RpaasManager) UpdateCertificate

func (m *RpaasManager) UpdateCertificate(ctx context.Context, instance, name string, c tls.Certificate) error

func (*RpaasManager) UpdateExtraFiles

func (m *RpaasManager) UpdateExtraFiles(ctx context.Context, instanceName string, files ...rpaas.File) error

func (*RpaasManager) UpdateInstance added in v0.3.0

func (m *RpaasManager) UpdateInstance(ctx context.Context, name string, args rpaas.UpdateInstanceArgs) error

func (*RpaasManager) UpdateRoute

func (m *RpaasManager) UpdateRoute(ctx context.Context, instanceName string, route rpaas.Route) error

Jump to

Keyboard shortcuts

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