Documentation ¶
Overview ¶
Package client implements a client to the kube-volume-freezer Minion API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgent = "kvf/" + version.Version
UserAgent that is sent with the HTTP Header on each request.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client performs requests to the Minion API.
func (*Client) Volumes ¶
func (c *Client) Volumes() VolumesService
Volumes returns a Service to manipulate Volume Resources.
type VolumesInterface ¶
type VolumesInterface interface {
Volumes() VolumesService
}
VolumesInterface is part of the Clients interface.
type VolumesService ¶
type VolumesService interface { List(podUID string) (*api.VolumeList, error) Get(podUID string, name string) (*api.Volume, error) Freeze(podUID string, name string) (*api.Volume, error) Thaw(podUID string, name string) (*api.Volume, error) }
VolumesService is an interface for interacting with volumes in the minion API.
Directories ¶
Path | Synopsis |
---|---|
Package clienttest provides utilities for testing the Minion Client.
|
Package clienttest provides utilities for testing the Minion Client. |
Click to show internal directories.
Click to hide internal directories.