resources

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidateAllResourceCaches

func InvalidateAllResourceCaches() error

InvalidateAllResourceCaches invalidates all resource list caches

func InvalidateOrganizationCache

func InvalidateOrganizationCache(orgID string) error

InvalidateOrganizationCache invalidates all caches related to an organization

func InvalidateProjectCache

func InvalidateProjectCache(projectID string) error

InvalidateProjectCache invalidates all caches related to a project

func InvalidateSiteCache

func InvalidateSiteCache(siteID string) error

InvalidateSiteCache invalidates all caches related to a site

Types

type Organization

type Organization = common.FolderConfig

Type aliases for cleaner code

func GetOrganization

func GetOrganization(ctx context.Context, apiBaseURL, orgID string, useCache bool) (*Organization, error)

GetOrganization returns a specific organization, using cache when available

func ListOrganizations

func ListOrganizations(ctx context.Context, apiBaseURL string, useCache bool) ([]*Organization, error)

ListOrganizations returns all organizations, using cache when available

type Project

type Project = common.ProjectConfig

func ListProjects

func ListProjects(ctx context.Context, apiBaseURL string, useCache bool, orgID *string) ([]*Project, error)

ListProjects returns all projects, using cache when available

type Site

type Site = common.SiteConfig

func ListSites

func ListSites(ctx context.Context, apiBaseURL string, useCache bool, orgID, projectID *string) ([]*Site, error)

ListSites returns all sites, using cache when available

Jump to

Keyboard shortcuts

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