rafter

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterAssetGroupModeSingle = "single"
	ClusterAssetGroupNameFormat = "%s-%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAssetGroupRepository

type ClusterAssetGroupRepository interface {
	Get(id string) (clusterassetgroup.Entry, apperrors.AppError)
	Upsert(documentationTopic clusterassetgroup.Entry) apperrors.AppError
	Delete(id string) apperrors.AppError
}

func NewClusterAssetGroupRepository

func NewClusterAssetGroupRepository(resourceInterface ResourceInterface) ClusterAssetGroupRepository

type ResourceInterface

type ResourceInterface interface {
	Get(ctx context.Context, name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions, subresources ...string) error
	Create(ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
	Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
}

type Service

type Service interface {
	Put(id string, apiType clusterassetgroup.ApiType, documentation, apiSpec, eventsSpec []byte) apperrors.AppError
	Get(id string) (documentation []byte, apiSpec []byte, eventsSpec []byte, apperr apperrors.AppError)
	Remove(id string) apperrors.AppError
}

func NewService

func NewService(repository ClusterAssetGroupRepository, uploadClient upload.Client, insecureAssetDownload bool, rafterRequestTimeout int) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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