Documentation
¶
Overview ¶
Package connections manages connections between VCS repositories and OTF resources, e.g. workspaces, modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectOptions ¶
type ConnectOptions struct {
ConnectionType // OTF resource type
VCSProviderID string // vcs provider of repo
ResourceID string // ID of OTF resource
RepoPath string
}
type Connection ¶
Connection is a connection between a VCS repo and an OTF resource.
type ConnectionType ¶
type ConnectionType int
ConnectionType identifies the OTF resource type in a VCS connection.
const ( WorkspaceConnection ConnectionType = iota ModuleConnection )
type DisconnectOptions ¶
type DisconnectOptions struct {
ConnectionType // OTF resource type
ResourceID string // ID of OTF resource
}
type Service ¶
func (*Service) Connect ¶
func (s *Service) Connect(ctx context.Context, opts ConnectOptions) (*Connection, error)
Connect an OTF resource to a VCS repo.
func (*Service) Disconnect ¶
func (s *Service) Disconnect(ctx context.Context, opts DisconnectOptions) error
Disconnect resource from repo
type SynchroniseOptions ¶
Click to show internal directories.
Click to hide internal directories.