MCPcopy Create free account
hub / github.com/hashicorp/vault / Create

Method Create

api/auth_token.go:21–23  ·  view source on GitHub ↗
(opts *TokenCreateRequest)

Source from the content-addressed store, hash-verified

19}
20
21func (c *TokenAuth) Create(opts *TokenCreateRequest) (*Secret, error) {
22 return c.CreateWithContext(context.Background(), opts)
23}
24
25func (c *TokenAuth) CreateWithContext(ctx context.Context, opts *TokenCreateRequest) (*Secret, error) {
26 ctx, cancelFunc := c.c.withConfiguredTimeout(ctx)

Calls 1

CreateWithContextMethod · 0.95