connector

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupPageSizeMaximum = 25
)
View Source
const ResourcesPageSize = 100

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