-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpath_issue.go
More file actions
29 lines (23 loc) · 839 Bytes
/
path_issue.go
File metadata and controls
29 lines (23 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (c) 2019 Entrust Datacard Corporation.
* All rights reserved.
*/
package main
import (
"github.com/hashicorp/vault/logical"
"github.com/hashicorp/vault/logical/framework"
)
func pathIssue(b *backend) *framework.Path {
ret := &framework.Path{
Pattern: "issue/" + framework.GenericNameRegex("roleName") + "/?$",
Operations: map[logical.Operation]framework.OperationHandler{
logical.ReadOperation: &framework.PathOperation{Callback: b.opReadIssue},
logical.ListOperation: &framework.PathOperation{Callback: b.opListIssue},
logical.UpdateOperation: &framework.PathOperation{Callback: b.opWriteIssue},
},
HelpSynopsis: "Certificate Enrollment",
HelpDescription: "Enroll for certificate.",
Fields: addIssueAndSignCommonFields(map[string]*framework.FieldSchema{}),
}
return ret
}