Documentation
¶
Index ¶
- func BulkCreateSecret(w http.ResponseWriter, r *http.Request) (int, error)
- func BulkDeleteSecret(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 DeleteSecret(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(listenAddress string) 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 BulkDeleteSecret ¶ added in v0.1.0
BulkDeleteSecret provides a hook to the backend to clear out data.
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 DeleteSecret ¶ added in v0.1.0
DeleteSecret provides a hook to the backend to clear out data.
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 StartServer ¶
StartServer creates and initializes the server api
func URLEncoded ¶
URLEncoded encodes the urls so that spaces are allowed in resource names
Types ¶
This section is empty.