deployments

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 13 Imported by: 0

README

deployments

Client implementation in go for the Freym service deployments.

Docs

Please have a look at our documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyClosed = fmt.Errorf("client already closed")

Functions

This section is empty.

Types

type Client

type Client interface {
	DeploySchema(ctx context.Context, schemaString string, options *DeploymentOptions) (*DeploymentResponse, error)
	ConfirmDeployment(ctx context.Context, deploymentId int64) error
	RollbackDeployment(ctx context.Context) error
	Close() error
}

func NewClient

func NewClient(
	conf *config.Config,
	logger golog.Logger,
) (Client, error)

type DeploymentOptions

type DeploymentOptions struct {
	DangerouslyRemoveGdprFields bool
	SkipServices                []string
	Force                       bool
}

type DeploymentResponse

type DeploymentResponse struct {
	DeploymentId int64
	Target       managementpb.DeploymentTarget
}

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) Close

func (c *MockClient) Close() error

func (*MockClient) ConfirmDeployment

func (c *MockClient) ConfirmDeployment(ctx context.Context, deploymentId int64) error

func (*MockClient) DeploySchema

func (c *MockClient) DeploySchema(ctx context.Context, schemaString string, options *DeploymentOptions) (*DeploymentResponse, error)

func (*MockClient) RollbackDeployment

func (c *MockClient) RollbackDeployment(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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