repository

package
v1.16.23-beta001 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 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)
}

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
}

LogsRepository is the repository primitive to get logs from

func NewJetstreamRepository

func NewJetstreamRepository(client client.Client) LogsRepository

func NewMinioRepository

func NewMinioRepository(minio *minio.Client) LogsRepository

type MinioLogsRepository

type MinioLogsRepository struct {
}

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