Documentation
¶
Index ¶
- Constants
- Variables
- func GetCookieFromEnvVar(ctx context.Context) (string, error)
- func GetPageContent(ctx context.Context, url string, options *GetContentOptions) (string, error)
- func GetPageIdFromUrl(ctx context.Context, url string) (string, error)
- func GetRequest(ctx context.Context, url string) (string, error)
- func GetToken(ctx context.Context) (string, error)
- type GetContentOptions
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 GetPageContent ¶
Get the content of a wiki page
Types ¶
type GetContentOptions ¶
type GetContentOptions struct {
PrettyPrint bool
}
Click to show internal directories.
Click to hide internal directories.