Documentation ¶
Index ¶
- type RpaasManager
- func (m *RpaasManager) BindApp(ctx context.Context, instanceName string, args rpaas.BindAppArgs) error
- func (m *RpaasManager) CreateExtraFiles(ctx context.Context, instanceName string, files ...rpaas.File) error
- func (m *RpaasManager) CreateInstance(ctx context.Context, args rpaas.CreateArgs) error
- func (m *RpaasManager) DeleteBlock(ctx context.Context, instanceName, blockName string) error
- func (m *RpaasManager) DeleteExtraFiles(ctx context.Context, instanceName string, filenames ...string) error
- func (m *RpaasManager) DeleteInstance(ctx context.Context, name string) error
- func (m *RpaasManager) DeleteRoute(ctx context.Context, instanceName, path string) error
- func (m *RpaasManager) GetExtraFiles(ctx context.Context, instanceName string) ([]rpaas.File, error)
- func (m *RpaasManager) GetInstance(ctx context.Context, name string) (*v1alpha1.RpaasInstance, error)
- func (m *RpaasManager) GetInstanceAddress(ctx context.Context, name string) (string, error)
- func (m *RpaasManager) GetInstanceStatus(ctx context.Context, name string) (rpaas.PodStatusMap, error)
- func (m *RpaasManager) GetPlans(ctx context.Context) ([]v1alpha1.RpaasPlan, error)
- func (m *RpaasManager) GetRoutes(ctx context.Context, instanceName string) ([]rpaas.Route, error)
- func (m *RpaasManager) ListBlocks(ctx context.Context, instanceName string) ([]rpaas.ConfigurationBlock, error)
- func (m *RpaasManager) PurgeCache(ctx context.Context, instanceName string, args rpaas.PurgeCacheArgs) (int, error)
- func (m *RpaasManager) Scale(ctx context.Context, instanceName string, replicas int32) error
- func (m *RpaasManager) UnbindApp(ctx context.Context, instanceName string) error
- func (m *RpaasManager) UpdateBlock(ctx context.Context, instanceName string, block rpaas.ConfigurationBlock) error
- func (m *RpaasManager) UpdateCertificate(ctx context.Context, instance, name string, c tls.Certificate) error
- func (m *RpaasManager) UpdateExtraFiles(ctx context.Context, instanceName string, files ...rpaas.File) error
- func (m *RpaasManager) UpdateInstance(ctx context.Context, name string, args rpaas.UpdateInstanceArgs) error
- func (m *RpaasManager) UpdateRoute(ctx context.Context, instanceName string, route rpaas.Route) error
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 (*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 (*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 (*RpaasManager) GetInstance ¶
func (m *RpaasManager) GetInstance(ctx context.Context, name string) (*v1alpha1.RpaasInstance, error)
func (*RpaasManager) GetInstanceAddress ¶
func (*RpaasManager) GetInstanceStatus ¶
func (m *RpaasManager) GetInstanceStatus(ctx context.Context, name string) (rpaas.PodStatusMap, 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) 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 (*RpaasManager) UpdateInstance ¶ added in v0.3.0
func (m *RpaasManager) UpdateInstance(ctx context.Context, name string, args rpaas.UpdateInstanceArgs) error
func (*RpaasManager) UpdateRoute ¶
Click to show internal directories.
Click to hide internal directories.