assetstore

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmsDocsTopicLabel = "cms.kyma-project.io/docs-topic"
	CmsTypeLabel      = "cms.kyma-project.io/type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address   string `envconfig:"default=minio.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            Resolver
	AssetStoreRetriever *assetStoreRetriever
	// contains filtered or unexported fields
}

func New

func New(restConfig *rest.Config, reCfg Config, informerResyncPeriod time.Duration) (*PluggableContainer, error)

func (*PluggableContainer) Disable

func (r *PluggableContainer) Disable() error

func (*PluggableContainer) Enable

func (r *PluggableContainer) Enable() error

type Resolver

type Resolver interface {
	ClusterAssetFilesField(ctx context.Context, obj *gqlschema.ClusterAsset, filterExtensions []string) ([]gqlschema.File, error)
	AssetFilesField(ctx context.Context, obj *gqlschema.Asset, filterExtensions []string) ([]gqlschema.File, error)
	ClusterAssetEventSubscription(ctx context.Context) (<-chan gqlschema.ClusterAssetEvent, error)
	AssetEventSubscription(ctx context.Context, namespace string) (<-chan gqlschema.AssetEvent, error)
}

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
automock
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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