rhsm

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerSecrets

type ConsumerSecrets struct {
	ConsumerKey  string
	ConsumerCert string
}

These secrets are present on any subscribed system and uniquely identify the host

type RHSMSecrets

type RHSMSecrets struct {
	SSLCACert     string
	SSLClientKey  string
	SSLClientCert string
}

RHSMSecrets represents a set of CA certificate, client key, and client certificate for a specific repository.

type Subscriptions

type Subscriptions struct {
	Consumer *ConsumerSecrets
	// contains filtered or unexported fields
}

Subscriptions encapsulates all available subscriptions from the host system.

func LoadSystemSubscriptions

func LoadSystemSubscriptions() (*Subscriptions, error)

LoadSystemSubscriptions loads all the available subscriptions.

func (*Subscriptions) GetSecretsForBaseurl

func (s *Subscriptions) GetSecretsForBaseurl(baseurls []string, arch, releasever string) (*RHSMSecrets, error)

GetSecretsForBaseurl queries the Subscriptions structure for a RHSMSecrets of a single repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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