ocm

package
Version: v0.0.0-...-2f2e2a0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator interface {
	Config() *config.Controller
	ConfigChanged() (<-chan struct{}, func())
}

Configurator represents the interface to retrieve the configuration for the gatherer

type Controller

type Controller struct {
	controllerstatus.Simple
	// contains filtered or unexported fields
}

Controller holds all the required resources to be able to communicate with OCM API

func New

func New(ctx context.Context, coreClient corev1client.CoreV1Interface, configurator Configurator,
	insightsClient *insightsclient.Client) *Controller

New creates new instance

func (*Controller) Run

func (c *Controller) Run()

Run periodically queries the OCM API and update corresponding secret accordingly

type ScaResponse

type ScaResponse struct {
	ID    string `json:"id"`
	OrgID string `json:"organization_id"`
	Key   string `json:"key"`
	Cert  string `json:"cert"`
}

ScaResponse structure is used to unmarshall the OCM response. It holds the SCA certificate

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL