Documentation
¶
Index ¶
- func BulkCreateSecret(w http.ResponseWriter, r *http.Request) (int, error)
- func BulkRewrapSecret(w http.ResponseWriter, r *http.Request) (int, error)
- func CreateSecret(w http.ResponseWriter, r *http.Request) (int, error)
- func HandleError(s *client.Schemas, t func(http.ResponseWriter, *http.Request) (int, error)) http.Handler
- func ListSecrets(w http.ResponseWriter, r *http.Request) (int, error)
- func NewRouter() *mux.Router
- func RewrapSecret(w http.ResponseWriter, r *http.Request) (int, error)
- func StartServer() error
- func URLEncoded(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkCreateSecret ¶
BulkCreateSecret handles creating a list of multiple secrets and generating response
func BulkRewrapSecret ¶
BulkRewrapSecret rewraps multiple secrets with a single given public key
func CreateSecret ¶
CreateSecret POST handler for route /secrets to create a new secret
func HandleError ¶
func HandleError(s *client.Schemas, t func(http.ResponseWriter, *http.Request) (int, error)) http.Handler
HandleError is a wrapper that handles response codes and error messages
func ListSecrets ¶
ListSecrets to make schemas work better
func NewRouter ¶
NewRouter creates the router for the application and wires up Rancher API spec schema
func RewrapSecret ¶
RewrapSecret rewraps a single secret witha usersupplied public key
func URLEncoded ¶
URLEncoded encodes the urls so that spaces are allowed in resource names
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.