Documentation ¶
Overview ¶
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
- func (m *Connector) XXX_DiscardUnknown()
- func (m *Connector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Connector) XXX_Merge(src proto.Message)
- func (m *Connector) XXX_Size() int
- func (m *Connector) XXX_Unmarshal(b []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
- func (m *DexConfig) XXX_DiscardUnknown()
- func (m *DexConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DexConfig) XXX_Merge(src proto.Message)
- func (m *DexConfig) XXX_Size() int
- func (m *DexConfig) XXX_Unmarshal(b []byte) error
- type OIDCConfig
- func (*OIDCConfig) Descriptor() ([]byte, []int)
- func (m *OIDCConfig) GetCLIClientID() string
- func (m *OIDCConfig) GetClientID() string
- func (m *OIDCConfig) GetIssuer() string
- func (m *OIDCConfig) GetName() string
- func (m *OIDCConfig) GetScopes() []string
- func (m *OIDCConfig) Marshal() (dAtA []byte, err error)
- func (m *OIDCConfig) MarshalTo(dAtA []byte) (int, error)
- func (*OIDCConfig) ProtoMessage()
- func (m *OIDCConfig) Reset()
- func (m *OIDCConfig) Size() (n int)
- func (m *OIDCConfig) String() string
- func (m *OIDCConfig) Unmarshal(dAtA []byte) error
- func (m *OIDCConfig) XXX_DiscardUnknown()
- func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OIDCConfig) XXX_Merge(src proto.Message)
- func (m *OIDCConfig) XXX_Size() int
- func (m *OIDCConfig) XXX_Unmarshal(b []byte) error
- type Server
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetAppLabelKey() string
- func (m *Settings) GetDexConfig() *DexConfig
- func (m *Settings) GetOIDCConfig() *OIDCConfig
- func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride
- 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
- func (m *Settings) XXX_DiscardUnknown()
- func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Settings) XXX_Merge(src proto.Message)
- func (m *Settings) XXX_Size() int
- func (m *Settings) XXX_Unmarshal(b []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
- func (m *SettingsQuery) XXX_DiscardUnknown()
- func (m *SettingsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SettingsQuery) XXX_Merge(src proto.Message)
- func (m *SettingsQuery) XXX_Size() int
- func (m *SettingsQuery) XXX_Unmarshal(b []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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Connector) Descriptor ¶
func (*Connector) ProtoMessage ¶
func (*Connector) ProtoMessage()
func (*Connector) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *Connector) XXX_DiscardUnknown()
func (*Connector) XXX_Marshal ¶ added in v0.9.0
func (*Connector) XXX_Unmarshal ¶ added in v0.9.0
type DexConfig ¶
type DexConfig struct { Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors" json:"connectors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DexConfig) Descriptor ¶
func (*DexConfig) GetConnectors ¶
func (*DexConfig) ProtoMessage ¶
func (*DexConfig) ProtoMessage()
func (*DexConfig) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *DexConfig) XXX_DiscardUnknown()
func (*DexConfig) XXX_Marshal ¶ added in v0.9.0
func (*DexConfig) XXX_Unmarshal ¶ added in v0.9.0
type OIDCConfig ¶ added in v0.11.0
type OIDCConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` CLIClientID string `protobuf:"bytes,4,opt,name=cliClientID,proto3" json:"cliClientID,omitempty"` Scopes []string `protobuf:"bytes,5,rep,name=scopes" json:"scopes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OIDCConfig) Descriptor ¶ added in v0.11.0
func (*OIDCConfig) Descriptor() ([]byte, []int)
func (*OIDCConfig) GetCLIClientID ¶ added in v0.12.0
func (m *OIDCConfig) GetCLIClientID() string
func (*OIDCConfig) GetClientID ¶ added in v0.11.0
func (m *OIDCConfig) GetClientID() string
func (*OIDCConfig) GetIssuer ¶ added in v0.11.0
func (m *OIDCConfig) GetIssuer() string
func (*OIDCConfig) GetName ¶ added in v0.11.0
func (m *OIDCConfig) GetName() string
func (*OIDCConfig) GetScopes ¶ added in v1.0.0
func (m *OIDCConfig) GetScopes() []string
func (*OIDCConfig) Marshal ¶ added in v0.11.0
func (m *OIDCConfig) Marshal() (dAtA []byte, err error)
func (*OIDCConfig) MarshalTo ¶ added in v0.11.0
func (m *OIDCConfig) MarshalTo(dAtA []byte) (int, error)
func (*OIDCConfig) ProtoMessage ¶ added in v0.11.0
func (*OIDCConfig) ProtoMessage()
func (*OIDCConfig) Reset ¶ added in v0.11.0
func (m *OIDCConfig) Reset()
func (*OIDCConfig) Size ¶ added in v0.11.0
func (m *OIDCConfig) Size() (n int)
func (*OIDCConfig) String ¶ added in v0.11.0
func (m *OIDCConfig) String() string
func (*OIDCConfig) Unmarshal ¶ added in v0.11.0
func (m *OIDCConfig) Unmarshal(dAtA []byte) error
func (*OIDCConfig) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *OIDCConfig) XXX_DiscardUnknown()
func (*OIDCConfig) XXX_Marshal ¶ added in v0.11.0
func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OIDCConfig) XXX_Merge ¶ added in v0.11.0
func (dst *OIDCConfig) XXX_Merge(src proto.Message)
func (*OIDCConfig) XXX_Size ¶ added in v0.11.0
func (m *OIDCConfig) XXX_Size() int
func (*OIDCConfig) XXX_Unmarshal ¶ added in v0.11.0
func (m *OIDCConfig) XXX_Unmarshal(b []byte) error
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 Settings 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"` OIDCConfig *OIDCConfig `protobuf:"bytes,3,opt,name=oidcConfig" json:"oidcConfig,omitempty"` AppLabelKey string `protobuf:"bytes,4,opt,name=appLabelKey,proto3" json:"appLabelKey,omitempty"` ResourceOverrides map[string]*v1alpha1.ResourceOverride `` /* 161-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Settings) Descriptor ¶
func (*Settings) GetAppLabelKey ¶ added in v0.12.0
func (*Settings) GetDexConfig ¶
func (*Settings) GetOIDCConfig ¶ added in v0.11.0
func (m *Settings) GetOIDCConfig() *OIDCConfig
func (*Settings) GetResourceOverrides ¶ added in v0.12.1
func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *Settings) XXX_DiscardUnknown()
func (*Settings) XXX_Marshal ¶ added in v0.9.0
func (*Settings) XXX_Unmarshal ¶ added in v0.9.0
type SettingsQuery ¶
type SettingsQuery struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SettingsQuery is a query for Argo CD 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
func (*SettingsQuery) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *SettingsQuery) XXX_DiscardUnknown()
func (*SettingsQuery) XXX_Marshal ¶ added in v0.9.0
func (m *SettingsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SettingsQuery) XXX_Merge ¶ added in v0.9.0
func (dst *SettingsQuery) XXX_Merge(src proto.Message)
func (*SettingsQuery) XXX_Size ¶ added in v0.9.0
func (m *SettingsQuery) XXX_Size() int
func (*SettingsQuery) XXX_Unmarshal ¶ added in v0.9.0
func (m *SettingsQuery) XXX_Unmarshal(b []byte) error
type SettingsServiceClient ¶
type SettingsServiceClient interface { // Get returns Argo CD 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 Argo CD settings Get(context.Context, *SettingsQuery) (*Settings, error) }