server

package
v0.0.0-...-2062049 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("requested resource was not found")
View Source
var (
	// JsonPbMarshaller is the marshaller used for serializing protobuf messages.
	// If needed, this variable can be reassigned with a different marshaller with the same Marshal() signature.
	JsonPbMarshaller grpc_logging.JsonPbMarshaler = &jsonpb.Marshaler{}
)

Functions

This section is empty.

Types

type Backend

type Backend struct {
	pbVersion.UnimplementedVersionServiceServer
	// contains filtered or unexported fields
}

Backend implements the protobuf interface.

func New

func New(metadata fs.FS, releaseNotes fs.FS) (*Backend, error)

New initializes a new Backend struct.

func (*Backend) Apply

func (*Backend) Metadata

func (*Backend) MetadataV2

func (*Backend) Operator

func (*Backend) Product

type Deps

type Deps struct {
	Backup         map[string]interface{} `json:"backup,omitempty"`
	PMM            map[string]interface{} `json:"pmm,omitempty"`
	ProxySQL       map[string]interface{} `json:"proxy_sql,omitempty"`
	Haproxy        map[string]interface{} `json:"haproxy,omitempty"`
	LogCollector   map[string]interface{} `json:"logCollector,omitempty"`
	PgBackrest     map[string]interface{} `json:"pgbackrest,omitempty"`
	PgBackrestRepo map[string]interface{} `json:"pgbackrest_repo,omitempty"`
	Pgbadger       map[string]interface{} `json:"pgbadger,omitempty"`
	Pgbouncer      map[string]interface{} `json:"pgbouncer,omitempty"`
	Postgis        map[string]interface{} `json:"postgis,omitempty"`
	Orchestrator   map[string]interface{} `json:"orchestrator,omitempty"`
	Router         map[string]interface{} `json:"router,omitempty"`
	Toolkit        map[string]interface{} `json:"toolkit,omitempty"`
}

type Metadata

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

func NewMetadata

func NewMetadata(fs fs.FS) (*Metadata, error)

func (*Metadata) Product

func (m *Metadata) Product(product string) (*pbVersion.MetadataResponse, error)

func (*Metadata) ProductV2

func (m *Metadata) ProductV2(product string) (*pbVersion.MetadataV2Response, error)

type ReleaseNotes

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

func NewReleaseNotes

func NewReleaseNotes(fs fs.FS) *ReleaseNotes

func (*ReleaseNotes) GetReleaseNote

func (r *ReleaseNotes) GetReleaseNote(product, version string) (*pbVersion.GetReleaseNotesResponse, error)

Jump to

Keyboard shortcuts

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