Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecodeBodyFn = func(body io.Reader, v interface{}) error { return json.NewDecoder(body).Decode(v) }
DecodeBodyFn reads the next JSON encoding of data and store the result in value pointed by v
View Source
var HTTPWrite = func(w *http.ResponseWriter, data []byte) (int, error) { (*w).WriteHeader(http.StatusOK) return (*w).Write([]byte(data)) }
HTTPWrite writes the data to the connection npart of any http request
View Source
var MarshalFn = func(v interface{}) ([]byte, error) { return json.Marshal(v) }
MarshalFn returns the JSON encoding of v
View Source
var UnMarshalFn = func(data []byte, v interface{}) error { return json.Unmarshal(data, v) }
UnMarshalFn parse the JSON encoding of data and the result in value pointed by v
Functions ¶
func GetSecuredCipherSuites ¶ added in v1.9.0
func GetSecuredCipherSuites() (suites []uint16)
GetSecuredCipherSuites returns a set of secure cipher suites.
Types ¶
type Service ¶
type Service struct { VolumeFinder VolumeInfoGetter CertFile string KeyFile string Port int Logger *logrus.Logger EnableDebug bool }
Service contains data required by the service
type TableResponse ¶
type TableResponse struct { Columns []map[string]string `json:"columns"` Rows [][]string `json:"rows"` Type string `json:"type"` }
TableResponse is the expected response for getting a list of volumes (reference: https://grafana.com/grafana/plugins/grafana-simple-json-datasource)
type VolumeInfoGetter ¶
type VolumeInfoGetter interface {
GetPersistentVolumes(ctx context.Context) ([]k8s.VolumeInfo, error)
}
VolumeInfoGetter is an interface used to get a list of volume information
Click to show internal directories.
Click to hide internal directories.