rafter

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 16 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(name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
	Delete(name string, opts *metav1.DeleteOptions, subresources ...string) error
	Create(obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
	Update(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