client

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPTimeoutDuration = 20 * time.Second
View Source
const ObbSecretsEndpointPath = "/secrets"

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Err     error
	Message string
	Data    string
}

func (*APIError) Error

func (e *APIError) Error() string

type DeleteSecretsRequest

type DeleteSecretsRequest struct {
	SecretID string `json:"secretId,omitempty"`
}

type OnboardbaseClient

type OnboardbaseClient struct {
	OnboardbaseAPIKey   string
	VerifyTLS           bool
	UserAgent           string
	OnboardbasePassCode string
	// contains filtered or unexported fields
}

func NewOnboardbaseClient

func NewOnboardbaseClient(onboardbaseAPIKey, onboardbasePasscode string) (*OnboardbaseClient, error)

func (*OnboardbaseClient) Authenticate

func (c *OnboardbaseClient) Authenticate() error

func (*OnboardbaseClient) BaseURL

func (c *OnboardbaseClient) BaseURL() *url.URL

func (*OnboardbaseClient) DeleteSecret

func (c *OnboardbaseClient) DeleteSecret(request SecretRequest) error

func (*OnboardbaseClient) GetSecret

func (c *OnboardbaseClient) GetSecret(request SecretRequest) (*SecretResponse, error)

func (*OnboardbaseClient) GetSecrets

func (c *OnboardbaseClient) GetSecrets(request SecretsRequest) (*SecretsResponse, error)

func (*OnboardbaseClient) SetBaseURL

func (c *OnboardbaseClient) SetBaseURL(urlStr string) error

type RawSecret

type RawSecret struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type RawSecrets

type RawSecrets []RawSecret

type SecretRequest

type SecretRequest struct {
	Environment string
	Project     string
	Name        string
}

type SecretResponse

type SecretResponse struct {
	Name  string
	Value string
}

type Secrets

type Secrets map[string]string

type SecretsRequest

type SecretsRequest struct {
	Environment string
	Project     string
}

type SecretsResponse

type SecretsResponse struct {
	Secrets Secrets
	Body    []byte
}

Jump to

Keyboard shortcuts

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