githubv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_service_github_v1_github_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AppId          int64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	InstallationId int64 `protobuf:"varint,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	// Types that are assignable to Pem:
	//
	//	*AppConfig_KeyPem
	//	*AppConfig_Base64Pem
	Pem isAppConfig_Pem `protobuf_oneof:"pem"`
	// contains filtered or unexported fields
}

func (*AppConfig) Descriptor deprecated

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

Deprecated: Use AppConfig.ProtoReflect.Descriptor instead.

func (*AppConfig) GetAppId

func (x *AppConfig) GetAppId() int64

func (*AppConfig) GetBase64Pem

func (x *AppConfig) GetBase64Pem() string

func (*AppConfig) GetInstallationId

func (x *AppConfig) GetInstallationId() int64

func (*AppConfig) GetKeyPem

func (x *AppConfig) GetKeyPem() string

func (*AppConfig) GetPem

func (m *AppConfig) GetPem() isAppConfig_Pem

func (*AppConfig) ProtoMessage

func (*AppConfig) ProtoMessage()

func (*AppConfig) ProtoReflect

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

func (*AppConfig) Reset

func (x *AppConfig) Reset()

func (*AppConfig) String

func (x *AppConfig) String() string

func (*AppConfig) Validate

func (m *AppConfig) Validate() error

Validate checks the field values on AppConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AppConfig) ValidateAll

func (m *AppConfig) ValidateAll() error

ValidateAll checks the field values on AppConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppConfigMultiError, or nil if none found.

type AppConfigMultiError

type AppConfigMultiError []error

AppConfigMultiError is an error wrapping multiple validation errors returned by AppConfig.ValidateAll() if the designated constraints aren't met.

func (AppConfigMultiError) AllErrors

func (m AppConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppConfigMultiError) Error

func (m AppConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppConfigValidationError

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

AppConfigValidationError is the validation error returned by AppConfig.Validate if the designated constraints aren't met.

func (AppConfigValidationError) Cause

func (e AppConfigValidationError) Cause() error

Cause function returns cause value.

func (AppConfigValidationError) Error

func (e AppConfigValidationError) Error() string

Error satisfies the builtin error interface

func (AppConfigValidationError) ErrorName

func (e AppConfigValidationError) ErrorName() string

ErrorName returns error name.

func (AppConfigValidationError) Field

func (e AppConfigValidationError) Field() string

Field function returns field value.

func (AppConfigValidationError) Key

Key function returns key value.

func (AppConfigValidationError) Reason

func (e AppConfigValidationError) Reason() string

Reason function returns reason value.

type AppConfig_Base64Pem

type AppConfig_Base64Pem struct {
	// a base64 encoded private encryption key from a pem file
	Base64Pem string `protobuf:"bytes,4,opt,name=base64_pem,json=base64Pem,proto3,oneof"`
}

type AppConfig_KeyPem

type AppConfig_KeyPem struct {
	// a private encryption key from a pem file
	KeyPem string `protobuf:"bytes,3,opt,name=key_pem,json=keyPem,proto3,oneof"`
}

type Config

type Config struct {

	// Types that are assignable to Auth:
	//
	//	*Config_AccessToken
	//	*Config_AppConfig
	Auth isConfig_Auth `protobuf_oneof:"auth"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAccessToken

func (x *Config) GetAccessToken() string

func (*Config) GetAppConfig

func (x *Config) GetAppConfig() *AppConfig

func (*Config) GetAuth

func (m *Config) GetAuth() isConfig_Auth

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, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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 Config_AccessToken

type Config_AccessToken struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3,oneof"`
}

type Config_AppConfig

type Config_AppConfig struct {
	AppConfig *AppConfig `protobuf:"bytes,2,opt,name=app_config,json=appConfig,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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