plugin

package
v0.0.0-...-041c9be Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "v0.0.1"

Functions

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new rollbar backend as logical.Backend

func NewClient

func NewClient(config *RollbarConfig) (*rollbarClient, error)

Types

type RollbarBackend

type RollbarBackend struct {
	*framework.Backend
	// contains filtered or unexported fields
}

RollbarBackend defines a struct that extends the Vault backend and stores the rollbar API Client

func (*RollbarBackend) PathConfigExistenceCheck

func (b *RollbarBackend) PathConfigExistenceCheck(ctx context.Context, req *logical.Request, data *framework.FieldData) (bool, error)

func (*RollbarBackend) PathRolesExistenceCheck

func (b *RollbarBackend) PathRolesExistenceCheck(ctx context.Context, req *logical.Request, data *framework.FieldData) (bool, error)

type RollbarConfig

type RollbarConfig struct {
	AccountAccessToken string `json:"account_access_token"`
}

type RollbarRoleEntry

type RollbarRoleEntry struct {
	Name                     string        `json:"name"`
	ProjectID                int           `json:"project_id"`
	ProjectAccessTokenScopes string        `json:"project_access_token_scopes"`
	TTL                      time.Duration `json:"ttl"`
	MaxTTL                   time.Duration `json:"max_ttl"`
}

RollbarRoleEntry defines the data associated with a Vault role for interoperating with the rollbar api

Jump to

Keyboard shortcuts

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