logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 39 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ClusterIDHeader = "OpniClusterID"
)
View Source
const (
	OpensearchBindingName = "opni-logging"
)

Variables

View Source
var (
	ErrClusterAlreadyExists = errors.New("cluster already exists")
	ErrClusterIDMissing     = errors.New("request does not include cluster ID")
)

Functions

func ErrCheckOpensearchClusterFailed

func ErrCheckOpensearchClusterFailed(clienterr error) error

func ErrCreateFailedAlreadyExists

func ErrCreateFailedAlreadyExists(id string) error

func ErrCreateNamespaceFailed

func ErrCreateNamespaceFailed(clienterr error) error

func ErrGenerateCredentialsFailed

func ErrGenerateCredentialsFailed(err error) error

func ErrListingClustersFaled

func ErrListingClustersFaled(clienterr error) error

func ErrStoreClusterFailed

func ErrStoreClusterFailed(err error) error

func ErrStoreUserCredentialsFailed

func ErrStoreUserCredentialsFailed(err error) error

func Scheme

func Scheme(ctx context.Context) meta.Scheme

Types

type OpensearchDetailsResponse

type OpensearchDetailsResponse struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	ExternalURL string `json:"externalURL"`
}

type Plugin

type Plugin struct {
	PluginOptions
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(ctx context.Context, opts ...PluginOption) *Plugin

func (*Plugin) CanInstall

func (p *Plugin) CanInstall() error

func (*Plugin) ConfigureRoutes

func (p *Plugin) ConfigureRoutes(app *fiber.App)

func (*Plugin) Install

func (p *Plugin) Install(cluster *core.Reference) error

func (*Plugin) InstallerTemplate

func (p *Plugin) InstallerTemplate() string

func (*Plugin) UseKeyValueStore

func (p *Plugin) UseKeyValueStore(system.KVStoreClient)

func (*Plugin) UseManagementAPI

func (p *Plugin) UseManagementAPI(client management.ManagementClient)

type PluginOption

type PluginOption func(*PluginOptions)

func WithNamespace

func WithNamespace(namespace string) PluginOption

func WithOpensearchCluster

func WithOpensearchCluster(cluster *opnimeta.OpensearchClusterRef) PluginOption

type PluginOptions

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

func (*PluginOptions) Apply

func (o *PluginOptions) Apply(opts ...PluginOption)

Jump to

Keyboard shortcuts

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