Documentation
¶
Index ¶
- Variables
- func DownloadSshCA(w http.ResponseWriter, r *http.Request)
- func GenerateTempSSHCert(username, orgID string) (string, string, error)
- func GetAllCAs(w http.ResponseWriter, r *http.Request)
- func GetHttpCADetail(w http.ResponseWriter, r *http.Request)
- func GetSSHCerts(serviceID, orgID string) (hostc, caHost, caUser string)
- func InitCA(w http.ResponseWriter, r *http.Request)
- func InitSSHCA(w http.ResponseWriter, r *http.Request)
- func InitStore(state *global.State)
- func InitStoreMock() *cryptMock
- func UploadCA(w http.ResponseWriter, r *http.Request)
- type CertHolderResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Store adapter
Store is the package state variable which contains database connections
Functions ¶
func DownloadSshCA ¶
func DownloadSshCA(w http.ResponseWriter, r *http.Request)
func GetAllCAs ¶
func GetAllCAs(w http.ResponseWriter, r *http.Request)
GetAllCAs returns all CAs of an organization
func GetHttpCADetail ¶
func GetHttpCADetail(w http.ResponseWriter, r *http.Request)
GetHttpCADetail returns HTTP CA details
func GetSSHCerts ¶
func InitCA ¶
func InitCA(w http.ResponseWriter, r *http.Request)
InitCA initialises HTTP CA of given type
func InitSSHCA ¶
func InitSSHCA(w http.ResponseWriter, r *http.Request)
InitSSHCA creates SSH CA of given type
func InitStoreMock ¶
func InitStoreMock() *cryptMock
InitStoreMock will init mock state of this package
Types ¶
type CertHolderResponse ¶
type CertHolderResponse struct { CertID string `json:"certID"` OrgID string `json:"orgID"` EntityID string `json:"entityID"` Cert *certinfo.Certificate `json:"cert"` // CertificateType should be constant representing CA, intermediate CA or Service(for http?) cert others CertType string `json:"certType"` CreatedAt int64 `json:"createdAt"` LastUpdated int64 `json:"lastUpdated"` }
Click to show internal directories.
Click to hide internal directories.