Documentation
¶
Overview ¶
Package connections manages connections between VCS repositories and OTF resources, e.g. workspaces, modules.
templ: version: v0.3.865
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectOptions ¶
type Connection ¶
type Connection struct {
ModuleID *resource.TfeID `db:"module_id"`
WorkspaceID *resource.TfeID `db:"workspace_id"`
Repo string
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 ReposTable ¶ added in v0.3.17
func (ReposTable) Header ¶ added in v0.3.17
func (t ReposTable) Header() templ.Component
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.