fake

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: BSD-3-Clause Imports: 6 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
	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() ([]rpaas.Plan, 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) (*clientTypes.Autoscale, error)
	FakeCreateAutoscale          func(instanceName string, autoscale *clientTypes.Autoscale) error
	FakeUpdateAutoscale          func(instanceName string, autoscale *clientTypes.Autoscale) error
	FakeDeleteAutoscale          func(name string) error
	FakeGetInstanceInfo          func(instanceName string) (*clientTypes.InstanceInfo, error)
	FakeExec                     func(instanceName string, args rpaas.ExecArgs) error
	FakeLog                      func(instanceName string, args rpaas.LogArgs) error
	FakeAddUpstream              func(instanceName string, upstream v1alpha1.AllowedUpstream) error
	FakeGetUpstreams             func(instanceName string) ([]v1alpha1.AllowedUpstream, error)
	FakeDeleteUpstream           func(instanceName string, upstream v1alpha1.AllowedUpstream) error
	FakeUpdateCertManagerRequest func(instanceName string, in clientTypes.CertManager) error
	FakeDeleteCertManagerRequest func(instanceName, issuer string) error
}

func (*RpaasManager) AddUpstream added in v0.13.0

func (m *RpaasManager) AddUpstream(ctx context.Context, instanceName string, upstream v1alpha1.AllowedUpstream) 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 (m *RpaasManager) CreateAutoscale(ctx context.Context, instanceName string, autoscale *clientTypes.Autoscale) 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) 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) DeleteCertManagerRequest added in v0.15.0

func (m *RpaasManager) DeleteCertManagerRequest(ctx context.Context, instance, issuer 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 (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) DeleteUpstream added in v0.13.0

func (m *RpaasManager) DeleteUpstream(ctx context.Context, instance string, upstream v1alpha1.AllowedUpstream) error

func (*RpaasManager) Exec added in v0.9.3

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

func (*RpaasManager) GetAutoscale added in v0.6.0

func (m *RpaasManager) GetAutoscale(ctx context.Context, instanceName string) (*clientTypes.Autoscale, error)

func (*RpaasManager) GetCertificates added in v0.6.3

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

func (*RpaasManager) GetExtraFiles

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

func (*RpaasManager) GetFlavors added in v0.5.0

func (m *RpaasManager) GetFlavors(ctx context.Context) ([]rpaas.Flavor, 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) GetInstanceInfo added in v0.7.4

func (m *RpaasManager) GetInstanceInfo(ctx context.Context, instanceName string) (*clientTypes.InstanceInfo, error)

func (*RpaasManager) GetInstanceStatus

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

func (*RpaasManager) GetPlans

func (m *RpaasManager) GetPlans(ctx context.Context) ([]rpaas.Plan, error)

func (*RpaasManager) GetRoutes

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

func (*RpaasManager) GetUpstreams added in v0.13.0

func (m *RpaasManager) GetUpstreams(ctx context.Context, instanceName string) ([]v1alpha1.AllowedUpstream, error)

func (*RpaasManager) ListBlocks

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

func (*RpaasManager) Log added in v0.21.0

func (m *RpaasManager) Log(ctx context.Context, instanceName string, args rpaas.LogArgs) 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, appName string) error

func (*RpaasManager) UpdateAutoscale added in v0.6.0

func (m *RpaasManager) UpdateAutoscale(ctx context.Context, instanceName string, autoscale *clientTypes.Autoscale) error

func (*RpaasManager) UpdateBlock

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

func (*RpaasManager) UpdateCertManagerRequest added in v0.15.0

func (m *RpaasManager) UpdateCertManagerRequest(ctx context.Context, instance string, in clientTypes.CertManager) 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