Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FieldSchemaRoles = map[string]*framework.FieldSchema{ "role_name": { Type: framework.TypeString, Description: "Role name", Required: true, DisplayAttrs: &framework.DisplayAttributes{ Name: "Role Name", }, }, "path": { Type: framework.TypeString, Description: "Project/Group path to create an access token for. If the token type is set to personal then write the username here. If dynamic_path is true set then this is regex.", Required: true, DisplayAttrs: &framework.DisplayAttributes{ Name: "path", }, }, "name": { Type: framework.TypeString, Description: "The name of the access token", Required: true, DisplayAttrs: &framework.DisplayAttributes{ Name: "Name", }, }, "scopes": { Type: framework.TypeCommaStringSlice, Description: "List of scopes", Required: false, DisplayAttrs: &framework.DisplayAttributes{ Name: "Scopes", }, AllowedValues: utils.ToAny(token.ValidPersonalTokenScopes...), }, "ttl": { Type: framework.TypeDurationSecond, Description: "The TTL of the token", Required: false, DisplayAttrs: &framework.DisplayAttributes{ Name: "Token TTL", }, }, "access_level": { Type: framework.TypeString, Description: "access level of access token (only required for Group and Project access tokens)", Required: false, DisplayAttrs: &framework.DisplayAttributes{ Name: "Access Level", }, AllowedValues: utils.ToAny(token.ValidAccessLevels...), }, "token_type": { Type: framework.TypeString, Description: "access token type", Required: true, AllowedValues: utils.ToAny(token.ValidTokenTypes...), DisplayAttrs: &framework.DisplayAttributes{ Name: "Token Type", }, }, "gitlab_revokes_token": { Type: framework.TypeBool, Default: false, Required: false, Description: `Gitlab revokes the token when it's time. Vault will not revoke the token when the lease expires.`, DisplayAttrs: &framework.DisplayAttributes{ Name: "Gitlab revokes token.", }, }, "config_name": { Type: framework.TypeString, Default: backend.DefaultConfigName, Required: false, Description: "The config we use when interacting with the role, this can be specified if you want to use a specific config for the role, otherwise it uses the default one.", DisplayAttrs: &framework.DisplayAttributes{ Name: "Configuration.", }, }, "dynamic_path": { Type: framework.TypeBool, Default: false, Required: false, Description: "Should path be changeable dynamically for this role?", DisplayAttrs: &framework.DisplayAttributes{ Name: "Dynamic Path.", }, }, } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.