connector

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourcesPageSize = 50

Functions

func ComposeProjectId added in v0.0.6

func ComposeProjectId(workspaceId string, projectId string, key string) string

func ComposeRepositoryId added in v0.0.6

func ComposeRepositoryId(projectId, repositoryId string) string

func ComposedGroupId added in v0.0.6

func ComposedGroupId(workspaceId, groupSlug string) string

func DecomposeGroupId added in v0.0.6

func DecomposeGroupId(id string) (string, string, error)

func DecomposeProjectId added in v0.0.6

func DecomposeProjectId(id string) (string, string, string, error)

func DecomposeRepositoryId added in v0.0.6

func DecomposeRepositoryId(repositoryId string) (string, string, error)

func GetIdFromComposedId added in v0.0.6

func GetIdFromComposedId(resource *v2.Resource) string

func ParseEntitlementID added in v0.0.6

func ParseEntitlementID(id string) (*v2.ResourceId, string, error)

Types

type Bitbucket

type Bitbucket struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, workspaces []string, auth uhttp.AuthCredentials) (*Bitbucket, error)

func (*Bitbucket) Metadata

func (bb *Bitbucket) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Bitbucket) ResourceSyncers

func (bb *Bitbucket) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*Bitbucket) Validate

func (bb *Bitbucket) Validate(ctx context.Context) (annotations.Annotations, error)

Validate hits the Bitbucket API to validate that the configured credentials are valid and compatible.

Jump to

Keyboard shortcuts

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