atlassianconfluenceutils

package
v0.467.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CookieEnvVarName = "ATLASSIAN_CONFLUENCE_COOKIE"
View Source
const TokenEnvVarName = "ATLASSIAN_CONFLUENCE_TOKEN"

Variables

View Source
var ErrCookieNotSet = errors.New("atlassian Confluence wiki cookie not set in the env var '" + CookieEnvVarName + "'")
View Source
var ErrTokenNotSet = errors.New("atlassian Confluence wiki token not set in the env var '" + TokenEnvVarName + "'")

Functions

func GetCookieFromEnvVar

func GetCookieFromEnvVar(ctx context.Context) (string, error)

func GetPageContent

func GetPageContent(ctx context.Context, url string, options *GetContentOptions) (string, error)

Get the content of a wiki page

func GetPageIdFromUrl

func GetPageIdFromUrl(ctx context.Context, url string) (string, error)

func GetRequest

func GetRequest(ctx context.Context, url string) (string, error)

func GetToken

func GetToken(ctx context.Context) (string, error)

Types

type GetContentOptions

type GetContentOptions struct {
	PrettyPrint bool
}

Jump to

Keyboard shortcuts

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