Documentation ¶
Index ¶
- func SetInstance(i Ops)
- type Client
- func (c *Client) CreateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error)
- func (c *Client) DeleteVolumePlacementStrategy(name string) error
- func (c *Client) GetVolumePlacementStrategy(name string) (*talismanv1beta2.VolumePlacementStrategy, error)
- func (c *Client) ListVolumePlacementStrategies() (*talismanv1beta2.VolumePlacementStrategyList, error)
- func (c *Client) SetConfig(cfg *rest.Config)
- func (c *Client) UpdateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error)
- type Ops
- type VolumePlacementStrategyOps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstance ¶
func SetInstance(i Ops)
SetInstance replaces the instance with the provided one. Should be used only for testing purposes.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper for the talisman operator client.
func NewForConfig ¶
NewForConfig builds a new talisman client for the given config.
func (*Client) CreateVolumePlacementStrategy ¶
func (c *Client) CreateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error)
CreateVolumePlacementStrategy creates a new volume placement strategy
func (*Client) DeleteVolumePlacementStrategy ¶
DeleteVolumePlacementStrategy deletes the volume placement strategy with given name
func (*Client) GetVolumePlacementStrategy ¶
func (c *Client) GetVolumePlacementStrategy(name string) (*talismanv1beta2.VolumePlacementStrategy, error)
GetVolumePlacementStrategy returns the volume placememt strategy with given name
func (*Client) ListVolumePlacementStrategies ¶
func (c *Client) ListVolumePlacementStrategies() (*talismanv1beta2.VolumePlacementStrategyList, error)
ListVolumePlacementStrategies lists all volume placement strategies
func (*Client) UpdateVolumePlacementStrategy ¶
func (c *Client) UpdateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error)
UpdateVolumePlacementStrategy updates an existing volume placement strategy
type Ops ¶
type Ops interface { VolumePlacementStrategyOps // SetConfig sets the config and resets the client SetConfig(config *rest.Config) }
Ops is an interface to Talisman operations.
func NewInstanceFromConfigFile ¶
NewInstanceFromConfigFile returns new instance of client by using given config file
type VolumePlacementStrategyOps ¶
type VolumePlacementStrategyOps interface { // CreateVolumePlacementStrategy creates a new volume placement strategy CreateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error) // UpdateVolumePlacementStrategy updates an existing volume placement strategy UpdateVolumePlacementStrategy(spec *talismanv1beta2.VolumePlacementStrategy) (*talismanv1beta2.VolumePlacementStrategy, error) // ListVolumePlacementStrategies lists all volume placement strategies ListVolumePlacementStrategies() (*talismanv1beta2.VolumePlacementStrategyList, error) // DeleteVolumePlacementStrategy deletes the volume placement strategy with given name DeleteVolumePlacementStrategy(name string) error // GetVolumePlacementStrategy returns the volume placememt strategy with given name GetVolumePlacementStrategy(name string) (*talismanv1beta2.VolumePlacementStrategy, error) }
VolumePlacementStrategyOps is an interface to perform CRUD volume placememt strategy ops