workflow_server

package
v0.0.0-...-7cac148 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_workflow_server_config_request_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigRequest

type ConfigRequest struct {
	V1 *ConfigRequest_V1 `protobuf:"bytes,1,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)

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_ChefServer

type ConfigRequest_V1_ChefServer struct {
	Url      *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" toml:"url,omitempty" mapstructure:"url,omitempty"`
	WebUiUrl *wrapperspb.StringValue `` /* 151-byte string literal not displayed */
	Vip      *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=vip,proto3" json:"vip,omitempty" toml:"vip,omitempty" mapstructure:"vip,omitempty"`
	ChefUser *wrapperspb.StringValue `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_ChefServer) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_ChefServer.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_ChefServer) GetChefUser

func (*ConfigRequest_V1_ChefServer) GetUrl

func (*ConfigRequest_V1_ChefServer) GetVip

func (*ConfigRequest_V1_ChefServer) GetWebUiUrl

func (*ConfigRequest_V1_ChefServer) ProtoMessage

func (*ConfigRequest_V1_ChefServer) ProtoMessage()

func (*ConfigRequest_V1_ChefServer) ProtoReflect

func (*ConfigRequest_V1_ChefServer) Reset

func (x *ConfigRequest_V1_ChefServer) Reset()

func (*ConfigRequest_V1_ChefServer) String

func (x *ConfigRequest_V1_ChefServer) String() string

type ConfigRequest_V1_Postgresql

type ConfigRequest_V1_Postgresql struct {
	DbName *wrapperspb.StringValue `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_Postgresql) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_Postgresql.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_Postgresql) GetDbName

func (*ConfigRequest_V1_Postgresql) ProtoMessage

func (*ConfigRequest_V1_Postgresql) ProtoMessage()

func (*ConfigRequest_V1_Postgresql) ProtoReflect

func (*ConfigRequest_V1_Postgresql) Reset

func (x *ConfigRequest_V1_Postgresql) Reset()

func (*ConfigRequest_V1_Postgresql) String

func (x *ConfigRequest_V1_Postgresql) String() 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_SshGit

type ConfigRequest_V1_SshGit struct {
	Hostname        *wrapperspb.StringValue `` /* 129-byte string literal not displayed */
	HostAddress     *wrapperspb.StringValue `` /* 162-byte string literal not displayed */
	Port            *wrapperspb.Int32Value  `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"`
	GitRepoTemplate *wrapperspb.StringValue `` /* 186-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_SshGit) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_SshGit.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_SshGit) GetGitRepoTemplate

func (x *ConfigRequest_V1_SshGit) GetGitRepoTemplate() *wrapperspb.StringValue

func (*ConfigRequest_V1_SshGit) GetHostAddress

func (x *ConfigRequest_V1_SshGit) GetHostAddress() *wrapperspb.StringValue

func (*ConfigRequest_V1_SshGit) GetHostname

func (*ConfigRequest_V1_SshGit) GetPort

func (*ConfigRequest_V1_SshGit) ProtoMessage

func (*ConfigRequest_V1_SshGit) ProtoMessage()

func (*ConfigRequest_V1_SshGit) ProtoReflect

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

func (*ConfigRequest_V1_SshGit) Reset

func (x *ConfigRequest_V1_SshGit) Reset()

func (*ConfigRequest_V1_SshGit) String

func (x *ConfigRequest_V1_SshGit) String() 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"`
	Log                     *ConfigRequest_V1_System_Log `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty" toml:"log,omitempty" mapstructure:"log,omitempty"`
	DevEnv                  bool                         `` /* 138-byte string literal not displayed */
	Telemetry               *ConfigRequest_V1_Telemetry  `` /* 133-byte string literal not displayed */
	ChefServer              *ConfigRequest_V1_ChefServer `` /* 157-byte string literal not displayed */
	Postgresql              *ConfigRequest_V1_Postgresql `` /* 137-byte string literal not displayed */
	SshGit                  *ConfigRequest_V1_SshGit     `` /* 137-byte string literal not displayed */
	Fqdn                    *wrapperspb.StringValue      `protobuf:"bytes,9,opt,name=fqdn,proto3" json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
	ApiPort                 *wrapperspb.Int32Value       `` /* 143-byte string literal not displayed */
	ApiProto                *wrapperspb.StringValue      `` /* 148-byte string literal not displayed */
	GitExecutable           *wrapperspb.StringValue      `` /* 173-byte string literal not displayed */
	TrustedCertificatesFile *wrapperspb.StringValue      `` /* 227-byte string literal not displayed */
	Tls                     *shared.TLSCredentials       `protobuf:"bytes,15,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"`
	// 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) GetApiPort

func (*ConfigRequest_V1_System) GetApiProto

func (*ConfigRequest_V1_System) GetChefServer

func (*ConfigRequest_V1_System) GetDevEnv

func (x *ConfigRequest_V1_System) GetDevEnv() bool

func (*ConfigRequest_V1_System) GetFqdn

func (*ConfigRequest_V1_System) GetGitExecutable

func (x *ConfigRequest_V1_System) GetGitExecutable() *wrapperspb.StringValue

func (*ConfigRequest_V1_System) GetLog

func (*ConfigRequest_V1_System) GetMlsa

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

func (*ConfigRequest_V1_System) GetPostgresql

func (*ConfigRequest_V1_System) GetSshGit

func (*ConfigRequest_V1_System) GetTelemetry

func (*ConfigRequest_V1_System) GetTls

func (*ConfigRequest_V1_System) GetTrustedCertificatesFile

func (x *ConfigRequest_V1_System) GetTrustedCertificatesFile() *wrapperspb.StringValue

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_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_Telemetry

type ConfigRequest_V1_Telemetry struct {
	Enabled *wrapperspb.BoolValue   `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty" toml:"enabled,omitempty" mapstructure:"enabled,omitempty"`
	Api     *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty" toml:"api,omitempty" mapstructure:"api,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_Telemetry) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_Telemetry.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_Telemetry) GetApi

func (*ConfigRequest_V1_Telemetry) GetEnabled

func (*ConfigRequest_V1_Telemetry) ProtoMessage

func (*ConfigRequest_V1_Telemetry) ProtoMessage()

func (*ConfigRequest_V1_Telemetry) ProtoReflect

func (*ConfigRequest_V1_Telemetry) Reset

func (x *ConfigRequest_V1_Telemetry) Reset()

func (*ConfigRequest_V1_Telemetry) String

func (x *ConfigRequest_V1_Telemetry) String() string

Jump to

Keyboard shortcuts

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