Documentation ¶
Overview ¶
Package repo handles configuration of VCS repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(opts Options) *service
Types ¶
type ConnectOptions ¶
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 Tx internal.DB // Optional tx for performing database ops within. }
type RepoService ¶
type RepoService = Service
type Service ¶
type Service interface { // Connect adds a connection between a VCS repo and an OTF resource. A // webhook is created if one doesn't exist already. Connect(ctx context.Context, opts ConnectOptions) (*Connection, error) // Disconnect removes a connection between a VCS repo and an OTF // resource. If there are no more connections then its // webhook is removed. Disconnect(ctx context.Context, opts DisconnectOptions) error }
Service manages VCS repositories
type SynchroniseOptions ¶
Click to show internal directories.
Click to hide internal directories.