workspace

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MPL-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 Connector

type Connector struct {
	otf.HookService        // for registering and unregistering connections to webhooks
	otf.WorkspaceService   // for retrieving workspace
	otf.VCSProviderService // for retrieving cloud client
}

func (*Connector) Connect

func (wc *Connector) Connect(ctx context.Context, workspaceID string, opts otf.ConnectWorkspaceOptions) error

func (*Connector) Disconnect

func (c *Connector) Disconnect(ctx context.Context, workspaceID string) (*otf.Workspace, error)

Disconnect a repo from a workspace. The repo's webhook is deleted if no other workspace is connected to the repo.

Jump to

Keyboard shortcuts

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