config

package
v0.2.5-dev05 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationConfig = &ApplicationConfiguration{}
View Source
var KafkaConfig = &KafkaConfiguration{}
View Source
var PollingListenerRate uint

Functions

func GetConfigFile added in v0.1.15

func GetConfigFile(filepath string) (*port.Config, error)

func Init added in v0.1.15

func Init()

func NewBool added in v0.1.15

func NewBool(v *bool, key string, defaultValue bool, description string)

func NewConfiguration added in v0.1.15

func NewConfiguration() (*port.Config, error)

func NewString added in v0.1.15

func NewString(v *string, key string, defaultValue string, description string)

func NewUInt added in v0.1.15

func NewUInt(v *uint, key string, defaultValue uint, description string)

Types

type ApplicationConfiguration added in v0.1.15

type ApplicationConfiguration struct {
	ConfigFilePath         string
	StateKey               string
	ResyncInterval         uint
	PortBaseURL            string
	PortClientId           string
	PortClientSecret       string
	EventListenerType      string
	CreateDefaultResources bool
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	Resources []port.Resource
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	DeleteDependents bool `json:"deleteDependents,omitempty"`
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	CreateMissingRelatedEntities bool `json:"createMissingRelatedEntities,omitempty"`
}

type FileNotFoundError added in v0.1.15

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

func (*FileNotFoundError) Error added in v0.1.15

func (e *FileNotFoundError) Error() string

type KafkaConfiguration added in v0.1.15

type KafkaConfiguration struct {
	Brokers                 string
	SecurityProtocol        string
	GroupID                 string
	AuthenticationMechanism string
	Username                string
	Password                string
	KafkaSecurityEnabled    bool
}

Jump to

Keyboard shortcuts

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