Documentation
¶
Index ¶
- func ParsePlacementArgs(args string) (map[string]string, error)
- type Client
- type PlacementOperations
- func (p *PlacementOperations) CreatePlacement(name, selector, policy string, cfg *config.ConfigData) (string, error)
- func (p *PlacementOperations) DeletePlacement(name string, cfg *config.ConfigData) (string, error)
- func (p *PlacementOperations) GetPlacement(name string, cfg *config.ConfigData) (string, error)
- func (p *PlacementOperations) ListPlacements(cfg *config.ConfigData) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the mcp-kubernetes kubectl executor
func (*Client) ExecuteKubectl ¶
ExecuteKubectl executes a kubectl command
type PlacementOperations ¶
type PlacementOperations struct {
// contains filtered or unexported fields
}
PlacementOperations handles Fleet placement CRD operations
func NewPlacementOperations ¶
func NewPlacementOperations(client *Client) *PlacementOperations
NewPlacementOperations creates a new placement operations handler
func (*PlacementOperations) CreatePlacement ¶
func (p *PlacementOperations) CreatePlacement(name, selector, policy string, cfg *config.ConfigData) (string, error)
CreatePlacement creates a new ClusterResourcePlacement using kubectl
func (*PlacementOperations) DeletePlacement ¶
func (p *PlacementOperations) DeletePlacement(name string, cfg *config.ConfigData) (string, error)
DeletePlacement deletes a ClusterResourcePlacement by name using kubectl
func (*PlacementOperations) GetPlacement ¶
func (p *PlacementOperations) GetPlacement(name string, cfg *config.ConfigData) (string, error)
GetPlacement retrieves a ClusterResourcePlacement by name using kubectl
func (*PlacementOperations) ListPlacements ¶
func (p *PlacementOperations) ListPlacements(cfg *config.ConfigData) (string, error)
ListPlacements lists all ClusterResourcePlacements using kubectl
Click to show internal directories.
Click to hide internal directories.