token

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathTokenRoleStorage = "token"
)

Variables

View Source
var (
	FieldSchemaTokenRole = map[string]*framework.FieldSchema{
		"role_name": {
			Type:        framework.TypeString,
			Description: "Role name",
			Required:    true,
		},
		"path": {
			Type:        framework.TypeString,
			Description: "Overwrites the role path, only available if the role has dynamic-path set to true",
			Required:    false,
		},
	}
)

Functions

This section is empty.

Types

type Provider

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

Provider implements backend.PathProvider for the token role path.

func New

func New(b tokenBackend, s *framework.Secret) *Provider

New creates a new token path provider. The secret parameter is the framework.Secret for access tokens (injected, not from the interface).

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Paths

func (p *Provider) Paths() []*framework.Path

Paths returns the framework paths for token generation.

Jump to

Keyboard shortcuts

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