intern

package
v0.0.0-...-4e1c9af Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogClient

type CatalogClient struct {
	// contains filtered or unexported fields
}

func (*CatalogClient) AddProviderVisibility

func (c *CatalogClient) AddProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string, visibility []string) error

func (*CatalogClient) GetProviderVisibility

func (c *CatalogClient) GetProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string) ([]string, error)

func (*CatalogClient) RegisterDataProvider

func (c *CatalogClient) RegisterDataProvider(ctx context.Context, service ProviderInternalInfo) error

func (*CatalogClient) RemoveProvider

func (c *CatalogClient) RemoveProvider(ctx context.Context, providerType ptypes.ProviderType, ProviderId string) error

func (*CatalogClient) RemoveProviderVisibility

func (c *CatalogClient) RemoveProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string, visibility []string) error

func (*CatalogClient) SearchExistingProvider

func (c *CatalogClient) SearchExistingProvider(ctx context.Context, service ProviderInternalInfo) (ProviderInternalInfo, error)

type InternalCatalogAPI

type InternalCatalogAPI interface {
	RegisterDataProvider(ctx context.Context, service ProviderInternalInfo) error
	SearchExistingProvider(ctx context.Context, service ProviderInternalInfo) (ProviderInternalInfo, error)
	RemoveProvider(ctx context.Context, providerType ptypes.ProviderType, ProviderId string) error
	GetProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string) ([]string, error)
	AddProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string, visibility []string) error
	RemoveProviderVisibility(ctx context.Context, providerType ptypes.ProviderType, ProviderId string, visibility []string) error
}

func NewClient

func NewClient(url string) InternalCatalogAPI

type ProviderInternalInfo

type ProviderInternalInfo struct {
	Id                string                 `json:"id"`
	ProviderId        string                 `json:"providerId"`
	Visibility        []string               `json:"visibility" description:"A set of values that are allowed to see this resource"`
	Type              ptypes.ProviderType    `json:"providerType"`
	Version           string                 `json:"version"`
	Name              string                 `json:"name"`
	Description       string                 `json:"description"`
	Metadata          map[string]interface{} `json:"metadata"`
	EndpointLocation  string                 `json:"endpointLocation"`
	WorkflowStructure string                 `json:"workflowStructure"`
}

Jump to

Keyboard shortcuts

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