helper

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackupPolicies added in v1.2.0

func GetBackupPolicies(ctx context.Context, client openapi.ClientInterface, organization string, labelFilter *string, listAccessible bool) ([]string, error)

func GetBackups added in v1.2.0

func GetBackups(ctx context.Context, client openapi.ClientInterface, organization, project, database string, labelFilter *string, listAccessible bool) ([]string, error)

func GetDatabases

func GetDatabases(ctx context.Context, client openapi.ClientInterface, organization, project string, labelFilter *string, listAccessible bool) ([]string, error)

func GetProjects

func GetProjects(ctx context.Context, client openapi.ClientInterface, organization string, labelFilter *string, listAccessible bool) ([]string, error)

func IsNotFound

func IsNotFound(err error) bool

func ParseResponse

func ParseResponse(resp *http.Response, dest any) error

Types

type ApiError

type ApiError struct {
	HttpResponse *http.Response
	ErrorContent openapi.ErrorContent
}

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) GetCode

func (e *ApiError) GetCode() openapi.ErrorContentCode

func (*ApiError) GetDetail

func (e *ApiError) GetDetail() string

func (*ApiError) GetStatus

func (e *ApiError) GetStatus() string

func (*ApiError) GetStatusCode

func (e *ApiError) GetStatusCode() int

Jump to

Keyboard shortcuts

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