nexus

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MPL-2.0 Imports: 7 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 *policy.Score
}

type Client

type Client struct {
	AssetStore   policy.AssetStore
	ReportsSTore policy.ReportsStore
	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
	ReportsStore policy.ReportsStore
	Captain      captain.Captain
	Integrations integrations.IntegrationsManager

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

func NewSpace

func NewSpace(spaceMrn string, assetStore policy.AssetStore, reportsStore policy.ReportsStore, 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