frontendo11yapi

package
v4.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound     = fmt.Errorf("not found")
	ErrUnauthorized = fmt.Errorf("request not authorized for stack")
)

Functions

This section is empty.

Types

type AllowedOrigin

type AllowedOrigin struct {
	ID  int64  `json:"id,omitempty"`
	URL string `json:"url"`
}

AllowedOrigin ...

type App

type App struct {
	ID                 int64             `json:"id,omitempty"`
	Name               string            `json:"name,omitempty"`
	Key                string            `json:"appKey,omitempty"`
	ExtraLogLabels     []LogLabel        `json:"extraLogLabels,omitempty"`
	CORSAllowedOrigins []AllowedOrigin   `json:"corsOrigins,omitempty"`
	AllowedRate        uint64            `json:"allowedRate,omitempty"`
	Settings           map[string]string `json:"settings,omitempty"`
	CollectEndpointURL string            `json:"collectEndpointURL,omitempty"`

	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	DeletedAt *time.Time `json:"deletedAt,omitempty"`
}

App model

func (*App) UnmarshalJSON

func (a *App) UnmarshalJSON(input []byte) error

type AppSetting

type AppSetting struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Client

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

func NewClient

func NewClient(cloudAPIHost string, authToken string, client *http.Client, userAgent string, defaultHeaders map[string]string) (*Client, error)

func (*Client) CreateApp

func (c *Client) CreateApp(ctx context.Context, baseURL string, stackID int64, appData App) (App, error)

func (*Client) DeleteApp

func (c *Client) DeleteApp(ctx context.Context, baseURL string, stackID int64, appID int64) error

func (*Client) GetApp

func (c *Client) GetApp(ctx context.Context, baseURL string, stackID int64, appID int64) (App, error)

func (*Client) GetApps

func (c *Client) GetApps(ctx context.Context, baseURL string, stackID int64) ([]App, error)

func (*Client) Host

func (c *Client) Host() string

func (*Client) UpdateApp

func (c *Client) UpdateApp(ctx context.Context, baseURL string, stackID int64, appID int64, appData App) (App, error)

type LogLabel

type LogLabel struct {
	ID    int64  `json:"id,omitempty"`
	Label string `json:"label"`
	Value string `json:"value"`
}

LogLabels ...

Jump to

Keyboard shortcuts

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