Versions in this module Expand all Collapse all v1 v1.5.1 May 14, 2026 v1.5.0 May 13, 2026 Changes in this version + type Client struct + func New(c Config) (*Client, error) + func (c *Client) AddComponent(ctx context.Context, comp *types.Component) (*types.Component, error) + func (c *Client) AssociateRuleWithRack(ctx context.Context, rackID uuid.UUID, ruleID uuid.UUID) error + func (c *Client) AttachRacksToNVLDomain(ctx context.Context, nvlDomainID types.Identifier, rackIDs []types.Identifier) error + func (c *Client) Close() error + func (c *Client) CreateExpectedRack(ctx context.Context, rack *types.Rack) (uuid.UUID, error) + func (c *Client) CreateNVLDomain(ctx context.Context, nvlDomain *types.NVLDomain) (uuid.UUID, error) + func (c *Client) CreateOperationRule(ctx context.Context, name string, description string, ...) (uuid.UUID, error) + func (c *Client) DeleteComponent(ctx context.Context, componentID uuid.UUID) error + func (c *Client) DeleteOperationRule(ctx context.Context, ruleID uuid.UUID) error + func (c *Client) DeleteRack(ctx context.Context, rackID uuid.UUID) error + func (c *Client) DetachRacksFromNVLDomain(ctx context.Context, rackIDs []types.Identifier) error + func (c *Client) DisassociateRuleFromRack(ctx context.Context, rackID uuid.UUID, operationType types.OperationType, ...) error + func (c *Client) GetComponentInfoByID(ctx context.Context, id uuid.UUID, withRack bool) (*types.Component, *types.Rack, error) + func (c *Client) GetComponentInfoBySerial(ctx context.Context, manufacturer string, serial string, withRack bool) (*types.Component, *types.Rack, error) + func (c *Client) GetExpectedComponentsByComponentIDs(ctx context.Context, componentIDs []string, componentType types.ComponentType) (*GetExpectedComponentsResult, error) + func (c *Client) GetExpectedComponentsByRackIDs(ctx context.Context, rackIDs []uuid.UUID, componentType types.ComponentType) (*GetExpectedComponentsResult, error) + func (c *Client) GetExpectedComponentsByRackNames(ctx context.Context, rackNames []string, componentType types.ComponentType) (*GetExpectedComponentsResult, error) + func (c *Client) GetListOfNVLDomains(ctx context.Context, info *types.StringQueryInfo, pagination *types.Pagination) ([]*types.NVLDomain, int32, error) + func (c *Client) GetListOfRacks(ctx context.Context, info *types.StringQueryInfo, pagination *types.Pagination, ...) ([]*types.Rack, int32, error) + func (c *Client) GetOperationRule(ctx context.Context, ruleID uuid.UUID) (*types.OperationRule, error) + func (c *Client) GetRackInfoByID(ctx context.Context, id uuid.UUID, withComponents bool) (*types.Rack, error) + func (c *Client) GetRackInfoBySerial(ctx context.Context, manufacturer string, serial string, withComponents bool) (*types.Rack, error) + func (c *Client) GetRackRuleAssociation(ctx context.Context, rackID uuid.UUID, operationType types.OperationType, ...) (uuid.UUID, error) + func (c *Client) GetRacksForNVLDomain(ctx context.Context, nvlDomainID types.Identifier) ([]*types.Rack, error) + func (c *Client) GetTasksByIDs(ctx context.Context, taskIDs []uuid.UUID) ([]*types.Task, error) + func (c *Client) IngestRackByRackIDs(ctx context.Context, rackIDs []uuid.UUID, description string) (*IngestRackResult, error) + func (c *Client) IngestRackByRackNames(ctx context.Context, rackNames []string, description string) (*IngestRackResult, error) + func (c *Client) ListOperationRules(ctx context.Context, operationType *types.OperationType, isDefault *bool, ...) ([]*types.OperationRule, int, error) + func (c *Client) ListRackRuleAssociations(ctx context.Context, rackID uuid.UUID) ([]*types.RackRuleAssociation, error) + func (c *Client) ListTasks(ctx context.Context, rackID *uuid.UUID, activeOnly bool, ...) (*ListTasksResult, error) + func (c *Client) PatchComponent(ctx context.Context, componentID uuid.UUID, opts PatchComponentOpts) (*types.Component, error) + func (c *Client) PowerControlByMachineIDs(ctx context.Context, machineIDs []string, op types.PowerControlOp) (*PowerControlResult, error) + func (c *Client) PowerControlByRackIDs(ctx context.Context, rackIDs []uuid.UUID, componentType types.ComponentType, ...) (*PowerControlResult, error) + func (c *Client) PowerControlByRackNames(ctx context.Context, rackNames []string, componentType types.ComponentType, ...) (*PowerControlResult, error) + func (c *Client) PurgeComponent(ctx context.Context, componentID uuid.UUID) error + func (c *Client) PurgeRack(ctx context.Context, rackID uuid.UUID) error + func (c *Client) SetRuleAsDefault(ctx context.Context, ruleID uuid.UUID) error + func (c *Client) UpdateOperationRule(ctx context.Context, ruleID uuid.UUID, name *string, description *string, ...) error + func (c *Client) UpgradeFirmwareByMachineIDs(ctx context.Context, machineIDs []string, startTime, endTime *time.Time) (*UpgradeFirmwareResult, error) + func (c *Client) UpgradeFirmwareByRackIDs(ctx context.Context, rackIDs []uuid.UUID, componentType types.ComponentType, ...) (*UpgradeFirmwareResult, error) + func (c *Client) UpgradeFirmwareByRackNames(ctx context.Context, rackNames []string, componentType types.ComponentType, ...) (*UpgradeFirmwareResult, error) + func (c *Client) ValidateComponentsByComponentIDs(ctx context.Context, componentIDs []string, componentType types.ComponentType) (*ValidateComponentsResult, error) + func (c *Client) ValidateComponentsByRackIDs(ctx context.Context, rackIDs []uuid.UUID, componentType types.ComponentType) (*ValidateComponentsResult, error) + func (c *Client) ValidateComponentsByRackNames(ctx context.Context, rackNames []string, componentType types.ComponentType) (*ValidateComponentsResult, error) + type Config struct + CertConfig pkgcerts.Config + Host string + Port int + ServerName string + func (c *Config) Target() string + func (c *Config) Validate() error + type GetExpectedComponentsResult struct + Components []*types.Component + Total int + type IngestRackResult struct + TaskIDs []uuid.UUID + type ListTasksResult struct + Tasks []*types.Task + Total int + type PatchComponentOpts struct + BMCs []types.BMC + Description *string + FirmwareVersion *string + HostID *int32 + RackID *uuid.UUID + SlotID *int32 + TrayIndex *int32 + type PowerControlResult struct + TaskIDs []uuid.UUID + type UpgradeFirmwareResult struct + TaskIDs []uuid.UUID + type ValidateComponentsResult struct + Diffs []*types.ComponentDiff + DriftCount int + MatchCount int + MissingCount int + TotalDiffs int + UnexpectedCount int