config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_proto protoreflect.FileDescriptor

Functions

func NewConfigHost

func NewConfigHost(h *hosts.RpcHost) *rpcConfigHost

func RegisterConfigServer

func RegisterConfigServer(s *grpc.Server, srv ConfigServer)

Types

type ConfigClient

type ConfigClient interface {
	// Sends a greeting
	Settings(ctx context.Context, in *SettingsRequest, opts ...grpc.CallOption) (*SettingsResponse, error)
}

ConfigClient is the client API for Config service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigClient

func NewConfigClient(cc grpc.ClientConnInterface) ConfigClient

type ConfigServer

type ConfigServer interface {
	// Sends a greeting
	Settings(context.Context, *SettingsRequest) (*SettingsResponse, error)
}

ConfigServer is the server API for Config service.

type ProviderLabels

type ProviderLabels struct {
	Saml string `protobuf:"bytes,1,opt,name=saml,proto3" json:"saml,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderLabels) Descriptor deprecated

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

Deprecated: Use ProviderLabels.ProtoReflect.Descriptor instead.

func (*ProviderLabels) GetSaml

func (x *ProviderLabels) GetSaml() string

func (*ProviderLabels) ProtoMessage

func (*ProviderLabels) ProtoMessage()

func (*ProviderLabels) ProtoReflect

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

func (*ProviderLabels) Reset

func (x *ProviderLabels) Reset()

func (*ProviderLabels) String

func (x *ProviderLabels) String() string

type ProviderSettings

type ProviderSettings struct {
	Bitbucket bool `protobuf:"varint,1,opt,name=bitbucket,proto3" json:"bitbucket,omitempty"`
	Github    bool `protobuf:"varint,2,opt,name=github,proto3" json:"github,omitempty"`
	Gitlab    bool `protobuf:"varint,3,opt,name=gitlab,proto3" json:"gitlab,omitempty"`
	Google    bool `protobuf:"varint,4,opt,name=google,proto3" json:"google,omitempty"`
	Facebook  bool `protobuf:"varint,5,opt,name=facebook,proto3" json:"facebook,omitempty"`
	Email     bool `protobuf:"varint,6,opt,name=email,proto3" json:"email,omitempty"`
	Saml      bool `protobuf:"varint,7,opt,name=saml,proto3" json:"saml,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderSettings) Descriptor deprecated

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

Deprecated: Use ProviderSettings.ProtoReflect.Descriptor instead.

func (*ProviderSettings) GetBitbucket

func (x *ProviderSettings) GetBitbucket() bool

func (*ProviderSettings) GetEmail

func (x *ProviderSettings) GetEmail() bool

func (*ProviderSettings) GetFacebook

func (x *ProviderSettings) GetFacebook() bool

func (*ProviderSettings) GetGithub

func (x *ProviderSettings) GetGithub() bool

func (*ProviderSettings) GetGitlab

func (x *ProviderSettings) GetGitlab() bool

func (*ProviderSettings) GetGoogle

func (x *ProviderSettings) GetGoogle() bool

func (*ProviderSettings) GetSaml

func (x *ProviderSettings) GetSaml() bool

func (*ProviderSettings) ProtoMessage

func (*ProviderSettings) ProtoMessage()

func (*ProviderSettings) ProtoReflect

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

func (*ProviderSettings) Reset

func (x *ProviderSettings) Reset()

func (*ProviderSettings) String

func (x *ProviderSettings) String() string

type SettingsRequest

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

func (*SettingsRequest) Descriptor deprecated

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

Deprecated: Use SettingsRequest.ProtoReflect.Descriptor instead.

func (*SettingsRequest) ProtoMessage

func (*SettingsRequest) ProtoMessage()

func (*SettingsRequest) ProtoReflect

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

func (*SettingsRequest) Reset

func (x *SettingsRequest) Reset()

func (*SettingsRequest) String

func (x *SettingsRequest) String() string

type SettingsResponse

type SettingsResponse struct {
	External       *ProviderSettings `protobuf:"bytes,1,opt,name=external,proto3" json:"external,omitempty"`
	ExternalLabels *ProviderLabels   `protobuf:"bytes,2,opt,name=external_labels,json=externalLabels,proto3" json:"external_labels,omitempty"`
	DisableSignup  bool              `protobuf:"varint,3,opt,name=disable_signup,json=disableSignup,proto3" json:"disable_signup,omitempty"`
	Autoconfirm    bool              `protobuf:"varint,4,opt,name=autoconfirm,proto3" json:"autoconfirm,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingsResponse) Descriptor deprecated

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

Deprecated: Use SettingsResponse.ProtoReflect.Descriptor instead.

func (*SettingsResponse) GetAutoconfirm

func (x *SettingsResponse) GetAutoconfirm() bool

func (*SettingsResponse) GetDisableSignup

func (x *SettingsResponse) GetDisableSignup() bool

func (*SettingsResponse) GetExternal

func (x *SettingsResponse) GetExternal() *ProviderSettings

func (*SettingsResponse) GetExternalLabels

func (x *SettingsResponse) GetExternalLabels() *ProviderLabels

func (*SettingsResponse) ProtoMessage

func (*SettingsResponse) ProtoMessage()

func (*SettingsResponse) ProtoReflect

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

func (*SettingsResponse) Reset

func (x *SettingsResponse) Reset()

func (*SettingsResponse) String

func (x *SettingsResponse) String() string

type UnimplementedConfigServer

type UnimplementedConfigServer struct {
}

UnimplementedConfigServer can be embedded to have forward compatible implementations.

func (*UnimplementedConfigServer) Settings

Jump to

Keyboard shortcuts

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