rafter

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace_AssetGroupName_Index      = "namespace/assetGroupName"
	Namespace_AssetGroupName_Type_Index = "namespace/assetGroupName/type"
)
View Source
const (
	AssetGroupName_Index      = "assetGroupName"
	AssetGroupName_Type_Index = "assetGroupName/type"
)
View Source
const (
	ViewContext_GroupName_Index = "viewContext/groupName"
	ViewContext_Index           = "viewContext"
	GroupName_Index             = "groupName"
)
View Source
const (
	ViewContextLabel = "rafter.kyma-project.io/view-context"
	GroupNameLabel   = "rafter.kyma-project.io/group-name"
	AssetGroupLabel  = "rafter.kyma-project.io/asset-group"
	OrderLabel       = "rafter.kyma-project.io/order"
	TypeLabel        = "rafter.kyma-project.io/type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address   string `envconfig:"default=storage.kyma.local"`
	Secure    bool   `envconfig:"default=true"`
	VerifySSL bool   `envconfig:"default=true"`
}

type File

type File struct {
	URL      string
	Metadata *runtime.RawExtension
}

type PluggableContainer

type PluggableContainer struct {
	*module.Pluggable

	Resolver
	Retriever *retriever
	// contains filtered or unexported fields
}

func New

func New(serviceFactory *resource.ServiceFactory, reCfg Config) (*PluggableContainer, error)

func (*PluggableContainer) Disable

func (r *PluggableContainer) Disable() error

func (*PluggableContainer) Enable

func (r *PluggableContainer) Enable() error

type Resolver

type Resolver interface {
	ClusterAssetGroupsQuery(ctx context.Context, viewContext *string, groupName *string) ([]*gqlschema.ClusterAssetGroup, error)

	ClusterAssetGroupEventSubscription(ctx context.Context) (<-chan *gqlschema.ClusterAssetGroupEvent, error)
	AssetGroupEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.AssetGroupEvent, error)

	ClusterAssetGroupAssetsField(ctx context.Context, obj *gqlschema.ClusterAssetGroup, types []string) ([]*gqlschema.ClusterAsset, error)
	AssetGroupAssetsField(ctx context.Context, obj *gqlschema.AssetGroup, types []string) ([]*gqlschema.Asset, error)

	ClusterAssetEventSubscription(ctx context.Context) (<-chan *gqlschema.ClusterAssetEvent, error)
	AssetEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.AssetEvent, error)

	ClusterAssetFilesField(ctx context.Context, obj *gqlschema.ClusterAsset, filterExtensions []string) ([]*gqlschema.File, error)
	AssetFilesField(ctx context.Context, obj *gqlschema.Asset, filterExtensions []string) ([]*gqlschema.File, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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