repository

package
v1.16.29-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownState = errors.New("unknown state")

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetRepository(state state.LogState) (LogsRepository, error)
}

func NewJsMinioFactory added in v1.16.29

func NewJsMinioFactory(storageClient storage.ClientBucket, bucket string, logStream client.StreamGetter) Factory

type JetstreamLogsRepository

type JetstreamLogsRepository struct {
	// contains filtered or unexported fields
}

Jet

func (JetstreamLogsRepository) Get

type JsMinioFactory

type JsMinioFactory struct {
	// contains filtered or unexported fields
}

func (JsMinioFactory) GetRepository

func (b JsMinioFactory) GetRepository(s state.LogState) (LogsRepository, error)

type LogsRepository

type LogsRepository interface {
	Get(ctx context.Context, id string) (chan events.LogResponse, error)
}

LogsRepository is the repository primitive to get logs from

func NewJetstreamRepository

func NewJetstreamRepository(client client.StreamGetter) LogsRepository

func NewMinioRepository

func NewMinioRepository(storageClient storage.ClientBucket, bucket string) LogsRepository

type MinioLogsRepository

type MinioLogsRepository struct {
	// contains filtered or unexported fields
}

func (MinioLogsRepository) Get

type RepositoryBuilder

type RepositoryBuilder interface {
	GetRepository(state state.LogState) (LogsRepository, error)
}

RepositoryBuilder is responsible for getting valid repository based on execution state It'll be ususally for OSS when we'll get from NATS buffer or from Minio (when execution completed)

Jump to

Keyboard shortcuts

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