internal

package
v0.0.0-...-8af5309 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCLIArangoDBOperatorIntegrationReadme

func GenerateCLIArangoDBOperatorIntegrationReadme(root string) error

func GenerateCLIArangoDBOperatorOpsReadme

func GenerateCLIArangoDBOperatorOpsReadme(root string) error

func GenerateCLIArangoDBOperatorReadme

func GenerateCLIArangoDBOperatorReadme(root string) error

func GenerateHelp

func GenerateHelp(cmd *cobra.Command, args ...string) (string, error)

func GenerateHelpQuoted

func GenerateHelpQuoted(cmd *cobra.Command, args ...string) (string, error)

func GenerateHelpRaw

func GenerateHelpRaw(cmd *cobra.Command, args ...string) (string, error)

func GenerateMetricsDocumentation

func GenerateMetricsDocumentation(root string, in MetricsDoc) error

func GenerateReadme

func GenerateReadme(root string) error

func GenerateReadmeFeatures

func GenerateReadmeFeatures(root, basePath string, eeOnly bool) (string, error)

func GenerateReadmeLimits

func GenerateReadmeLimits(root string) (string, error)

func GenerateReadmePlatforms

func GenerateReadmePlatforms(root string) (string, error)

func ListTimezones

func ListTimezones() ([]Timezone, []TimezoneData)

func RenderActions

func RenderActions(root string) error

func RenderTimezones

func RenderTimezones(root string) error

Types

type Action

type Action struct {
	Timeout                   *meta.Duration `json:"timeout,omitempty"`
	StartupFailureGracePeriod *meta.Duration `json:"startupFailureGracePeriod,omitempty"`

	Scopes []string `json:"scopes,omitempty"`

	Description string `json:"description"`

	Enterprise bool `json:"enterprise"`

	IsInternal bool `json:"isInternal"`

	Optional bool `json:"optional"`

	Configurable bool `json:"configurable"`

	Deprecated *string `json:"deprecated"`
}

func (Action) InScope

func (a Action) InScope(scope string) bool

type ActionsInput

type ActionsInput struct {
	DefaultTimeout meta.Duration `json:"default_timeout"`

	Actions map[string]Action `json:"actions"`
}

func (ActionsInput) Configurable

func (i ActionsInput) Configurable() []string

func (ActionsInput) Deprecated

func (i ActionsInput) Deprecated() map[string]string

func (ActionsInput) Descriptions

func (i ActionsInput) Descriptions() map[string]string

func (ActionsInput) HighestScopes

func (i ActionsInput) HighestScopes() map[string]string

func (ActionsInput) Internal

func (i ActionsInput) Internal() map[string]string

func (ActionsInput) Keys

func (i ActionsInput) Keys() []string

func (ActionsInput) Optionals

func (i ActionsInput) Optionals() map[string]bool

func (ActionsInput) Scopes

func (i ActionsInput) Scopes() map[string]Scopes

func (ActionsInput) StartFailureGracePeriods

func (i ActionsInput) StartFailureGracePeriods() map[string]string

func (ActionsInput) Timeouts

func (i ActionsInput) Timeouts() map[string]string

type Alerting

type Alerting struct {
	Priority    string `json:"priority" yaml:"priority"`
	Query       string `json:"query" yaml:"query"`
	Description string `json:"description" yaml:"description"`
}

type Feature

type Feature struct {
	Name     string          `json:"name,omitempty" yaml:"name,omitempty"`
	Releases FeatureReleases `json:"releases,omitempty" yaml:"releases,omitempty"`

	FeatureRelease `json:",inline" yaml:",inline"`
}

type FeatureRelease

type FeatureRelease struct {
	Doc *string `json:"doc,omitempty" yaml:"doc,omitempty"`

	OperatorVersion *string `json:"operatorVersion,omitempty" yaml:"operatorVersion,omitempty"`
	ArangoDBVersion *string `json:"arangoDBVersion,omitempty" yaml:"arangoDBVersion,omitempty"`

	OperatorEdition *string `json:"operatorEditions,omitempty" yaml:"operatorEditions,omitempty"`
	ArangoDBEdition *string `json:"arangoDBEditions,omitempty" yaml:"arangoDBEditions,omitempty"`

	State   *string `json:"state,omitempty" yaml:"state,omitempty"`
	Flag    *string `json:"flag,omitempty" yaml:"flag,omitempty"`
	Remarks *string `json:"remarks,omitempty" yaml:"remarks,omitempty"`

	Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
}

type FeatureReleases

type FeatureReleases []FeatureRelease

type Features

type Features []Feature

type FeaturesDoc

type FeaturesDoc struct {
	Features Features `json:"features,omitempty" yaml:"features,omitempty"`
}

type Groups

type Groups map[string]Metrics

func (Groups) Keys

func (n Groups) Keys() []string

type Label

type Label struct {
	Key         string  `json:"key" yaml:"key"`
	Description string  `json:"description" yaml:"description"`
	Type        *string `json:"type" yaml:"type"`
}

type Limit

type Limit struct {
	Name        string  `json:"name" yaml:"name"`
	Description string  `json:"description" yaml:"description"`
	Community   *string `json:"community,omitempty" yaml:"community,omitempty"`
	Enterprise  *string `json:"enterprise,omitempty" yaml:"enterprise,omitempty"`
}

type Limits

type Limits []Limit

type LimitsDoc

type LimitsDoc struct {
	Limits Limits `json:"limits,omitempty" yaml:"limits,omitempty"`
}

type Metric

type Metric struct {
	Description      string `json:"description" yaml:"description"`
	Type             string `json:"type" yaml:"type"`
	ShortDescription string `json:"shortDescription" yaml:"shortDescription"`

	Global bool `json:"global" yaml:"global"`

	Labels        []Label    `json:"labels" yaml:"labels"`
	AlertingRules []Alerting `json:"alertingRules" yaml:"alertingRules"`
}

type Metrics

type Metrics map[string]Metric

func (Metrics) Keys

func (n Metrics) Keys() []string

type MetricsDoc

type MetricsDoc struct {
	Destination   string `json:"destination" yaml:"destination"`
	Documentation string `json:"documentation" yaml:"documentation"`

	Namespaces Namespaces `json:"namespaces" yaml:"namespaces"`
}

type Namespaces

type Namespaces map[string]Groups

func (Namespaces) Keys

func (n Namespaces) Keys() []string

type Platform

type Platform struct {
	Name     string            `json:"name,omitempty" yaml:"name,omitempty"`
	Versions []PlatformVersion `json:"versions,omitempty" yaml:"versions,omitempty"`
}

type PlatformVersion

type PlatformVersion struct {
	KubernetesVersion *string `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion,omitempty"`
	ArangoDBVersion   *string `json:"arangoDBVersion,omitempty" yaml:"arangoDBVersion,omitempty"`
	State             *string `json:"state,omitempty" yaml:"state,omitempty"`
	Remarks           *string `json:"remarks,omitempty" yaml:"remarks,omitempty"`
	ProviderRemarks   *string `json:"providerRemarks,omitempty" yaml:"providerRemarks,omitempty"`
}

type Platforms

type Platforms []Platform

type PlatformsDoc

type PlatformsDoc struct {
	Platforms Platforms `json:"platforms,omitempty" yaml:"platforms,omitempty"`
}

type Scopes

type Scopes struct {
	Normal, High, Resource bool
}

func (Scopes) String

func (s Scopes) String() string

type Timezone

type Timezone struct {
	Name   string
	Offset int64
	Zone   string
	Parent string
}

type TimezoneData

type TimezoneData struct {
	Name string
	Data string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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