Documentation ¶
Overview ¶
Package settings is a generated protocol buffer package. Settings Service Settings Service API retrives ArgoCD settings It is generated from these files: server/settings/settings.proto It has these top-level messages: SettingsQuery Settings DexConfig Connector
Package settings is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSettingsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSettingsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SettingsServiceClient) error
- func RegisterSettingsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer)
- type Connector
- func (*Connector) Descriptor() ([]byte, []int)
- func (m *Connector) GetName() string
- func (m *Connector) GetType() string
- func (m *Connector) Marshal() (dAtA []byte, err error)
- func (m *Connector) MarshalTo(dAtA []byte) (int, error)
- func (*Connector) ProtoMessage()
- func (m *Connector) Reset()
- func (m *Connector) Size() (n int)
- func (m *Connector) String() string
- func (m *Connector) Unmarshal(dAtA []byte) error
- type DexConfig
- func (*DexConfig) Descriptor() ([]byte, []int)
- func (m *DexConfig) GetConnectors() []*Connector
- func (m *DexConfig) Marshal() (dAtA []byte, err error)
- func (m *DexConfig) MarshalTo(dAtA []byte) (int, error)
- func (*DexConfig) ProtoMessage()
- func (m *DexConfig) Reset()
- func (m *DexConfig) Size() (n int)
- func (m *DexConfig) String() string
- func (m *DexConfig) Unmarshal(dAtA []byte) error
- type Server
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetDexConfig() *DexConfig
- func (m *Settings) GetURL() string
- func (m *Settings) Marshal() (dAtA []byte, err error)
- func (m *Settings) MarshalTo(dAtA []byte) (int, error)
- func (*Settings) ProtoMessage()
- func (m *Settings) Reset()
- func (m *Settings) Size() (n int)
- func (m *Settings) String() string
- func (m *Settings) Unmarshal(dAtA []byte) error
- type SettingsQuery
- func (*SettingsQuery) Descriptor() ([]byte, []int)
- func (m *SettingsQuery) Marshal() (dAtA []byte, err error)
- func (m *SettingsQuery) MarshalTo(dAtA []byte) (int, error)
- func (*SettingsQuery) ProtoMessage()
- func (m *SettingsQuery) Reset()
- func (m *SettingsQuery) Size() (n int)
- func (m *SettingsQuery) String() string
- func (m *SettingsQuery) Unmarshal(dAtA []byte) error
- type SettingsServiceClient
- type SettingsServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthSettings = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSettings = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterSettingsServiceHandler ¶
func RegisterSettingsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSettingsServiceHandler registers the http handlers for service SettingsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSettingsServiceHandlerClient ¶
func RegisterSettingsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SettingsServiceClient) error
RegisterSettingsServiceHandler registers the http handlers for service SettingsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SettingsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SettingsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SettingsServiceClient" to call the correct interceptors.
func RegisterSettingsServiceHandlerFromEndpoint ¶
func RegisterSettingsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSettingsServiceHandlerFromEndpoint is same as RegisterSettingsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSettingsServiceServer ¶
func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer)
Types ¶
type Connector ¶
type Connector struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` }
func (*Connector) Descriptor ¶
func (*Connector) ProtoMessage ¶
func (*Connector) ProtoMessage()
type DexConfig ¶
type DexConfig struct {
Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors" json:"connectors,omitempty"`
}
func (*DexConfig) Descriptor ¶
func (*DexConfig) GetConnectors ¶
func (*DexConfig) ProtoMessage ¶
func (*DexConfig) ProtoMessage()
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Settings service
func NewServer ¶
func NewServer(mgr *settings.SettingsManager) *Server
NewServer returns a new instance of the Repository service
type Settings ¶
type Settings struct { URL string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` DexConfig *DexConfig `protobuf:"bytes,2,opt,name=dexConfig" json:"dexConfig,omitempty"` }
func (*Settings) Descriptor ¶
func (*Settings) GetDexConfig ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
type SettingsQuery ¶
type SettingsQuery struct { }
SettingsQuery is a query for ArgoCD settings
func (*SettingsQuery) Descriptor ¶
func (*SettingsQuery) Descriptor() ([]byte, []int)
func (*SettingsQuery) Marshal ¶
func (m *SettingsQuery) Marshal() (dAtA []byte, err error)
func (*SettingsQuery) ProtoMessage ¶
func (*SettingsQuery) ProtoMessage()
func (*SettingsQuery) Reset ¶
func (m *SettingsQuery) Reset()
func (*SettingsQuery) Size ¶
func (m *SettingsQuery) Size() (n int)
func (*SettingsQuery) String ¶
func (m *SettingsQuery) String() string
func (*SettingsQuery) Unmarshal ¶
func (m *SettingsQuery) Unmarshal(dAtA []byte) error
type SettingsServiceClient ¶
type SettingsServiceClient interface { // Get returns ArgoCD settings Get(ctx context.Context, in *SettingsQuery, opts ...grpc.CallOption) (*Settings, error) }
func NewSettingsServiceClient ¶
func NewSettingsServiceClient(cc *grpc.ClientConn) SettingsServiceClient
type SettingsServiceServer ¶
type SettingsServiceServer interface { // Get returns ArgoCD settings Get(context.Context, *SettingsQuery) (*Settings, error) }