Documentation
¶
Index ¶
- type BinariesProvider
- func (p *BinariesProvider) Configure(rawCfg provider.ProviderConfig) error
- func (p *BinariesProvider) Name() string
- func (p *BinariesProvider) Plan(ctx context.Context) (*provider.SyncPlan, error)
- func (p *BinariesProvider) SetName(name string)
- func (p *BinariesProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
- func (p *BinariesProvider) Type() string
- func (p *BinariesProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
- type ClientsProvider
- func (p *ClientsProvider) Configure(rawCfg provider.ProviderConfig) error
- func (p *ClientsProvider) Name() string
- func (p *ClientsProvider) Plan(ctx context.Context) (*provider.SyncPlan, error)
- func (p *ClientsProvider) SetName(name string)
- func (p *ClientsProvider) SetValidationProgress(fn provider.ValidationProgressFn)
- func (p *ClientsProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
- func (p *ClientsProvider) Type() string
- func (p *ClientsProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
- type RHCOSProvider
- func (p *RHCOSProvider) Configure(rawCfg provider.ProviderConfig) error
- func (p *RHCOSProvider) Name() string
- func (p *RHCOSProvider) Plan(ctx context.Context) (*provider.SyncPlan, error)
- func (p *RHCOSProvider) SetName(name string)
- func (p *RHCOSProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
- func (p *RHCOSProvider) Type() string
- func (p *RHCOSProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinariesProvider ¶
type BinariesProvider struct {
// contains filtered or unexported fields
}
BinariesProvider implements provider.Provider for OCP client binaries.
func NewBinariesProvider ¶
func NewBinariesProvider(dataDir string, logger *slog.Logger) *BinariesProvider
NewBinariesProvider creates a new OCP binaries provider.
func (*BinariesProvider) Configure ¶
func (p *BinariesProvider) Configure(rawCfg provider.ProviderConfig) error
Configure loads provider-specific settings from the raw config.
func (*BinariesProvider) Name ¶
func (p *BinariesProvider) Name() string
Name returns the provider identifier.
func (*BinariesProvider) Plan ¶
Plan compares upstream manifest against local state and returns a plan.
func (*BinariesProvider) SetName ¶
func (p *BinariesProvider) SetName(name string)
SetName overrides the default provider name with the user-chosen config name.
func (*BinariesProvider) Sync ¶
func (p *BinariesProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
Sync executes the plan — downloads, validates, retries.
func (*BinariesProvider) Type ¶
func (p *BinariesProvider) Type() string
func (*BinariesProvider) Validate ¶
func (p *BinariesProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
Validate checks integrity of all local content against stored checksums.
type ClientsProvider ¶
type ClientsProvider struct {
// contains filtered or unexported fields
}
ClientsProvider implements provider.Provider for OCP client binaries (oc and openshift-install) with channel-based auto-discovery and platform filtering.
func NewClientsProvider ¶
func NewClientsProvider(dataDir string, logger *slog.Logger) *ClientsProvider
NewClientsProvider creates a new OCP clients provider.
func (*ClientsProvider) Configure ¶
func (p *ClientsProvider) Configure(rawCfg provider.ProviderConfig) error
Configure loads provider-specific settings from the raw config.
func (*ClientsProvider) Name ¶
func (p *ClientsProvider) Name() string
Name returns the provider identifier.
func (*ClientsProvider) Plan ¶
Plan compares upstream artifacts against local state and returns a sync plan. For each configured channel, it discovers the latest releases via the graph API. For each pinned version, it includes it directly. Artifacts are filtered by the configured platforms.
func (*ClientsProvider) SetName ¶
func (p *ClientsProvider) SetName(name string)
SetName overrides the default provider name with the user-chosen config name.
func (*ClientsProvider) SetValidationProgress ¶
func (p *ClientsProvider) SetValidationProgress(fn provider.ValidationProgressFn)
SetValidationProgress sets the callback for per-file validation progress.
func (*ClientsProvider) Sync ¶
func (p *ClientsProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
Sync executes the plan — stub, actual downloads handled by the sync engine.
func (*ClientsProvider) Type ¶
func (p *ClientsProvider) Type() string
Type returns the provider type string.
func (*ClientsProvider) Validate ¶
func (p *ClientsProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
Validate checks integrity of all local content against upstream sha256sum.txt. For each configured version, it fetches the manifest and verifies local files.
type RHCOSProvider ¶
type RHCOSProvider struct {
// contains filtered or unexported fields
}
RHCOSProvider implements provider.Provider for RHCOS images.
func NewRHCOSProvider ¶
func NewRHCOSProvider(dataDir string, logger *slog.Logger) *RHCOSProvider
NewRHCOSProvider creates a new RHCOS provider.
func (*RHCOSProvider) Configure ¶
func (p *RHCOSProvider) Configure(rawCfg provider.ProviderConfig) error
Configure loads provider-specific settings from the raw config.
func (*RHCOSProvider) Name ¶
func (p *RHCOSProvider) Name() string
Name returns the provider identifier.
func (*RHCOSProvider) Plan ¶
Plan compares upstream manifest against local state and returns a plan.
func (*RHCOSProvider) SetName ¶
func (p *RHCOSProvider) SetName(name string)
SetName overrides the default provider name with the user-chosen config name.
func (*RHCOSProvider) Sync ¶
func (p *RHCOSProvider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
Sync executes the plan — downloads, validates, retries.
func (*RHCOSProvider) Type ¶
func (p *RHCOSProvider) Type() string
func (*RHCOSProvider) Validate ¶
func (p *RHCOSProvider) Validate(ctx context.Context) (*provider.ValidationReport, error)
Validate checks integrity of all local content against stored checksums.