nexus

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetWithScore

type AssetWithScore struct {
	Asset *policy.Asset
	Score *cnspec.Score
}

type Client

type Client struct {
	AssetStore     policy.AssetStore
	PolicyResolver cnspec.PolicyResolver
	Captain        captain.Captain
	Integrations   integrations.IntegrationsManager
	// contains filtered or unexported fields
}

func NewClient

func NewClient(serviceAccount *upstream.ServiceAccountCredentials) (*Client, error)

func (*Client) GetSpace

func (c *Client) GetSpace() *Space

TODO: when we support creating spaces this will actually create a space

type Space

type Space struct {
	AssetStore     policy.AssetStore
	PolicyResolver cnspec.PolicyResolver
	Captain        captain.Captain
	Integrations   integrations.IntegrationsManager

	K8s *k8s.Client
	// contains filtered or unexported fields
}

func NewSpace

func NewSpace(spaceMrn string, assetStore policy.AssetStore, policyResolver cnspec.PolicyResolver, captain captain.Captain, integrations integrations.IntegrationsManager) *Space

func (*Space) DeleteAssetsManagedBy

func (s *Space) DeleteAssetsManagedBy(ctx context.Context, managedBy string) error

func (*Space) ListAssetsWithScores

func (s *Space) ListAssetsWithScores(ctx context.Context, integrationMrn string) ([]AssetWithScore, error)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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