ui

package
v0.0.0-...-66c7a0d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_ui_config_request_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigRequest

type ConfigRequest struct {
	V1 *ConfigRequest_V1 `protobuf:"bytes,3,opt,name=v1,proto3" json:"v1,omitempty" toml:"v1,omitempty" mapstructure:"v1,omitempty"`
	// contains filtered or unexported fields
}

func DefaultConfigRequest

func DefaultConfigRequest() *ConfigRequest

DefaultConfigRequest returns a new instance of ConfigRequest with default values.

func NewConfigRequest

func NewConfigRequest() *ConfigRequest

NewConfigRequest returns a new instance of ConfigRequest with zero values.

func (*ConfigRequest) BindPort

func (m *ConfigRequest) BindPort(name string, value uint16) error

BindPort sets the port tagged with the given name

func (*ConfigRequest) Descriptor deprecated

func (*ConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.

func (*ConfigRequest) GetPort

func (m *ConfigRequest) GetPort(name string) (uint16, error)

GetPort gets the port tagged with the given name. If the value is not set, it returns 0.

func (*ConfigRequest) GetSecret

func (m *ConfigRequest) GetSecret(name string) *wrappers.StringValue

GetSecret gets a secret by name. Returns nil if it is not set

func (*ConfigRequest) GetV1

func (x *ConfigRequest) GetV1() *ConfigRequest_V1

func (*ConfigRequest) ListPorts

func (m *ConfigRequest) ListPorts() []a2conf.PortInfo

ListPorts lists all the ports exposed by the config

func (*ConfigRequest) ListSecrets

func (m *ConfigRequest) ListSecrets() []a2conf.SecretInfo

ListSecrets lists all the secrets exposed by the config

func (*ConfigRequest) PrepareSystemConfig

func (c *ConfigRequest) PrepareSystemConfig(creds *ac.TLSCredentials) (ac.PreparedSystemConfig, error)

PrepareSystemConfig returns a system configuration that can be used to start the service.

func (*ConfigRequest) ProtoMessage

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) ProtoReflect

func (x *ConfigRequest) ProtoReflect() protoreflect.Message

func (*ConfigRequest) Reset

func (x *ConfigRequest) Reset()

func (*ConfigRequest) ServiceName

func (m *ConfigRequest) ServiceName() string

ServiceName returns the name of the service this config belongs to

func (*ConfigRequest) SetGlobalConfig

func (c *ConfigRequest) SetGlobalConfig(g *ac.GlobalConfig)

SetGlobalConfig imports settings from the global configuration

func (*ConfigRequest) SetSecret

func (m *ConfigRequest) SetSecret(name string, value *wrappers.StringValue) error

SetSecret sets a secret by name. Returns ErrSecretNotFound if the secret does not exist

func (*ConfigRequest) String

func (x *ConfigRequest) String() string

func (*ConfigRequest) Validate

func (c *ConfigRequest) Validate() error

Validate validates that the config is sufficient to start the Service. If validation succeeds it will return nil, if it fails it will return a new instance of config.InvalidConfigError that has the missing keys and invalid fields populated.

type ConfigRequest_V1

type ConfigRequest_V1 struct {
	Sys *ConfigRequest_V1_System  `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty" toml:"sys,omitempty" mapstructure:"sys,omitempty"`
	Svc *ConfigRequest_V1_Service `protobuf:"bytes,2,opt,name=svc,proto3" json:"svc,omitempty" toml:"svc,omitempty" mapstructure:"svc,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1) Descriptor deprecated

func (*ConfigRequest_V1) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1) GetSvc

func (*ConfigRequest_V1) GetSys

func (*ConfigRequest_V1) ProtoMessage

func (*ConfigRequest_V1) ProtoMessage()

func (*ConfigRequest_V1) ProtoReflect

func (x *ConfigRequest_V1) ProtoReflect() protoreflect.Message

func (*ConfigRequest_V1) Reset

func (x *ConfigRequest_V1) Reset()

func (*ConfigRequest_V1) String

func (x *ConfigRequest_V1) String() string

type ConfigRequest_V1_Banner

type ConfigRequest_V1_Banner struct {
	Show            *wrapperspb.BoolValue   `protobuf:"bytes,1,opt,name=show,proto3" json:"show,omitempty" toml:"show,omitempty" mapstructure:"show,omitempty"`
	Message         *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" toml:"message,omitempty" mapstructure:"message,omitempty"`
	BackgroundColor *wrapperspb.StringValue `` /* 182-byte string literal not displayed */
	TextColor       *wrapperspb.StringValue `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_Banner) Descriptor deprecated

func (*ConfigRequest_V1_Banner) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_Banner.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_Banner) GetBackgroundColor

func (x *ConfigRequest_V1_Banner) GetBackgroundColor() *wrapperspb.StringValue

func (*ConfigRequest_V1_Banner) GetMessage

func (*ConfigRequest_V1_Banner) GetShow

func (*ConfigRequest_V1_Banner) GetTextColor

func (x *ConfigRequest_V1_Banner) GetTextColor() *wrapperspb.StringValue

func (*ConfigRequest_V1_Banner) ProtoMessage

func (*ConfigRequest_V1_Banner) ProtoMessage()

func (*ConfigRequest_V1_Banner) ProtoReflect

func (x *ConfigRequest_V1_Banner) ProtoReflect() protoreflect.Message

func (*ConfigRequest_V1_Banner) Reset

func (x *ConfigRequest_V1_Banner) Reset()

func (*ConfigRequest_V1_Banner) String

func (x *ConfigRequest_V1_Banner) String() string

type ConfigRequest_V1_LargeReporting

type ConfigRequest_V1_LargeReporting struct {
	EnableLargeReporting *wrapperspb.BoolValue `` /* 211-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_LargeReporting) Descriptor deprecated

func (*ConfigRequest_V1_LargeReporting) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_LargeReporting.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_LargeReporting) GetEnableLargeReporting

func (x *ConfigRequest_V1_LargeReporting) GetEnableLargeReporting() *wrapperspb.BoolValue

func (*ConfigRequest_V1_LargeReporting) ProtoMessage

func (*ConfigRequest_V1_LargeReporting) ProtoMessage()

func (*ConfigRequest_V1_LargeReporting) ProtoReflect

func (*ConfigRequest_V1_LargeReporting) Reset

func (*ConfigRequest_V1_LargeReporting) String

type ConfigRequest_V1_Service

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

func (*ConfigRequest_V1_Service) Descriptor deprecated

func (*ConfigRequest_V1_Service) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_Service.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_Service) ProtoMessage

func (*ConfigRequest_V1_Service) ProtoMessage()

func (*ConfigRequest_V1_Service) ProtoReflect

func (x *ConfigRequest_V1_Service) ProtoReflect() protoreflect.Message

func (*ConfigRequest_V1_Service) Reset

func (x *ConfigRequest_V1_Service) Reset()

func (*ConfigRequest_V1_Service) String

func (x *ConfigRequest_V1_Service) String() string

type ConfigRequest_V1_SessionSettings

type ConfigRequest_V1_SessionSettings struct {
	EnableIdleTimeout  *wrapperspb.BoolValue  `` /* 196-byte string literal not displayed */
	IdleTimeoutMinutes *wrapperspb.Int32Value `` /* 201-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_SessionSettings) Descriptor deprecated

func (*ConfigRequest_V1_SessionSettings) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_SessionSettings.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_SessionSettings) GetEnableIdleTimeout

func (x *ConfigRequest_V1_SessionSettings) GetEnableIdleTimeout() *wrapperspb.BoolValue

func (*ConfigRequest_V1_SessionSettings) GetIdleTimeoutMinutes

func (x *ConfigRequest_V1_SessionSettings) GetIdleTimeoutMinutes() *wrapperspb.Int32Value

func (*ConfigRequest_V1_SessionSettings) ProtoMessage

func (*ConfigRequest_V1_SessionSettings) ProtoMessage()

func (*ConfigRequest_V1_SessionSettings) ProtoReflect

func (*ConfigRequest_V1_SessionSettings) Reset

func (*ConfigRequest_V1_SessionSettings) String

type ConfigRequest_V1_System

type ConfigRequest_V1_System struct {
	Mlsa           *shared.Mlsa                            `protobuf:"bytes,1,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"`
	Service        *ConfigRequest_V1_System_Service        `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"`
	Tls            *shared.TLSCredentials                  `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"`
	Ngx            *ConfigRequest_V1_System_Nginx          `protobuf:"bytes,4,opt,name=ngx,proto3" json:"ngx,omitempty" toml:"ngx,omitempty" mapstructure:"ngx,omitempty"`
	Log            *ConfigRequest_V1_System_Log            `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty" toml:"log,omitempty" mapstructure:"log,omitempty"`
	CustomSettings *ConfigRequest_V1_System_CustomSettings `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System) Descriptor deprecated

func (*ConfigRequest_V1_System) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System) GetCustomSettings

func (*ConfigRequest_V1_System) GetLog

func (*ConfigRequest_V1_System) GetMlsa

func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa

func (*ConfigRequest_V1_System) GetNgx

func (*ConfigRequest_V1_System) GetService

func (*ConfigRequest_V1_System) GetTls

func (*ConfigRequest_V1_System) ProtoMessage

func (*ConfigRequest_V1_System) ProtoMessage()

func (*ConfigRequest_V1_System) ProtoReflect

func (x *ConfigRequest_V1_System) ProtoReflect() protoreflect.Message

func (*ConfigRequest_V1_System) Reset

func (x *ConfigRequest_V1_System) Reset()

func (*ConfigRequest_V1_System) String

func (x *ConfigRequest_V1_System) String() string

type ConfigRequest_V1_System_CustomSettings

type ConfigRequest_V1_System_CustomSettings struct {
	Banner          *ConfigRequest_V1_Banner          `protobuf:"bytes,1,opt,name=banner,proto3" json:"banner,omitempty" toml:"banner,omitempty" mapstructure:"banner,omitempty"`
	SessionSettings *ConfigRequest_V1_SessionSettings `` /* 182-byte string literal not displayed */
	LargeReporting  *ConfigRequest_V1_LargeReporting  `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_CustomSettings) Descriptor deprecated

func (*ConfigRequest_V1_System_CustomSettings) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_CustomSettings.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_CustomSettings) GetBanner

func (*ConfigRequest_V1_System_CustomSettings) GetLargeReporting

func (*ConfigRequest_V1_System_CustomSettings) GetSessionSettings

func (*ConfigRequest_V1_System_CustomSettings) ProtoMessage

func (*ConfigRequest_V1_System_CustomSettings) ProtoReflect

func (*ConfigRequest_V1_System_CustomSettings) Reset

func (*ConfigRequest_V1_System_CustomSettings) String

type ConfigRequest_V1_System_Log

type ConfigRequest_V1_System_Log struct {
	Level *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty" toml:"level,omitempty" mapstructure:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Log) Descriptor deprecated

func (*ConfigRequest_V1_System_Log) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_Log.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Log) GetLevel

func (*ConfigRequest_V1_System_Log) ProtoMessage

func (*ConfigRequest_V1_System_Log) ProtoMessage()

func (*ConfigRequest_V1_System_Log) ProtoReflect

func (*ConfigRequest_V1_System_Log) Reset

func (x *ConfigRequest_V1_System_Log) Reset()

func (*ConfigRequest_V1_System_Log) String

func (x *ConfigRequest_V1_System_Log) String() string

type ConfigRequest_V1_System_Nginx

type ConfigRequest_V1_System_Nginx struct {
	WorkerProcesses *wrapperspb.Int32Value                `` /* 182-byte string literal not displayed */
	Events          *ConfigRequest_V1_System_Nginx_Events `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty" toml:"events,omitempty" mapstructure:"events,omitempty"`
	Http            *ConfigRequest_V1_System_Nginx_Http   `protobuf:"bytes,3,opt,name=http,proto3" json:"http,omitempty" toml:"http,omitempty" mapstructure:"http,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Nginx) Descriptor deprecated

func (*ConfigRequest_V1_System_Nginx) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_Nginx.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Nginx) GetEvents

func (*ConfigRequest_V1_System_Nginx) GetHttp

func (*ConfigRequest_V1_System_Nginx) GetWorkerProcesses

func (x *ConfigRequest_V1_System_Nginx) GetWorkerProcesses() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Nginx) ProtoMessage

func (*ConfigRequest_V1_System_Nginx) ProtoMessage()

func (*ConfigRequest_V1_System_Nginx) ProtoReflect

func (*ConfigRequest_V1_System_Nginx) Reset

func (x *ConfigRequest_V1_System_Nginx) Reset()

func (*ConfigRequest_V1_System_Nginx) String

type ConfigRequest_V1_System_Nginx_Events

type ConfigRequest_V1_System_Nginx_Events struct {
	WorkerConnections *wrapperspb.Int32Value `` /* 192-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Nginx_Events) Descriptor deprecated

func (*ConfigRequest_V1_System_Nginx_Events) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_Nginx_Events.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Nginx_Events) GetWorkerConnections

func (x *ConfigRequest_V1_System_Nginx_Events) GetWorkerConnections() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Nginx_Events) ProtoMessage

func (*ConfigRequest_V1_System_Nginx_Events) ProtoMessage()

func (*ConfigRequest_V1_System_Nginx_Events) ProtoReflect

func (*ConfigRequest_V1_System_Nginx_Events) Reset

func (*ConfigRequest_V1_System_Nginx_Events) String

type ConfigRequest_V1_System_Nginx_Http

type ConfigRequest_V1_System_Nginx_Http struct {
	Sendfile             *wrapperspb.StringValue `` /* 129-byte string literal not displayed */
	DefaultType          *wrapperspb.StringValue `` /* 162-byte string literal not displayed */
	TcpNopush            *wrapperspb.StringValue `` /* 152-byte string literal not displayed */
	TcpNodelay           *wrapperspb.StringValue `` /* 157-byte string literal not displayed */
	KeepaliveTimeout     *wrapperspb.Int32Value  `` /* 187-byte string literal not displayed */
	Gzip                 *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=gzip,proto3" json:"gzip,omitempty" toml:"gzip,omitempty" mapstructure:"gzip,omitempty"`
	GzipVary             *wrapperspb.StringValue `` /* 147-byte string literal not displayed */
	GzipMinLength        *wrapperspb.Int32Value  `` /* 176-byte string literal not displayed */
	GzipProxied          *wrapperspb.StringValue `` /* 162-byte string literal not displayed */
	GzipTypes            *wrapperspb.StringValue `` /* 153-byte string literal not displayed */
	GzipDisable          *wrapperspb.StringValue `` /* 163-byte string literal not displayed */
	ClientBodyBufferSize *wrapperspb.StringValue `` /* 216-byte string literal not displayed */
	SslCiphers           *wrapperspb.StringValue `` /* 158-byte string literal not displayed */
	SslProtocols         *wrapperspb.StringValue `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Nginx_Http) Descriptor deprecated

func (*ConfigRequest_V1_System_Nginx_Http) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_Nginx_Http.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Nginx_Http) GetClientBodyBufferSize

func (x *ConfigRequest_V1_System_Nginx_Http) GetClientBodyBufferSize() *wrapperspb.StringValue

func (*ConfigRequest_V1_System_Nginx_Http) GetDefaultType

func (*ConfigRequest_V1_System_Nginx_Http) GetGzip

func (*ConfigRequest_V1_System_Nginx_Http) GetGzipDisable

func (*ConfigRequest_V1_System_Nginx_Http) GetGzipMinLength

func (*ConfigRequest_V1_System_Nginx_Http) GetGzipProxied

func (*ConfigRequest_V1_System_Nginx_Http) GetGzipTypes

func (*ConfigRequest_V1_System_Nginx_Http) GetGzipVary

func (*ConfigRequest_V1_System_Nginx_Http) GetKeepaliveTimeout

func (x *ConfigRequest_V1_System_Nginx_Http) GetKeepaliveTimeout() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Nginx_Http) GetSendfile

func (*ConfigRequest_V1_System_Nginx_Http) GetSslCiphers

func (*ConfigRequest_V1_System_Nginx_Http) GetSslProtocols

func (*ConfigRequest_V1_System_Nginx_Http) GetTcpNodelay

func (*ConfigRequest_V1_System_Nginx_Http) GetTcpNopush

func (*ConfigRequest_V1_System_Nginx_Http) ProtoMessage

func (*ConfigRequest_V1_System_Nginx_Http) ProtoMessage()

func (*ConfigRequest_V1_System_Nginx_Http) ProtoReflect

func (*ConfigRequest_V1_System_Nginx_Http) Reset

func (*ConfigRequest_V1_System_Nginx_Http) String

type ConfigRequest_V1_System_Service

type ConfigRequest_V1_System_Service struct {

	// Deprecated: Do not use.
	Host *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty" toml:"host,omitempty" mapstructure:"host,omitempty"` // The listen host is no longer setable(localhost only)
	Port *wrapperspb.Int32Value  `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Service) Descriptor deprecated

func (*ConfigRequest_V1_System_Service) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRequest_V1_System_Service.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Service) GetHost deprecated

Deprecated: Do not use.

func (*ConfigRequest_V1_System_Service) GetPort

func (*ConfigRequest_V1_System_Service) ProtoMessage

func (*ConfigRequest_V1_System_Service) ProtoMessage()

func (*ConfigRequest_V1_System_Service) ProtoReflect

func (*ConfigRequest_V1_System_Service) Reset

func (*ConfigRequest_V1_System_Service) String

Jump to

Keyboard shortcuts

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