service

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkCreateSecret

func BulkCreateSecret(w http.ResponseWriter, r *http.Request) (int, error)

BulkCreateSecret handles creating a list of multiple secrets and generating response

func BulkDeleteSecret added in v0.1.0

func BulkDeleteSecret(w http.ResponseWriter, r *http.Request) (int, error)

BulkDeleteSecret provides a hook to the backend to clear out data.

func BulkRewrapSecret

func BulkRewrapSecret(w http.ResponseWriter, r *http.Request) (int, error)

BulkRewrapSecret rewraps multiple secrets with a single given public key

func CreateSecret

func CreateSecret(w http.ResponseWriter, r *http.Request) (int, error)

CreateSecret POST handler for route /secrets to create a new secret

func DeleteSecret added in v0.1.0

func DeleteSecret(w http.ResponseWriter, r *http.Request) (int, error)

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

func ListSecrets(w http.ResponseWriter, r *http.Request) (int, error)

ListSecrets to make schemas work better

func NewRouter

func NewRouter() *mux.Router

NewRouter creates the router for the application and wires up Rancher API spec schema

func RewrapSecret

func RewrapSecret(w http.ResponseWriter, r *http.Request) (int, error)

RewrapSecret rewraps a single secret witha usersupplied public key

func StartServer

func StartServer(listenAddress string) error

StartServer creates and initializes the server api

func URLEncoded

func URLEncoded(str string) string

URLEncoded encodes the urls so that spaces are allowed in resource names

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL