Documentation ¶
Index ¶
- Variables
- func CreateCloudConfigHandler(w http.ResponseWriter, r *http.Request)
- func CreateMachineHandler(w http.ResponseWriter, r *http.Request)
- func CreateProfileHandler(w http.ResponseWriter, r *http.Request)
- func CreateSSHKeyHandler(w http.ResponseWriter, r *http.Request)
- func DeleteCloudConfigByName(name string) error
- func DeleteCloudConfigHandler(w http.ResponseWriter, r *http.Request)
- func DeleteFromBucket(bucket, name string) error
- func DeleteMachineByName(name string) error
- func DeleteMachineHandler(w http.ResponseWriter, r *http.Request)
- func DeleteProfileByName(name string) error
- func DeleteProfileHandler(w http.ResponseWriter, r *http.Request)
- func DeleteSSHKeyByName(name string) error
- func DeleteSSHKeyHandler(w http.ResponseWriter, r *http.Request)
- func GetAllFromBucket(bucket string, f func(k, v []byte) error) error
- func GetCloudConfigHandler(w http.ResponseWriter, r *http.Request)
- func GetFromBucket(bucket, name string, v interface{}) error
- func GetMachineHandler(w http.ResponseWriter, r *http.Request)
- func GetProfileHandler(w http.ResponseWriter, r *http.Request)
- func GetSSHKeyHandler(w http.ResponseWriter, r *http.Request)
- func Handler() http.Handler
- func ListCloudConfigHandler(w http.ResponseWriter, r *http.Request)
- func ListMachinesHandler(w http.ResponseWriter, r *http.Request)
- func ListProfilesHandler(w http.ResponseWriter, r *http.Request)
- func ListSSHKeyHandler(w http.ResponseWriter, r *http.Request)
- func PutToBucket(bucket, name string, v interface{}) error
- func UpdateMachineHandler(w http.ResponseWriter, r *http.Request)
- type CloudConfig
- type CloudConfigsResponse
- type Machine
- type Profile
- type ProfilesResponse
- type Response
- type SSHKey
- type SSHKeysResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func CreateCloudConfigHandler ¶
func CreateCloudConfigHandler(w http.ResponseWriter, r *http.Request)
func CreateMachineHandler ¶
func CreateMachineHandler(w http.ResponseWriter, r *http.Request)
func CreateProfileHandler ¶
func CreateProfileHandler(w http.ResponseWriter, r *http.Request)
func CreateSSHKeyHandler ¶
func CreateSSHKeyHandler(w http.ResponseWriter, r *http.Request)
func DeleteCloudConfigByName ¶
func DeleteCloudConfigHandler ¶
func DeleteCloudConfigHandler(w http.ResponseWriter, r *http.Request)
func DeleteFromBucket ¶
func DeleteMachineByName ¶
func DeleteMachineHandler ¶
func DeleteMachineHandler(w http.ResponseWriter, r *http.Request)
func DeleteProfileByName ¶
func DeleteProfileHandler ¶
func DeleteProfileHandler(w http.ResponseWriter, r *http.Request)
func DeleteSSHKeyByName ¶
func DeleteSSHKeyHandler ¶
func DeleteSSHKeyHandler(w http.ResponseWriter, r *http.Request)
func GetCloudConfigHandler ¶
func GetCloudConfigHandler(w http.ResponseWriter, r *http.Request)
func GetFromBucket ¶
func GetMachineHandler ¶
func GetMachineHandler(w http.ResponseWriter, r *http.Request)
func GetProfileHandler ¶
func GetProfileHandler(w http.ResponseWriter, r *http.Request)
func GetSSHKeyHandler ¶
func GetSSHKeyHandler(w http.ResponseWriter, r *http.Request)
func ListCloudConfigHandler ¶
func ListCloudConfigHandler(w http.ResponseWriter, r *http.Request)
func ListMachinesHandler ¶
func ListMachinesHandler(w http.ResponseWriter, r *http.Request)
func ListProfilesHandler ¶
func ListProfilesHandler(w http.ResponseWriter, r *http.Request)
func ListSSHKeyHandler ¶
func ListSSHKeyHandler(w http.ResponseWriter, r *http.Request)
func PutToBucket ¶
func UpdateMachineHandler ¶
func UpdateMachineHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type CloudConfig ¶
func GetCloudConfigByName ¶
func GetCloudConfigByName(name string) (CloudConfig, error)
func GetCloudConfigs ¶
func GetCloudConfigs() ([]CloudConfig, error)
func (CloudConfig) Save ¶
func (c CloudConfig) Save() error
type CloudConfigsResponse ¶
type CloudConfigsResponse struct {
CloudConfigs []CloudConfig `json:"cloudconfigs"`
}
type Machine ¶
type Machine struct { Name string `json:"name"` MacAddress string `json:"macaddress"` Profile string `json:"profile"` }
func GetMachineByName ¶
func GetMachines ¶
type Profile ¶
type Profile struct { Name string `json:"name"` CloudConfig string `json:"cloud_config"` Console string `json:"console"` CoreosAutologin string `json:"coreos_autologin"` RootFstype string `json:"rootfstype"` Root string `json:"root"` SSHKey string `json:"sshkey"` Version string `json:"version"` }
func GetProfileByName ¶
func GetProfiles ¶
type ProfilesResponse ¶
type ProfilesResponse struct {
Profiles []Profile `json:"profiles"`
}
type SSHKey ¶
type SSHKey struct { Name string `json:"name"` Fingerprint string `json:"fingerprint"` Key string `json:"key"` }
func GetSSHKeyByName ¶
func GetSSHKeys ¶
type SSHKeysResponse ¶
type SSHKeysResponse struct {
SSHKeys []SSHKey `json:"sshkeys"`
}
Click to show internal directories.
Click to hide internal directories.