service

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateNamespace(namespaceName string) func(ctx context.Context) error
	RenameNamespace(oldName, newName string) func(ctx context.Context) error
	ListNamespaces() func(ctx context.Context) error
	DeleteNamespace(namespaceName string) func(ctx context.Context) error

	CreateContainer(namespaceName, containerName string) func(ctx context.Context) error
	MoveContainer(namespaceName, containerName, destinationNamespace string) func(ctx context.Context) error
	RenameContainer(namespaceName, oldName, newName string) func(ctx context.Context) error
	ListContainers(namespaceName string) func(ctx context.Context) error
	DeleteContainer(namespaceName, containerName string) func(ctx context.Context) error

	CreateVersion(namespaceName, containerName string, shouldPublish bool, fromDir, fromYumRepo, rpmGPGKey, rpmGPGKeyChecksum *string) func(ctx context.Context) error
	DeleteVersion(namespaceName, containerName, versionID string) func(ctx context.Context) error
	ListVersions(namespaceName, containerName string) func(ctx context.Context) error
	PublishVersion(namespaceName, containerName, versionID string) func(ctx context.Context) error

	CreateObject(namespaceName, containerName, versionID, directoryPath string) func(ctx context.Context) error
	ListObjects(namespaceName, containerName, versionID string) func(ctx context.Context) error
	GetObjectURL(namespaceName, containerName, versionID, objectKey string) func(ctx context.Context) error
	DeleteObject(namespaceName, containerName, versionID, objectKey string) func(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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