deployments

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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) (*int64, error)
	ConfirmDeployment(ctx context.Context, deploymentId int64) error
	RollbackDeployment(ctx context.Context, target managementpb.DeploymentTarget) error
	RollbackDeploymentById(ctx context.Context, deploymentId int64) error
	Close() error
}

func NewClient

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

type DeploymentOptions

type DeploymentOptions struct {
	SkipServices []string
	Force        bool
	Target       managementpb.DeploymentTarget
	ForceTypes   []string
}

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) ActivateDeployment added in v0.31.4

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

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,
) (*int64, error)

func (*MockClient) RollbackDeployment

func (c *MockClient) RollbackDeployment(ctx context.Context, target managementpb.DeploymentTarget) error

func (*MockClient) RollbackDeploymentById added in v0.31.7

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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