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 Connection ¶
type Connection struct {
ModuleID *resource.TfeID `db:"module_id"`
WorkspaceID *resource.TfeID `db:"workspace_id"`
Repo vcs.Repo
VCSProviderID resource.TfeID `db:"vcs_provider_id"`
}
Connection is a connection between a VCS repo and an OTF resource.
NOTE: order of fields must be same as that of its postgres table columns.
type DisconnectOptions ¶
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
Click to show internal directories.
Click to hide internal directories.