client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.2.0

type Manager struct {
	// contains filtered or unexported fields
}

Manager is managing the required clients to interact with Structurizr. Use NewManager to get started

func NewManager added in v0.2.0

func NewManager(api WorkspacesClient, cli WorkspaceClient) *Manager

NewManager creates a new Manager with the required clients to interact with Structurizr

func (*Manager) CreateWorkspace added in v0.2.0

func (m *Manager) CreateWorkspace(ctx context.Context) (*model.Workspace, error)

CreateWorkspace creates a new workspace

func (*Manager) DeleteWorkspace added in v0.2.0

func (m *Manager) DeleteWorkspace(ctx context.Context, id int64) (*model.APIResponse, error)

DeleteWorkspace deletes a workspace

func (*Manager) GetWorkspaces added in v0.2.0

func (m *Manager) GetWorkspaces(ctx context.Context) (*model.Workspaces, error)

GetWorkspaces lists all workspaces

func (*Manager) PushWorkspace added in v0.2.0

func (m *Manager) PushWorkspace(
	ctx context.Context,
	id int64,
	key string,
	secret string,
	passphrase string,
	source string,
) error

PushWorkspace push a new version of a workspace from an existing file

type WorkspaceClient added in v0.2.0

type WorkspaceClient interface {
	// PushWorkspace push a new version of a workspace from an existing file
	PushWorkspace(ctx context.Context, id int64, key string, secret string, passphrase string, source string) error
}

type WorkspacesClient added in v0.2.0

type WorkspacesClient interface {
	GetWorkspaces(ctx context.Context) (*model.Workspaces, error)
	CreateWorkspace(ctx context.Context) (*model.Workspace, error)
	DeleteWorkspace(ctx context.Context, id int64) (*model.APIResponse, error)
}

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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