writer

package
v0.0.0-...-0b89419 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Enabled bool

	// When buffer reaches the size of MaxSize, it tries to sync with object store.
	MaxSize int64
	// Whether to compress before syncing the buffer.
	Compress bool

	Writer *Writer
	// contains filtered or unexported fields
}

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) LoadDefaults

func (l *Logger) LoadDefaults(config ObjectStoreConfig) error

func (*Logger) Write

func (l *Logger) Write(p []byte) (n int, err error)

type ObjectStoreConfig

type ObjectStoreConfig struct {
	CreateBucket      bool
	DefaultBucketName string
	AccessKey         string
	SecretKey         string
	Region            string
	ServiceEndpoint   string
	Token             string
	S3ForcePathStyle  bool
}

type Writer

type Writer struct {
	DefaultBucketName string
	// contains filtered or unexported fields
}

func (*Writer) CreateNewBucket

func (w *Writer) CreateNewBucket(bucketName string) error

func (*Writer) Load

func (w *Writer) Load(o ObjectStoreConfig) error

func (*Writer) Write

func (w *Writer) Write(pipelineRunName, pipelineTaskName, resultName string, content []byte) error

Jump to

Keyboard shortcuts

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