api

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInterface added in v0.42.0

type AuthInterface interface {
	Login(user, password string) (*api.AuthResponse, error)
	Refresh(refreshToken string) (*api.AuthResponse, error)
	DeviceCode(authKind, authProvider string) (*oauth2.DeviceAuthResponse, error)
	DeviceAccessToken(authKind, slugID, deviceCode string) (*api.AuthResponse, error)
	ClientCredentialsToken(authKind, slugID, clientID, clientSecret string) (*api.AuthResponse, error)
}

AuthInterface has methods to work with Auth resource

type ClientInterface

type ClientInterface interface {
	RESTClient() *perseshttp.RESTClient
	V1() v1.ClientInterface
	Migrate(body *api.Migrate) (*modelV1.Dashboard, error)
	Validate() ValidateInterface
	Auth() AuthInterface
	Config() (*apiConfig.Config, error)
}

func NewWithClient

func NewWithClient(restClient *perseshttp.RESTClient) ClientInterface

type ValidateInterface added in v0.21.0

type ValidateInterface interface {
	Dashboard(entity *v1.Dashboard) error
	Datasource(entity *v1.Datasource) error
	GlobalDatasource(entity *v1.GlobalDatasource) error
	Variable(entity *v1.Variable) error
	GlobalVariable(entity *v1.GlobalVariable) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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