mocks

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

func (*ClientMock) GetArtifact

func (m *ClientMock) GetArtifact(artifactID string) (models.Artifact, error)

func (*ClientMock) GetDeployment

func (m *ClientMock) GetDeployment(deploymentID string) (models.Deployment, error)

func (*ClientMock) GetEnvironment

func (m *ClientMock) GetEnvironment(environmentId string) (models.Environment, error)

func (*ClientMock) GetOrganisation

func (m *ClientMock) GetOrganisation(organisationId string) (models.Organisation, error)

func (*ClientMock) GetProject

func (m *ClientMock) GetProject(projectId string) (models.Project, error)

func (*ClientMock) GetUser

func (m *ClientMock) GetUser() (models.User, error)

func (*ClientMock) Login

func (m *ClientMock) Login(login models.Login) (models.Token, error)

func (*ClientMock) SaveArtifact

func (m *ClientMock) SaveArtifact(artifact models.Artifact) (models.Artifact, error)

func (*ClientMock) SaveDeployment

func (m *ClientMock) SaveDeployment(deployment models.Deployment) (models.Deployment, error)

func (*ClientMock) UploadArtifact

func (m *ClientMock) UploadArtifact(artifact models.Artifact, content string) error

type ConfigurationMock

type ConfigurationMock struct {
	mock.Mock
}

func (*ConfigurationMock) GetManifest

func (m *ConfigurationMock) GetManifest() (models.Manifest, error)

func (*ConfigurationMock) Init

func (m *ConfigurationMock) Init() error

type DeploymentServiceMock

type DeploymentServiceMock struct {
	mock.Mock
}

func (*DeploymentServiceMock) Deploy

func (m *DeploymentServiceMock) Deploy(environment string) error

type FileHelperMock

type FileHelperMock struct {
	mock.Mock
}

func (*FileHelperMock) Package

func (m *FileHelperMock) Package(manifest models.Manifest) (string, error)

func (*FileHelperMock) ReadFile

func (m *FileHelperMock) ReadFile(filename string) (string, error)

func (*FileHelperMock) WriteFile

func (m *FileHelperMock) WriteFile(value string, filename string) error

type FileSystemMock

type FileSystemMock struct {
	mock.Mock
}

func (*FileSystemMock) Create

func (m *FileSystemMock) Create(name string) (afero.File, error)

func (*FileSystemMock) MkdirAll

func (m *FileSystemMock) MkdirAll(path string, perm fs.FileMode) error

func (*FileSystemMock) NewWriter

func (m *FileSystemMock) NewWriter(w io.Writer) *zip.Writer

func (*FileSystemMock) Open

func (m *FileSystemMock) Open(name string) (afero.File, error)

func (*FileSystemMock) ReadFile

func (m *FileSystemMock) ReadFile(filename string) ([]byte, error)

func (*FileSystemMock) UserHomeDir

func (m *FileSystemMock) UserHomeDir() (string, error)

func (*FileSystemMock) WriteFile

func (m *FileSystemMock) WriteFile(filename string, data []byte, perm fs.FileMode) error

type LoginServiceMock

type LoginServiceMock struct {
	mock.Mock
}

func (*LoginServiceMock) Login

func (m *LoginServiceMock) Login(email string, password string) error

type TokenHelperMock

type TokenHelperMock struct {
	mock.Mock
}

func (*TokenHelperMock) GetOrganisation

func (m *TokenHelperMock) GetOrganisation() (string, error)

func (*TokenHelperMock) GetToken

func (m *TokenHelperMock) GetToken() (string, error)

func (*TokenHelperMock) SaveOrganisation

func (m *TokenHelperMock) SaveOrganisation(organisationId string) error

func (*TokenHelperMock) SaveToken

func (m *TokenHelperMock) SaveToken(token string) error

func (*TokenHelperMock) TokenExists

func (m *TokenHelperMock) TokenExists() bool

type WriterMock

type WriterMock struct {
	mock.Mock
}

func (*WriterMock) Write

func (m *WriterMock) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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