Documentation ¶
Index ¶
- type RpaasManager
- func (m *RpaasManager) BindApp(ctx context.Context, instanceName string, args rpaas.BindAppArgs) error
- func (m *RpaasManager) CreateAutoscale(ctx context.Context, instanceName string, autoscale *rpaas.Autoscale) 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) DeleteAutoscale(ctx context.Context, instanceName string) error
- func (m *RpaasManager) DeleteBlock(ctx context.Context, instanceName, blockName string) error
- func (m *RpaasManager) DeleteCertificate(ctx context.Context, instance, name 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) GetAutoscale(ctx context.Context, instanceName string) (*rpaas.Autoscale, error)
- func (m *RpaasManager) GetCertificates(ctx context.Context, instanceName string) ([]rpaas.CertificateData, error)
- func (m *RpaasManager) GetExtraFiles(ctx context.Context, instanceName string) ([]rpaas.File, error)
- func (m *RpaasManager) GetFlavors(ctx context.Context) ([]rpaas.Flavor, 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) (*nginxv1alpha1.Nginx, 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, appName string) error
- func (m *RpaasManager) UpdateAutoscale(ctx context.Context, instanceName string, autoscale *rpaas.Autoscale) 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 FakeGetCertificates func(instanceName string) ([]rpaas.CertificateData, error) FakeDeleteCertificate func(instance, name string) 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) (*nginxv1alpha1.Nginx, rpaas.PodStatusMap, error) FakeScale func(instanceName string, replicas int32) error FakeGetPlans func() ([]v1alpha1.RpaasPlan, error) FakeGetFlavors func() ([]rpaas.Flavor, 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, appName 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 FakeGetAutoscale func(name string) (*rpaas.Autoscale, error) FakeCreateAutoscale func(instanceName string, autoscale *rpaas.Autoscale) error FakeUpdateAutoscale func(instanceName string, autoscale *rpaas.Autoscale) error FakeDeleteAutoscale func(name string) error }
func (*RpaasManager) BindApp ¶
func (m *RpaasManager) BindApp(ctx context.Context, instanceName string, args rpaas.BindAppArgs) error
func (*RpaasManager) CreateAutoscale ¶ added in v0.6.0
func (*RpaasManager) CreateExtraFiles ¶
func (*RpaasManager) CreateInstance ¶
func (m *RpaasManager) CreateInstance(ctx context.Context, args rpaas.CreateArgs) error
func (*RpaasManager) DeleteAutoscale ¶ added in v0.6.0
func (m *RpaasManager) DeleteAutoscale(ctx context.Context, instanceName string) error
func (*RpaasManager) DeleteBlock ¶
func (m *RpaasManager) DeleteBlock(ctx context.Context, instanceName, blockName string) error
func (*RpaasManager) DeleteCertificate ¶ added in v0.6.3
func (m *RpaasManager) DeleteCertificate(ctx context.Context, instance, name 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) GetAutoscale ¶ added in v0.6.0
func (*RpaasManager) GetCertificates ¶ added in v0.6.3
func (m *RpaasManager) GetCertificates(ctx context.Context, instanceName string) ([]rpaas.CertificateData, error)
func (*RpaasManager) GetExtraFiles ¶
func (*RpaasManager) GetFlavors ¶ added in v0.5.0
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) (*nginxv1alpha1.Nginx, 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, appName string) error
func (*RpaasManager) UpdateAutoscale ¶ added in v0.6.0
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.