sdk

package
v0.0.0-...-5f520ae Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t NewInterfaceT) *Interface

NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Interface) AppCancel

func (_m *Interface) AppCancel(name string) error

AppCancel provides a mock function with given fields: name

func (*Interface) AppCreate

func (_m *Interface) AppCreate(name string, opts structs.AppCreateOptions) (*structs.App, error)

AppCreate provides a mock function with given fields: name, opts

func (*Interface) AppDelete

func (_m *Interface) AppDelete(name string) error

AppDelete provides a mock function with given fields: name

func (*Interface) AppGet

func (_m *Interface) AppGet(name string) (*structs.App, error)

AppGet provides a mock function with given fields: name

func (*Interface) AppList

func (_m *Interface) AppList() (structs.Apps, error)

AppList provides a mock function with given fields:

func (*Interface) AppLogs

func (_m *Interface) AppLogs(name string, opts structs.LogsOptions) (io.ReadCloser, error)

AppLogs provides a mock function with given fields: name, opts

func (*Interface) AppMetrics

func (_m *Interface) AppMetrics(name string, opts structs.MetricsOptions) (structs.Metrics, error)

AppMetrics provides a mock function with given fields: name, opts

func (*Interface) AppParametersGet

func (_m *Interface) AppParametersGet(_a0 string) (map[string]string, error)

AppParametersGet provides a mock function with given fields: _a0

func (*Interface) AppParametersSet

func (_m *Interface) AppParametersSet(_a0 string, _a1 map[string]string) error

AppParametersSet provides a mock function with given fields: _a0, _a1

func (*Interface) AppUpdate

func (_m *Interface) AppUpdate(name string, opts structs.AppUpdateOptions) error

AppUpdate provides a mock function with given fields: name, opts

func (*Interface) BuildCreate

func (_m *Interface) BuildCreate(app string, url string, opts structs.BuildCreateOptions) (*structs.Build, error)

BuildCreate provides a mock function with given fields: app, url, opts

func (*Interface) BuildCreateUpload

func (_m *Interface) BuildCreateUpload(_a0 string, _a1 io.Reader, _a2 structs.BuildCreateOptions) (*structs.Build, error)

BuildCreateUpload provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) BuildExport

func (_m *Interface) BuildExport(app string, id string, w io.Writer) error

BuildExport provides a mock function with given fields: app, id, w

func (*Interface) BuildGet

func (_m *Interface) BuildGet(app string, id string) (*structs.Build, error)

BuildGet provides a mock function with given fields: app, id

func (*Interface) BuildImport

func (_m *Interface) BuildImport(app string, r io.Reader) (*structs.Build, error)

BuildImport provides a mock function with given fields: app, r

func (*Interface) BuildImportMultipart

func (_m *Interface) BuildImportMultipart(_a0 string, _a1 io.Reader) (*structs.Build, error)

BuildImportMultipart provides a mock function with given fields: _a0, _a1

func (*Interface) BuildImportUrl

func (_m *Interface) BuildImportUrl(_a0 string, _a1 io.Reader) (*structs.Build, error)

BuildImportUrl provides a mock function with given fields: _a0, _a1

func (*Interface) BuildList

func (_m *Interface) BuildList(app string, opts structs.BuildListOptions) (structs.Builds, error)

BuildList provides a mock function with given fields: app, opts

func (*Interface) BuildLogs

func (_m *Interface) BuildLogs(app string, id string, opts structs.LogsOptions) (io.ReadCloser, error)

BuildLogs provides a mock function with given fields: app, id, opts

func (*Interface) BuildUpdate

func (_m *Interface) BuildUpdate(app string, id string, opts structs.BuildUpdateOptions) (*structs.Build, error)

BuildUpdate provides a mock function with given fields: app, id, opts

func (*Interface) CapacityGet

func (_m *Interface) CapacityGet() (*structs.Capacity, error)

CapacityGet provides a mock function with given fields:

func (*Interface) CertificateApply

func (_m *Interface) CertificateApply(app string, service string, port int, id string) error

CertificateApply provides a mock function with given fields: app, service, port, id

func (*Interface) CertificateCreate

func (_m *Interface) CertificateCreate(pub string, key string, opts structs.CertificateCreateOptions) (*structs.Certificate, error)

CertificateCreate provides a mock function with given fields: pub, key, opts

func (*Interface) CertificateCreateClassic

func (_m *Interface) CertificateCreateClassic(_a0 string, _a1 string, _a2 structs.CertificateCreateOptions) (*structs.Certificate, error)

CertificateCreateClassic provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) CertificateDelete

func (_m *Interface) CertificateDelete(id string) error

CertificateDelete provides a mock function with given fields: id

func (*Interface) CertificateGenerate

func (_m *Interface) CertificateGenerate(domains []string) (*structs.Certificate, error)

CertificateGenerate provides a mock function with given fields: domains

func (*Interface) CertificateList

func (_m *Interface) CertificateList() (structs.Certificates, error)

CertificateList provides a mock function with given fields:

func (*Interface) EnvironmentSet

func (_m *Interface) EnvironmentSet(_a0 string, _a1 []byte) (*structs.Release, error)

EnvironmentSet provides a mock function with given fields: _a0, _a1

func (*Interface) EnvironmentUnset

func (_m *Interface) EnvironmentUnset(_a0 string, _a1 string) (*structs.Release, error)

EnvironmentUnset provides a mock function with given fields: _a0, _a1

func (*Interface) EventSend

func (_m *Interface) EventSend(action string, opts structs.EventSendOptions) error

EventSend provides a mock function with given fields: action, opts

func (*Interface) FilesDelete

func (_m *Interface) FilesDelete(app string, pid string, files []string) error

FilesDelete provides a mock function with given fields: app, pid, files

func (*Interface) FilesDownload

func (_m *Interface) FilesDownload(app string, pid string, file string) (io.Reader, error)

FilesDownload provides a mock function with given fields: app, pid, file

func (*Interface) FilesUpload

func (_m *Interface) FilesUpload(app string, pid string, r io.Reader) error

FilesUpload provides a mock function with given fields: app, pid, r

func (*Interface) FormationGet

func (_m *Interface) FormationGet(_a0 string) (structs.Services, error)

FormationGet provides a mock function with given fields: _a0

func (*Interface) FormationUpdate

func (_m *Interface) FormationUpdate(_a0 string, _a1 string, _a2 structs.ServiceUpdateOptions) error

FormationUpdate provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) Get

func (_m *Interface) Get(_a0 string, _a1 stdsdk.RequestOptions, _a2 interface{}) error

Get provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) Initialize

func (_m *Interface) Initialize(opts structs.ProviderOptions) error

Initialize provides a mock function with given fields: opts

func (*Interface) InstanceKeyroll

func (_m *Interface) InstanceKeyroll() error

InstanceKeyroll provides a mock function with given fields:

func (*Interface) InstanceList

func (_m *Interface) InstanceList() (structs.Instances, error)

InstanceList provides a mock function with given fields:

func (*Interface) InstanceShell

func (_m *Interface) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error)

InstanceShell provides a mock function with given fields: id, rw, opts

func (*Interface) InstanceShellClassic

func (_m *Interface) InstanceShellClassic(_a0 string, _a1 io.ReadWriter, _a2 structs.InstanceShellOptions) (int, error)

InstanceShellClassic provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) InstanceTerminate

func (_m *Interface) InstanceTerminate(id string) error

InstanceTerminate provides a mock function with given fields: id

func (*Interface) ObjectDelete

func (_m *Interface) ObjectDelete(app string, key string) error

ObjectDelete provides a mock function with given fields: app, key

func (*Interface) ObjectExists

func (_m *Interface) ObjectExists(app string, key string) (bool, error)

ObjectExists provides a mock function with given fields: app, key

func (*Interface) ObjectFetch

func (_m *Interface) ObjectFetch(app string, key string) (io.ReadCloser, error)

ObjectFetch provides a mock function with given fields: app, key

func (*Interface) ObjectList

func (_m *Interface) ObjectList(app string, prefix string) ([]string, error)

ObjectList provides a mock function with given fields: app, prefix

func (*Interface) ObjectStore

func (_m *Interface) ObjectStore(app string, key string, r io.Reader, opts structs.ObjectStoreOptions) (*structs.Object, error)

ObjectStore provides a mock function with given fields: app, key, r, opts

func (*Interface) ProcessExec

func (_m *Interface) ProcessExec(app string, pid string, command string, rw io.ReadWriter, opts structs.ProcessExecOptions) (int, error)

ProcessExec provides a mock function with given fields: app, pid, command, rw, opts

func (*Interface) ProcessGet

func (_m *Interface) ProcessGet(app string, pid string) (*structs.Process, error)

ProcessGet provides a mock function with given fields: app, pid

func (*Interface) ProcessList

func (_m *Interface) ProcessList(app string, opts structs.ProcessListOptions) (structs.Processes, error)

ProcessList provides a mock function with given fields: app, opts

func (*Interface) ProcessLogs

func (_m *Interface) ProcessLogs(app string, pid string, opts structs.LogsOptions) (io.ReadCloser, error)

ProcessLogs provides a mock function with given fields: app, pid, opts

func (*Interface) ProcessRun

func (_m *Interface) ProcessRun(app string, service string, opts structs.ProcessRunOptions) (*structs.Process, error)

ProcessRun provides a mock function with given fields: app, service, opts

func (*Interface) ProcessRunAttached

func (_m *Interface) ProcessRunAttached(_a0 string, _a1 string, _a2 io.ReadWriter, _a3 int, _a4 structs.ProcessRunOptions) (int, error)

ProcessRunAttached provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*Interface) ProcessRunDetached

func (_m *Interface) ProcessRunDetached(_a0 string, _a1 string, _a2 structs.ProcessRunOptions) (string, error)

ProcessRunDetached provides a mock function with given fields: _a0, _a1, _a2

func (*Interface) ProcessStop

func (_m *Interface) ProcessStop(app string, pid string) error

ProcessStop provides a mock function with given fields: app, pid

func (*Interface) Proxy

func (_m *Interface) Proxy(host string, port int, rw io.ReadWriter, opts structs.ProxyOptions) error

Proxy provides a mock function with given fields: host, port, rw, opts

func (*Interface) RackHost

func (_m *Interface) RackHost(rackOrgSlug string) (structs.RackData, error)

RackHost provides a mock function with given fields: rackOrgSlug

func (*Interface) RegistryAdd

func (_m *Interface) RegistryAdd(server string, username string, password string) (*structs.Registry, error)

RegistryAdd provides a mock function with given fields: server, username, password

func (*Interface) RegistryList

func (_m *Interface) RegistryList() (structs.Registries, error)

RegistryList provides a mock function with given fields:

func (*Interface) RegistryRemove

func (_m *Interface) RegistryRemove(server string) error

RegistryRemove provides a mock function with given fields: server

func (*Interface) RegistryRemoveClassic

func (_m *Interface) RegistryRemoveClassic(_a0 string) error

RegistryRemoveClassic provides a mock function with given fields: _a0

func (*Interface) ReleaseCreate

func (_m *Interface) ReleaseCreate(app string, opts structs.ReleaseCreateOptions) (*structs.Release, error)

ReleaseCreate provides a mock function with given fields: app, opts

func (*Interface) ReleaseGet

func (_m *Interface) ReleaseGet(app string, id string) (*structs.Release, error)

ReleaseGet provides a mock function with given fields: app, id

func (*Interface) ReleaseList

func (_m *Interface) ReleaseList(app string, opts structs.ReleaseListOptions) (structs.Releases, error)

ReleaseList provides a mock function with given fields: app, opts

func (*Interface) ReleasePromote

func (_m *Interface) ReleasePromote(app string, id string, opts structs.ReleasePromoteOptions) error

ReleasePromote provides a mock function with given fields: app, id, opts

func (*Interface) ResourceCreateClassic

func (_m *Interface) ResourceCreateClassic(_a0 string, _a1 structs.ResourceCreateOptions) (*structs.Resource, error)

ResourceCreateClassic provides a mock function with given fields: _a0, _a1

func (*Interface) ResourceGet

func (_m *Interface) ResourceGet(app string, name string) (*structs.Resource, error)

ResourceGet provides a mock function with given fields: app, name

func (*Interface) ResourceList

func (_m *Interface) ResourceList(app string) (structs.Resources, error)

ResourceList provides a mock function with given fields: app

func (*Interface) ResourceUpdateClassic

func (_m *Interface) ResourceUpdateClassic(_a0 string, _a1 structs.ResourceUpdateOptions) (*structs.Resource, error)

ResourceUpdateClassic provides a mock function with given fields: _a0, _a1

func (*Interface) ServiceList

func (_m *Interface) ServiceList(app string) (structs.Services, error)

ServiceList provides a mock function with given fields: app

func (*Interface) ServiceMetrics

func (_m *Interface) ServiceMetrics(app string, name string, opts structs.MetricsOptions) (structs.Metrics, error)

ServiceMetrics provides a mock function with given fields: app, name, opts

func (*Interface) ServiceRestart

func (_m *Interface) ServiceRestart(app string, name string) error

ServiceRestart provides a mock function with given fields: app, name

func (*Interface) ServiceUpdate

func (_m *Interface) ServiceUpdate(app string, name string, opts structs.ServiceUpdateOptions) error

ServiceUpdate provides a mock function with given fields: app, name, opts

func (*Interface) Sync

func (_m *Interface) Sync(_a0 string) error

Sync provides a mock function with given fields: _a0

func (*Interface) SyncInstancesIpInSecurityGroup

func (_m *Interface) SyncInstancesIpInSecurityGroup() error

func (*Interface) SystemGet

func (_m *Interface) SystemGet() (*structs.System, error)

SystemGet provides a mock function with given fields:

func (*Interface) SystemInstall

func (_m *Interface) SystemInstall(w io.Writer, opts structs.SystemInstallOptions) (string, error)

SystemInstall provides a mock function with given fields: w, opts

func (*Interface) SystemJwtSignKey

func (_m *Interface) SystemJwtSignKey() (string, error)

SystemJwtSignKey provides a mock function with given fields:

func (*Interface) SystemJwtSignKeyRotate

func (_m *Interface) SystemJwtSignKeyRotate() (string, error)

SystemJwtSignKeyRotate provides a mock function with given fields:

func (*Interface) SystemJwtToken

func (_m *Interface) SystemJwtToken(opts structs.SystemJwtOptions) (*structs.SystemJwt, error)

SystemJwtToken provides a mock function with given fields: opts

func (*Interface) SystemLogs

func (_m *Interface) SystemLogs(opts structs.LogsOptions) (io.ReadCloser, error)

SystemLogs provides a mock function with given fields: opts

func (*Interface) SystemMetrics

func (_m *Interface) SystemMetrics(opts structs.MetricsOptions) (structs.Metrics, error)

SystemMetrics provides a mock function with given fields: opts

func (*Interface) SystemProcesses

func (_m *Interface) SystemProcesses(opts structs.SystemProcessesOptions) (structs.Processes, error)

SystemProcesses provides a mock function with given fields: opts

func (*Interface) SystemReleases

func (_m *Interface) SystemReleases() (structs.Releases, error)

SystemReleases provides a mock function with given fields:

func (*Interface) SystemResourceCreate

func (_m *Interface) SystemResourceCreate(kind string, opts structs.ResourceCreateOptions) (*structs.Resource, error)

SystemResourceCreate provides a mock function with given fields: kind, opts

func (*Interface) SystemResourceCreateClassic

func (_m *Interface) SystemResourceCreateClassic(_a0 string, _a1 structs.ResourceCreateOptions) (*structs.Resource, error)

SystemResourceCreateClassic provides a mock function with given fields: _a0, _a1

func (*Interface) SystemResourceDelete

func (_m *Interface) SystemResourceDelete(name string) error

SystemResourceDelete provides a mock function with given fields: name

func (*Interface) SystemResourceDeleteClassic

func (_m *Interface) SystemResourceDeleteClassic(_a0 string) error

SystemResourceDeleteClassic provides a mock function with given fields: _a0

func (*Interface) SystemResourceGet

func (_m *Interface) SystemResourceGet(name string) (*structs.Resource, error)

SystemResourceGet provides a mock function with given fields: name

func (*Interface) SystemResourceGetClassic

func (_m *Interface) SystemResourceGetClassic(_a0 string) (*structs.Resource, error)

SystemResourceGetClassic provides a mock function with given fields: _a0

func (_m *Interface) SystemResourceLink(name string, app string) (*structs.Resource, error)

SystemResourceLink provides a mock function with given fields: name, app

func (*Interface) SystemResourceLinkClassic

func (_m *Interface) SystemResourceLinkClassic(_a0 string, _a1 string) (*structs.Resource, error)

SystemResourceLinkClassic provides a mock function with given fields: _a0, _a1

func (*Interface) SystemResourceList

func (_m *Interface) SystemResourceList() (structs.Resources, error)

SystemResourceList provides a mock function with given fields:

func (*Interface) SystemResourceListClassic

func (_m *Interface) SystemResourceListClassic() (structs.Resources, error)

SystemResourceListClassic provides a mock function with given fields:

func (*Interface) SystemResourceTypes

func (_m *Interface) SystemResourceTypes() (structs.ResourceTypes, error)

SystemResourceTypes provides a mock function with given fields:

func (*Interface) SystemResourceTypesClassic

func (_m *Interface) SystemResourceTypesClassic() (structs.ResourceTypes, error)

SystemResourceTypesClassic provides a mock function with given fields:

func (_m *Interface) SystemResourceUnlink(name string, app string) (*structs.Resource, error)

SystemResourceUnlink provides a mock function with given fields: name, app

func (*Interface) SystemResourceUnlinkClassic

func (_m *Interface) SystemResourceUnlinkClassic(_a0 string, _a1 string) (*structs.Resource, error)

SystemResourceUnlinkClassic provides a mock function with given fields: _a0, _a1

func (*Interface) SystemResourceUpdate

func (_m *Interface) SystemResourceUpdate(name string, opts structs.ResourceUpdateOptions) (*structs.Resource, error)

SystemResourceUpdate provides a mock function with given fields: name, opts

func (*Interface) SystemResourceUpdateClassic

func (_m *Interface) SystemResourceUpdateClassic(_a0 string, _a1 structs.ResourceUpdateOptions) (*structs.Resource, error)

SystemResourceUpdateClassic provides a mock function with given fields: _a0, _a1

func (*Interface) SystemUninstall

func (_m *Interface) SystemUninstall(name string, w io.Writer, opts structs.SystemUninstallOptions) error

SystemUninstall provides a mock function with given fields: name, w, opts

func (*Interface) SystemUpdate

func (_m *Interface) SystemUpdate(opts structs.SystemUpdateOptions) error

SystemUpdate provides a mock function with given fields: opts

func (*Interface) WithContext

func (_m *Interface) WithContext(ctx context.Context) structs.Provider

WithContext provides a mock function with given fields: ctx

func (*Interface) Workers

func (_m *Interface) Workers() error

Workers provides a mock function with given fields:

type NewInterfaceT

type NewInterfaceT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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