config

package
v0.0.0-...-f6adcef Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_baseproto_proto protoreflect.FileDescriptor
View Source
var File_config_proto protoreflect.FileDescriptor

Functions

func ConfigHasMessageName

func ConfigHasMessageName(s string) bool

Types

type Component

type Component struct {
	Name   string                 `json:"componentName" yaml:"appConfig"`
	Config map[string]interface{} `json:"config" yaml:"config"`
}

func (*Component) ConfigToJSON

func (c *Component) ConfigToJSON() ([]byte, error)

func (*Component) ConfigToK8sSecret

func (c *Component) ConfigToK8sSecret() ([]byte, error)

func (*Component) ConfigToShellEnv

func (c *Component) ConfigToShellEnv() ([]byte, error)

func (*Component) CreateGcpComponent

func (c *Component) CreateGcpComponent() (*GcpComponent, error)

func (*Component) CreateJwtComponent

func (c *Component) CreateJwtComponent() (*JwtComponent, error)

func (*Component) CreateMaintemplateComponent

func (c *Component) CreateMaintemplateComponent() (*MaintemplateComponent, error)

func (*Component) CreateMinioComponent

func (c *Component) CreateMinioComponent() (*MinioComponent, error)

func (*Component) CreateWorkflowComponent

func (c *Component) CreateWorkflowComponent() (*WorkflowComponent, error)

type Config

type Config struct {
	Key string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Val *ConfigVal `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

Config is basically a map<k,v> where k is always a string, and v is defined in the ConfigVal

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetKey

func (x *Config) GetKey() string

func (*Config) GetVal

func (x *Config) GetVal() *ConfigVal

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ConfigVal

type ConfigVal struct {

	// Types that are assignable to Val:
	//	*ConfigVal_StringVal
	//	*ConfigVal_Uint64Val
	//	*ConfigVal_EmailVal
	//	*ConfigVal_CidrVal
	//	*ConfigVal_BoolVal
	//	*ConfigVal_DoubleVal
	Val isConfigVal_Val `protobuf_oneof:"val"`
	// contains filtered or unexported fields
}

func (*ConfigVal) Descriptor deprecated

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

Deprecated: Use ConfigVal.ProtoReflect.Descriptor instead.

func (*ConfigVal) FromConfigVal

func (c *ConfigVal) FromConfigVal() (interface{}, error)

func (*ConfigVal) GetBoolVal

func (x *ConfigVal) GetBoolVal() bool

func (*ConfigVal) GetCidrVal

func (x *ConfigVal) GetCidrVal() []byte

func (*ConfigVal) GetDoubleVal

func (x *ConfigVal) GetDoubleVal() float64

func (*ConfigVal) GetEmailVal

func (x *ConfigVal) GetEmailVal() string

func (*ConfigVal) GetStringVal

func (x *ConfigVal) GetStringVal() string

func (*ConfigVal) GetUint64Val

func (x *ConfigVal) GetUint64Val() uint64

func (*ConfigVal) GetVal

func (m *ConfigVal) GetVal() isConfigVal_Val

func (*ConfigVal) ProtoMessage

func (*ConfigVal) ProtoMessage()

func (*ConfigVal) ProtoReflect

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

func (*ConfigVal) Reset

func (x *ConfigVal) Reset()

func (*ConfigVal) String

func (x *ConfigVal) String() string

func (*ConfigVal) Validate

func (m *ConfigVal) Validate() error

Validate checks the field values on ConfigVal with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ConfigValValidationError

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

ConfigValValidationError is the validation error returned by ConfigVal.Validate if the designated constraints aren't met.

func (ConfigValValidationError) Cause

func (e ConfigValValidationError) Cause() error

Cause function returns cause value.

func (ConfigValValidationError) Error

func (e ConfigValValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValValidationError) ErrorName

func (e ConfigValValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValValidationError) Field

func (e ConfigValValidationError) Field() string

Field function returns field value.

func (ConfigValValidationError) Key

Key function returns key value.

func (ConfigValValidationError) Reason

func (e ConfigValValidationError) Reason() string

Reason function returns reason value.

type ConfigVal_BoolVal

type ConfigVal_BoolVal struct {
	BoolVal bool `protobuf:"varint,5,opt,name=bool_val,json=boolVal,proto3,oneof"`
}

type ConfigVal_CidrVal

type ConfigVal_CidrVal struct {
	CidrVal []byte `protobuf:"bytes,4,opt,name=cidr_val,json=cidrVal,proto3,oneof"`
}

type ConfigVal_DoubleVal

type ConfigVal_DoubleVal struct {
	DoubleVal float64 `protobuf:"fixed64,6,opt,name=double_val,json=doubleVal,proto3,oneof"`
}

type ConfigVal_EmailVal

type ConfigVal_EmailVal struct {
	EmailVal string `protobuf:"bytes,3,opt,name=email_val,json=emailVal,proto3,oneof"`
}

type ConfigVal_StringVal

type ConfigVal_StringVal struct {
	StringVal string `protobuf:"bytes,1,opt,name=string_val,json=stringVal,proto3,oneof"`
}

type ConfigVal_Uint64Val

type ConfigVal_Uint64Val struct {
	Uint64Val uint64 `protobuf:"varint,2,opt,name=uint64_val,json=uint64Val,proto3,oneof"`
}

type ConfigValidationError

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

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type DefConfig

type DefConfig struct {
	AppConfig []Component `json:"appConfig" yaml:"appConfig"`
}

type GcpComponent

type GcpComponent struct {
	GcpUser    *ConfigVal `protobuf:"bytes,1,opt,name=gcp_user,json=gcpUser,proto3" json:"gcp_user,omitempty"`          // string
	GcpProject *ConfigVal `protobuf:"bytes,2,opt,name=gcp_project,json=gcpProject,proto3" json:"gcp_project,omitempty"` // string
	GkeCluster *ConfigVal `protobuf:"bytes,3,opt,name=gke_cluster,json=gkeCluster,proto3" json:"gke_cluster,omitempty"` // string
	GkeZone    *ConfigVal `protobuf:"bytes,4,opt,name=gke_zone,json=gkeZone,proto3" json:"gke_zone,omitempty"`          // string
	GkeEmail   *ConfigVal `protobuf:"bytes,5,opt,name=gke_email,json=gkeEmail,proto3" json:"gke_email,omitempty"`       // email
	// contains filtered or unexported fields
}

func (*GcpComponent) Descriptor deprecated

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

Deprecated: Use GcpComponent.ProtoReflect.Descriptor instead.

func (*GcpComponent) GetGcpProject

func (x *GcpComponent) GetGcpProject() *ConfigVal

func (*GcpComponent) GetGcpUser

func (x *GcpComponent) GetGcpUser() *ConfigVal

func (*GcpComponent) GetGkeCluster

func (x *GcpComponent) GetGkeCluster() *ConfigVal

func (*GcpComponent) GetGkeEmail

func (x *GcpComponent) GetGkeEmail() *ConfigVal

func (*GcpComponent) GetGkeZone

func (x *GcpComponent) GetGkeZone() *ConfigVal

func (*GcpComponent) MarshalJSON

func (x *GcpComponent) MarshalJSON() ([]byte, error)

func (*GcpComponent) ProtoMessage

func (*GcpComponent) ProtoMessage()

func (*GcpComponent) ProtoReflect

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

func (*GcpComponent) Reset

func (x *GcpComponent) Reset()

func (*GcpComponent) String

func (x *GcpComponent) String() string

func (*GcpComponent) ToComponent

func (x *GcpComponent) ToComponent() (*Component, error)

func (*GcpComponent) UnmarshalJSON

func (x *GcpComponent) UnmarshalJSON(b []byte) error

func (*GcpComponent) Validate

func (m *GcpComponent) Validate() error

Validate checks the field values on GcpComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GcpComponentValidationError

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

GcpComponentValidationError is the validation error returned by GcpComponent.Validate if the designated constraints aren't met.

func (GcpComponentValidationError) Cause

Cause function returns cause value.

func (GcpComponentValidationError) Error

Error satisfies the builtin error interface

func (GcpComponentValidationError) ErrorName

func (e GcpComponentValidationError) ErrorName() string

ErrorName returns error name.

func (GcpComponentValidationError) Field

Field function returns field value.

func (GcpComponentValidationError) Key

Key function returns key value.

func (GcpComponentValidationError) Reason

Reason function returns reason value.

type JwtComponent

type JwtComponent struct {
	PrivateKey *ConfigVal `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // string
	PublicKey  *ConfigVal `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`    // string
	// contains filtered or unexported fields
}

func (*JwtComponent) Descriptor deprecated

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

Deprecated: Use JwtComponent.ProtoReflect.Descriptor instead.

func (*JwtComponent) GetPrivateKey

func (x *JwtComponent) GetPrivateKey() *ConfigVal

func (*JwtComponent) GetPublicKey

func (x *JwtComponent) GetPublicKey() *ConfigVal

func (*JwtComponent) MarshalJSON

func (x *JwtComponent) MarshalJSON() ([]byte, error)

func (*JwtComponent) ProtoMessage

func (*JwtComponent) ProtoMessage()

func (*JwtComponent) ProtoReflect

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

func (*JwtComponent) Reset

func (x *JwtComponent) Reset()

func (*JwtComponent) String

func (x *JwtComponent) String() string

func (*JwtComponent) ToComponent

func (x *JwtComponent) ToComponent() (*Component, error)

func (*JwtComponent) UnmarshalJSON

func (x *JwtComponent) UnmarshalJSON(b []byte) error

func (*JwtComponent) Validate

func (m *JwtComponent) Validate() error

Validate checks the field values on JwtComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type JwtComponentValidationError

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

JwtComponentValidationError is the validation error returned by JwtComponent.Validate if the designated constraints aren't met.

func (JwtComponentValidationError) Cause

Cause function returns cause value.

func (JwtComponentValidationError) Error

Error satisfies the builtin error interface

func (JwtComponentValidationError) ErrorName

func (e JwtComponentValidationError) ErrorName() string

ErrorName returns error name.

func (JwtComponentValidationError) Field

Field function returns field value.

func (JwtComponentValidationError) Key

Key function returns key value.

func (JwtComponentValidationError) Reason

Reason function returns reason value.

type MaintemplateComponent

type MaintemplateComponent struct {
	MinioAccesskey *ConfigVal `protobuf:"bytes,1,opt,name=minio_accesskey,json=minioAccesskey,proto3" json:"minio_accesskey,omitempty"` // string
	MinioSecretkey *ConfigVal `protobuf:"bytes,2,opt,name=minio_secretkey,json=minioSecretkey,proto3" json:"minio_secretkey,omitempty"` // string
	MinioLocation  *ConfigVal `protobuf:"bytes,3,opt,name=minio_location,json=minioLocation,proto3" json:"minio_location,omitempty"`    // string
	MinioTimeout   *ConfigVal `protobuf:"bytes,4,opt,name=minio_timeout,json=minioTimeout,proto3" json:"minio_timeout,omitempty"`       // double
	MinioSsl       *ConfigVal `protobuf:"bytes,5,opt,name=minio_ssl,json=minioSsl,proto3" json:"minio_ssl,omitempty"`                   // bool
	MinioEnckey    *ConfigVal `protobuf:"bytes,6,opt,name=minio_enckey,json=minioEnckey,proto3" json:"minio_enckey,omitempty"`          // bytes
	MinioEndpoint  *ConfigVal `protobuf:"bytes,7,opt,name=minio_endpoint,json=minioEndpoint,proto3" json:"minio_endpoint,omitempty"`    // cidr
	// contains filtered or unexported fields
}

func (*MaintemplateComponent) Descriptor deprecated

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

Deprecated: Use MaintemplateComponent.ProtoReflect.Descriptor instead.

func (*MaintemplateComponent) GetMinioAccesskey

func (x *MaintemplateComponent) GetMinioAccesskey() *ConfigVal

func (*MaintemplateComponent) GetMinioEnckey

func (x *MaintemplateComponent) GetMinioEnckey() *ConfigVal

func (*MaintemplateComponent) GetMinioEndpoint

func (x *MaintemplateComponent) GetMinioEndpoint() *ConfigVal

func (*MaintemplateComponent) GetMinioLocation

func (x *MaintemplateComponent) GetMinioLocation() *ConfigVal

func (*MaintemplateComponent) GetMinioSecretkey

func (x *MaintemplateComponent) GetMinioSecretkey() *ConfigVal

func (*MaintemplateComponent) GetMinioSsl

func (x *MaintemplateComponent) GetMinioSsl() *ConfigVal

func (*MaintemplateComponent) GetMinioTimeout

func (x *MaintemplateComponent) GetMinioTimeout() *ConfigVal

func (*MaintemplateComponent) MarshalJSON

func (x *MaintemplateComponent) MarshalJSON() ([]byte, error)

func (*MaintemplateComponent) ProtoMessage

func (*MaintemplateComponent) ProtoMessage()

func (*MaintemplateComponent) ProtoReflect

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

func (*MaintemplateComponent) Reset

func (x *MaintemplateComponent) Reset()

func (*MaintemplateComponent) String

func (x *MaintemplateComponent) String() string

func (*MaintemplateComponent) ToComponent

func (x *MaintemplateComponent) ToComponent() (*Component, error)

func (*MaintemplateComponent) UnmarshalJSON

func (x *MaintemplateComponent) UnmarshalJSON(b []byte) error

func (*MaintemplateComponent) Validate

func (m *MaintemplateComponent) Validate() error

Validate checks the field values on MaintemplateComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MaintemplateComponentValidationError

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

MaintemplateComponentValidationError is the validation error returned by MaintemplateComponent.Validate if the designated constraints aren't met.

func (MaintemplateComponentValidationError) Cause

Cause function returns cause value.

func (MaintemplateComponentValidationError) Error

Error satisfies the builtin error interface

func (MaintemplateComponentValidationError) ErrorName

ErrorName returns error name.

func (MaintemplateComponentValidationError) Field

Field function returns field value.

func (MaintemplateComponentValidationError) Key

Key function returns key value.

func (MaintemplateComponentValidationError) Reason

Reason function returns reason value.

type MinioComponent

type MinioComponent struct {
	MinioAccesskey *ConfigVal `protobuf:"bytes,1,opt,name=minio_accesskey,json=minioAccesskey,proto3" json:"minio_accesskey,omitempty"` // string
	MinioSecretkey *ConfigVal `protobuf:"bytes,2,opt,name=minio_secretkey,json=minioSecretkey,proto3" json:"minio_secretkey,omitempty"` // string
	// contains filtered or unexported fields
}

func (*MinioComponent) Descriptor deprecated

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

Deprecated: Use MinioComponent.ProtoReflect.Descriptor instead.

func (*MinioComponent) GetMinioAccesskey

func (x *MinioComponent) GetMinioAccesskey() *ConfigVal

func (*MinioComponent) GetMinioSecretkey

func (x *MinioComponent) GetMinioSecretkey() *ConfigVal

func (*MinioComponent) MarshalJSON

func (x *MinioComponent) MarshalJSON() ([]byte, error)

func (*MinioComponent) ProtoMessage

func (*MinioComponent) ProtoMessage()

func (*MinioComponent) ProtoReflect

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

func (*MinioComponent) Reset

func (x *MinioComponent) Reset()

func (*MinioComponent) String

func (x *MinioComponent) String() string

func (*MinioComponent) ToComponent

func (x *MinioComponent) ToComponent() (*Component, error)

func (*MinioComponent) UnmarshalJSON

func (x *MinioComponent) UnmarshalJSON(b []byte) error

func (*MinioComponent) Validate

func (m *MinioComponent) Validate() error

Validate checks the field values on MinioComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MinioComponentValidationError

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

MinioComponentValidationError is the validation error returned by MinioComponent.Validate if the designated constraints aren't met.

func (MinioComponentValidationError) Cause

Cause function returns cause value.

func (MinioComponentValidationError) Error

Error satisfies the builtin error interface

func (MinioComponentValidationError) ErrorName

func (e MinioComponentValidationError) ErrorName() string

ErrorName returns error name.

func (MinioComponentValidationError) Field

Field function returns field value.

func (MinioComponentValidationError) Key

Key function returns key value.

func (MinioComponentValidationError) Reason

Reason function returns reason value.

type WorkflowComponent

type WorkflowComponent struct {
	GithubSha        *ConfigVal `protobuf:"bytes,2,opt,name=github_sha,json=githubSha,proto3" json:"github_sha,omitempty"`                      // string
	GithubRef        *ConfigVal `protobuf:"bytes,3,opt,name=github_ref,json=githubRef,proto3" json:"github_ref,omitempty"`                      // string
	Project          *ConfigVal `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`                                           // string
	RegistryHostname *ConfigVal `protobuf:"bytes,5,opt,name=registry_hostname,json=registryHostname,proto3" json:"registry_hostname,omitempty"` // cidr
	Url              *ConfigVal `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`                                                   // string
	Locales          *ConfigVal `protobuf:"bytes,7,opt,name=locales,proto3" json:"locales,omitempty"`                                           // repeated string
	FlutterChannel   *ConfigVal `protobuf:"bytes,8,opt,name=flutter_channel,json=flutterChannel,proto3" json:"flutter_channel,omitempty"`       // string
	ReleaseChannel   *ConfigVal `protobuf:"bytes,9,opt,name=release_channel,json=releaseChannel,proto3" json:"release_channel,omitempty"`       // string
	// contains filtered or unexported fields
}

func (*WorkflowComponent) Descriptor deprecated

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

Deprecated: Use WorkflowComponent.ProtoReflect.Descriptor instead.

func (*WorkflowComponent) GetFlutterChannel

func (x *WorkflowComponent) GetFlutterChannel() *ConfigVal

func (*WorkflowComponent) GetGithubRef

func (x *WorkflowComponent) GetGithubRef() *ConfigVal

func (*WorkflowComponent) GetGithubSha

func (x *WorkflowComponent) GetGithubSha() *ConfigVal

func (*WorkflowComponent) GetLocales

func (x *WorkflowComponent) GetLocales() *ConfigVal

func (*WorkflowComponent) GetProject

func (x *WorkflowComponent) GetProject() *ConfigVal

func (*WorkflowComponent) GetRegistryHostname

func (x *WorkflowComponent) GetRegistryHostname() *ConfigVal

func (*WorkflowComponent) GetReleaseChannel

func (x *WorkflowComponent) GetReleaseChannel() *ConfigVal

func (*WorkflowComponent) GetUrl

func (x *WorkflowComponent) GetUrl() *ConfigVal

func (*WorkflowComponent) MarshalJSON

func (x *WorkflowComponent) MarshalJSON() ([]byte, error)

func (*WorkflowComponent) ProtoMessage

func (*WorkflowComponent) ProtoMessage()

func (*WorkflowComponent) ProtoReflect

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

func (*WorkflowComponent) Reset

func (x *WorkflowComponent) Reset()

func (*WorkflowComponent) String

func (x *WorkflowComponent) String() string

func (*WorkflowComponent) ToComponent

func (x *WorkflowComponent) ToComponent() (*Component, error)

func (*WorkflowComponent) UnmarshalJSON

func (x *WorkflowComponent) UnmarshalJSON(b []byte) error

func (*WorkflowComponent) Validate

func (m *WorkflowComponent) Validate() error

Validate checks the field values on WorkflowComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WorkflowComponentValidationError

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

WorkflowComponentValidationError is the validation error returned by WorkflowComponent.Validate if the designated constraints aren't met.

func (WorkflowComponentValidationError) Cause

Cause function returns cause value.

func (WorkflowComponentValidationError) Error

Error satisfies the builtin error interface

func (WorkflowComponentValidationError) ErrorName

ErrorName returns error name.

func (WorkflowComponentValidationError) Field

Field function returns field value.

func (WorkflowComponentValidationError) Key

Key function returns key value.

func (WorkflowComponentValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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