connector

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Confluence Cloud v1 API group endpoints default to 1000 with no
	// documented hard maximum. Previously 25; increased to reduce API
	// calls during the 2D user-listing scheme (groups → members).
	// The membersByGroupId endpoint enforces a maximum of 200.
	GroupPageSizeMaximum = 200
)
View Source
const ResourcesPageSize = 200

ResourcesPageSize controls the default page size for v1 API list operations. The membersByGroupId endpoint enforces a maximum of 200.

Variables

This section is empty.

Functions

func GetEntitlementComponents

func GetEntitlementComponents(operation string) (string, string)

GetEntitlementComponents returns the operation and target in that order.

func WithRateLimitAnnotations

func WithRateLimitAnnotations(
	ratelimitDescriptionAnnotations ...*v2.RateLimitDescription,
) annotations.Annotations

Types

type Config

type Config struct {
	UserName string
	ApiKey   string
	Domain   string
}

type Confluence

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

func New

func New(
	ctx context.Context,
	apiKey string,
	domainUrl string,
	username string,
	skipPersonalSpaces bool,
	nouns []string,
	verbs []string,
) (*Confluence, error)

func (*Confluence) Asset

func (c *Confluence) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)

func (*Confluence) Metadata

func (c *Confluence) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

func (*Confluence) ResourceSyncers

func (c *Confluence) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*Confluence) Validate

func (c *Confluence) Validate(ctx context.Context) (annotations.Annotations, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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