configuration

package
v0.0.0-...-46ee869 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	Enabled    bool                `yaml:"enabled"`
	RoleMapper string              `yaml:"roleMapper,omitempty"`
	Roles      []AuthorizationRole `yaml:"roles,omitempty"`
}

type AuthorizationRole

type AuthorizationRole struct {
	Name        string   `yaml:"name"`
	Permissions []string `yaml:"permissions"`
}

type BackupSite

type BackupSite struct {
	Address string `yaml:"address"`
	Name    string `yaml:"name"`
	Port    int32  `yaml:"port"`
}

type CloudEvents

type CloudEvents struct {
	BootstrapServers  string `yaml:"bootstrapServers"`
	Acks              string `yaml:"acks"`
	CacheEntriesTopic string `yaml:"cacheEntriesTopic"`
}

type DNSPing

type DNSPing struct {
	Query string
}

DNSPing configures DNS cluster lookup settings

type Endpoints

type Endpoints struct {
	Authenticate   bool   `yaml:"auth"`
	DedicatedAdmin bool   `yaml:"dedicatedAdmin"`
	ClientCert     string `yaml:"clientCert,omitempty"`
}

type Infinispan

type Infinispan struct {
	Authorization    Authorization `yaml:"authorization,omitempty"`
	ClusterName      string        `yaml:"clusterName"`
	ZeroCapacityNode bool          `yaml:"zeroCapacityNode"`
	Locks            Locks         `yaml:"locks"`
}

type InfinispanConfiguration

type InfinispanConfiguration struct {
	Infinispan  Infinispan   `yaml:"infinispan"`
	JGroups     JGroups      `yaml:"jgroups"`
	Keystore    Keystore     `yaml:"keystore,omitempty"`
	Truststore  Truststore   `yaml:"truststore,omitempty"`
	XSite       *XSite       `yaml:"xsite,omitempty"`
	Logging     Logging      `yaml:"logging,omitempty"`
	Endpoints   Endpoints    `yaml:"endpoints"`
	CloudEvents *CloudEvents `yaml:"cloudEvents,omitempty"`
}

InfinispanConfiguration is the top level configuration type

func FromYaml

func FromYaml(src string) (*InfinispanConfiguration, error)

func (*InfinispanConfiguration) Yaml

func (c *InfinispanConfiguration) Yaml() (string, error)

type JGroups

type JGroups struct {
	Transport   string
	DNSPing     DNSPing `yaml:"dnsPing"`
	Diagnostics bool    `yaml:"diagnostics"`
}

JGroups configures clustering layer

type Keystore

type Keystore struct {
	Path     string
	Password string
	Alias    string
	CrtPath  string `yaml:"crtPath,omitempty"`
}

Keystore configuration info for endpoint encryption

type Locks

type Locks struct {
	Owners      int32  `yaml:"owners,omitempty"`
	Reliability string `yaml:"reliability,omitempty"`
}

type Logging

type Logging struct {
	Categories map[string]string `yaml:"categories,omitempty"`
}

type Truststore

type Truststore struct {
	CaFile   string `yaml:"cafile,omitempty"`
	Certs    string `yaml:"certs,omitempty"`
	Path     string `yaml:"path,omitempty"`
	Password string
}

Truststore configuration info for endpoint encryption

type XSite

type XSite struct {
	Address string       `yaml:"address"`
	Name    string       `yaml:"name"`
	Port    int32        `yaml:"port"`
	Backups []BackupSite `yaml:"backups"`
}

Jump to

Keyboard shortcuts

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