ocm

package
v0.0.0-...-8f85093 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Authorization OCMAuthorization
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config Config) (*Client, error)

func NewClientMock

func NewClientMock(config Config) (*Client, error)

func (*Client) Close

func (c *Client) Close()

type Config

type Config struct {
	BaseURL      string
	ClientID     string
	ClientSecret string
	SelfToken    string
	TokenURL     string
	Debug        bool
}

type OCMAuthorization

type OCMAuthorization interface {
	SelfAccessReview(ctx context.Context, action, resourceType, organizationID, subscriptionID, clusterID string) (allowed bool, err error)
	AccessReview(ctx context.Context, username, action, resourceType, organizationID, subscriptionID, clusterID string) (allowed bool, err error)
}

Jump to

Keyboard shortcuts

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