role

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	RoleName            string            `json:"role_name" structs:"role_name" mapstructure:"role_name"`
	TTL                 time.Duration     `json:"ttl" structs:"ttl" mapstructure:"ttl"`
	Path                string            `json:"path" structs:"path" mapstructure:"path"`
	Name                string            `json:"name" structs:"name" mapstructure:"name"`
	Scopes              []string          `json:"scopes" structs:"scopes" mapstructure:"scopes"`
	AccessLevel         token.AccessLevel `json:"access_level" structs:"access_level" mapstructure:"access_level,omitempty"`
	TokenType           token.Type        `json:"token_type" structs:"token_type" mapstructure:"token_type"`
	GitlabRevokesTokens bool              `json:"gitlab_revokes_token" structs:"gitlab_revokes_token" mapstructure:"gitlab_revokes_token"`
	DynamicPath         bool              `json:"dynamic_path" structs:"dynamic_path" mapstructure:"dynamic_path"`
	ConfigName          string            `json:"config_name" structs:"config_name" mapstructure:"config_name"`
}

func (Role) GetName

func (e Role) GetName() string

func (Role) IsNil

func (e Role) IsNil() bool

func (Role) LogicalResponseData

func (e Role) LogicalResponseData() map[string]any

Jump to

Keyboard shortcuts

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