sca

package
v0.0.0-...-5e2dd6f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName  = "scaController"
	AvailableReason = "Updated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

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

func New

func New(coreClient corev1client.CoreV1Interface, configurator configobserver.Interface,
	insightsClient *insightsclient.Client) *Controller

New creates new instance

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

Run periodically queries the OCM API and update corresponding secret accordingly

type Response

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

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

Jump to

Keyboard shortcuts

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