Documentation ¶
Index ¶
- Constants
- Variables
- func ErrCheckOpensearchClusterFailed(clienterr error) error
- func ErrCreateFailedAlreadyExists(id string) error
- func ErrCreateNamespaceFailed(clienterr error) error
- func ErrGenerateCredentialsFailed(err error) error
- func ErrListingClustersFaled(clienterr error) error
- func ErrStoreClusterFailed(err error) error
- func ErrStoreUserCredentialsFailed(err error) error
- func Scheme(ctx context.Context) meta.Scheme
- type OpensearchDetailsResponse
- type Plugin
- func (p *Plugin) CanInstall() error
- func (p *Plugin) ConfigureRoutes(app *fiber.App)
- func (p *Plugin) Install(cluster *core.Reference) error
- func (p *Plugin) InstallerTemplate() string
- func (p *Plugin) UseKeyValueStore(system.KVStoreClient)
- func (p *Plugin) UseManagementAPI(client management.ManagementClient)
- type PluginOption
- type PluginOptions
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 ErrListingClustersFaled ¶
func ErrStoreClusterFailed ¶
Types ¶
type Plugin ¶
type Plugin struct { PluginOptions // contains filtered or unexported fields }
func (*Plugin) CanInstall ¶
func (*Plugin) ConfigureRoutes ¶
func (p *Plugin) ConfigureRoutes(app *fiber.App)
func (*Plugin) InstallerTemplate ¶
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)
Click to show internal directories.
Click to hide internal directories.