ocp

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

Sync executes the plan — downloads, validates, retries.

func (*BinariesProvider) Type

func (p *BinariesProvider) Type() string

func (*BinariesProvider) Validate

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

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

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

Sync executes the plan — downloads, validates, retries.

func (*RHCOSProvider) Type

func (p *RHCOSProvider) Type() string

func (*RHCOSProvider) Validate

Validate checks integrity of all local content against stored checksums.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL