interfaces

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	TarGz(destination string, sources []string) error
	UnTarGz(source, destination string) error
}

Archiver interface for mocking archive operations

type ConsulClient

type ConsulClient interface {
	ListKeys() (consulapi.KVPairs, error)
	ListPQs() ([]*consulapi.PreparedQueryDefinition, error)
	ListACLs() ([]*consulapi.ACLEntry, error)
	PutKV(key string, value []byte) error
	CreatePQ(pq *consulapi.PreparedQueryDefinition) error
	CreateACL(acl *consulapi.ACLEntry) error
}

ConsulClient interface for mocking consul operations

type FileSystem

type FileSystem interface {
	WriteFile(filename string, data []byte, perm int) error
	ReadFile(filename string) ([]byte, error)
	MkdirAll(path string, perm int) error
	Remove(path string) error
	RemoveAll(path string) error
}

FileSystem interface for mocking file operations

type Logger

type Logger interface {
	Printf(format string, args ...interface{})
	Print(args ...interface{})
	Fatalf(format string, args ...interface{})
	Fatal(args ...interface{})
}

Logger interface for mocking logging

type StorageClient

type StorageClient interface {
	Upload(bucket, key string, data []byte) error
	Download(bucket, key string) ([]byte, error)
}

StorageClient interface for mocking cloud storage operations

Jump to

Keyboard shortcuts

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