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 GoogleAnalyticsConfig
- func (*GoogleAnalyticsConfig) Descriptor() ([]byte, []int)
- func (m *GoogleAnalyticsConfig) GetAnonymizeUsers() bool
- func (m *GoogleAnalyticsConfig) GetTrackingID() string
- func (m *GoogleAnalyticsConfig) Marshal() (dAtA []byte, err error)
- func (m *GoogleAnalyticsConfig) MarshalTo(dAtA []byte) (int, error)
- func (*GoogleAnalyticsConfig) ProtoMessage()
- func (m *GoogleAnalyticsConfig) Reset()
- func (m *GoogleAnalyticsConfig) Size() (n int)
- func (m *GoogleAnalyticsConfig) String() string
- func (m *GoogleAnalyticsConfig) Unmarshal(dAtA []byte) error
- func (m *GoogleAnalyticsConfig) XXX_DiscardUnknown()
- func (m *GoogleAnalyticsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GoogleAnalyticsConfig) XXX_Merge(src proto.Message)
- func (m *GoogleAnalyticsConfig) XXX_Size() int
- func (m *GoogleAnalyticsConfig) XXX_Unmarshal(b []byte) error
- type Help
- func (*Help) Descriptor() ([]byte, []int)
- func (m *Help) GetChatText() string
- func (m *Help) GetChatUrl() string
- func (m *Help) Marshal() (dAtA []byte, err error)
- func (m *Help) MarshalTo(dAtA []byte) (int, error)
- func (*Help) ProtoMessage()
- func (m *Help) Reset()
- func (m *Help) Size() (n int)
- func (m *Help) String() string
- func (m *Help) Unmarshal(dAtA []byte) error
- func (m *Help) XXX_DiscardUnknown()
- func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Help) XXX_Merge(src proto.Message)
- func (m *Help) XXX_Size() int
- func (m *Help) 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) GetIDTokenClaims() map[string]*oidc.Claim
- 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 Plugin
- func (*Plugin) Descriptor() ([]byte, []int)
- func (m *Plugin) GetName() string
- func (m *Plugin) Marshal() (dAtA []byte, err error)
- func (m *Plugin) MarshalTo(dAtA []byte) (int, error)
- func (*Plugin) ProtoMessage()
- func (m *Plugin) Reset()
- func (m *Plugin) Size() (n int)
- func (m *Plugin) String() string
- func (m *Plugin) Unmarshal(dAtA []byte) error
- func (m *Plugin) XXX_DiscardUnknown()
- func (m *Plugin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Plugin) XXX_Merge(src proto.Message)
- func (m *Plugin) XXX_Size() int
- func (m *Plugin) XXX_Unmarshal(b []byte) error
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetAppLabelKey() string
- func (m *Settings) GetDexConfig() *DexConfig
- func (m *Settings) GetGoogleAnalytics() *GoogleAnalyticsConfig
- func (m *Settings) GetHelp() *Help
- func (m *Settings) GetKustomizeOptions() *v1alpha1.KustomizeOptions
- func (m *Settings) GetOIDCConfig() *OIDCConfig
- func (m *Settings) GetPlugins() []*Plugin
- func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride
- func (m *Settings) GetStatusBadgeEnabled() bool
- 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 ¶
func (m *Connector) XXX_DiscardUnknown()
func (*Connector) XXX_Marshal ¶
func (*Connector) XXX_Unmarshal ¶
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 ¶
func (m *DexConfig) XXX_DiscardUnknown()
func (*DexConfig) XXX_Marshal ¶
func (*DexConfig) XXX_Unmarshal ¶
type GoogleAnalyticsConfig ¶ added in v1.2.0
type GoogleAnalyticsConfig struct { TrackingID string `protobuf:"bytes,1,opt,name=trackingID,proto3" json:"trackingID,omitempty"` AnonymizeUsers bool `protobuf:"varint,2,opt,name=anonymizeUsers,proto3" json:"anonymizeUsers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GoogleAnalyticsConfig) Descriptor ¶ added in v1.2.0
func (*GoogleAnalyticsConfig) Descriptor() ([]byte, []int)
func (*GoogleAnalyticsConfig) GetAnonymizeUsers ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) GetAnonymizeUsers() bool
func (*GoogleAnalyticsConfig) GetTrackingID ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) GetTrackingID() string
func (*GoogleAnalyticsConfig) Marshal ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) Marshal() (dAtA []byte, err error)
func (*GoogleAnalyticsConfig) MarshalTo ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) MarshalTo(dAtA []byte) (int, error)
func (*GoogleAnalyticsConfig) ProtoMessage ¶ added in v1.2.0
func (*GoogleAnalyticsConfig) ProtoMessage()
func (*GoogleAnalyticsConfig) Reset ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) Reset()
func (*GoogleAnalyticsConfig) Size ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) Size() (n int)
func (*GoogleAnalyticsConfig) String ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) String() string
func (*GoogleAnalyticsConfig) Unmarshal ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) Unmarshal(dAtA []byte) error
func (*GoogleAnalyticsConfig) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) XXX_DiscardUnknown()
func (*GoogleAnalyticsConfig) XXX_Marshal ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoogleAnalyticsConfig) XXX_Merge ¶ added in v1.2.0
func (dst *GoogleAnalyticsConfig) XXX_Merge(src proto.Message)
func (*GoogleAnalyticsConfig) XXX_Size ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) XXX_Size() int
func (*GoogleAnalyticsConfig) XXX_Unmarshal ¶ added in v1.2.0
func (m *GoogleAnalyticsConfig) XXX_Unmarshal(b []byte) error
type Help ¶ added in v1.2.0
type Help struct { // the URL for getting chat help, this will typically be your Slack channel for support ChatUrl string `protobuf:"bytes,1,opt,name=chatUrl,proto3" json:"chatUrl,omitempty"` // the text for getting chat help, defaults to "Chat now!" ChatText string `protobuf:"bytes,2,opt,name=chatText,proto3" json:"chatText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Help settings
func (*Help) Descriptor ¶ added in v1.2.0
func (*Help) GetChatText ¶ added in v1.2.0
func (*Help) GetChatUrl ¶ added in v1.2.0
func (*Help) ProtoMessage ¶ added in v1.2.0
func (*Help) ProtoMessage()
func (*Help) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *Help) XXX_DiscardUnknown()
func (*Help) XXX_Marshal ¶ added in v1.2.0
func (*Help) XXX_Unmarshal ¶ added in v1.2.0
type OIDCConfig ¶
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"` IDTokenClaims map[string]*oidc.Claim `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OIDCConfig) Descriptor ¶
func (*OIDCConfig) Descriptor() ([]byte, []int)
func (*OIDCConfig) GetCLIClientID ¶
func (m *OIDCConfig) GetCLIClientID() string
func (*OIDCConfig) GetClientID ¶
func (m *OIDCConfig) GetClientID() string
func (*OIDCConfig) GetIDTokenClaims ¶ added in v1.3.0
func (m *OIDCConfig) GetIDTokenClaims() map[string]*oidc.Claim
func (*OIDCConfig) GetIssuer ¶
func (m *OIDCConfig) GetIssuer() string
func (*OIDCConfig) GetName ¶
func (m *OIDCConfig) GetName() string
func (*OIDCConfig) GetScopes ¶
func (m *OIDCConfig) GetScopes() []string
func (*OIDCConfig) Marshal ¶
func (m *OIDCConfig) Marshal() (dAtA []byte, err error)
func (*OIDCConfig) ProtoMessage ¶
func (*OIDCConfig) ProtoMessage()
func (*OIDCConfig) Reset ¶
func (m *OIDCConfig) Reset()
func (*OIDCConfig) Size ¶
func (m *OIDCConfig) Size() (n int)
func (*OIDCConfig) String ¶
func (m *OIDCConfig) String() string
func (*OIDCConfig) Unmarshal ¶
func (m *OIDCConfig) Unmarshal(dAtA []byte) error
func (*OIDCConfig) XXX_DiscardUnknown ¶
func (m *OIDCConfig) XXX_DiscardUnknown()
func (*OIDCConfig) XXX_Marshal ¶
func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OIDCConfig) XXX_Merge ¶
func (dst *OIDCConfig) XXX_Merge(src proto.Message)
func (*OIDCConfig) XXX_Size ¶
func (m *OIDCConfig) XXX_Size() int
func (*OIDCConfig) XXX_Unmarshal ¶
func (m *OIDCConfig) XXX_Unmarshal(b []byte) error
type Plugin ¶ added in v1.3.0
type Plugin struct { // the name of the plugin, e.g. "kasane" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Plugin settings
func (*Plugin) Descriptor ¶ added in v1.3.0
func (*Plugin) ProtoMessage ¶ added in v1.3.0
func (*Plugin) ProtoMessage()
func (*Plugin) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *Plugin) XXX_DiscardUnknown()
func (*Plugin) XXX_Marshal ¶ added in v1.3.0
func (*Plugin) XXX_Unmarshal ¶ added in v1.3.0
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 */ StatusBadgeEnabled bool `protobuf:"varint,6,opt,name=statusBadgeEnabled,proto3" json:"statusBadgeEnabled,omitempty"` GoogleAnalytics *GoogleAnalyticsConfig `protobuf:"bytes,7,opt,name=googleAnalytics" json:"googleAnalytics,omitempty"` KustomizeOptions *v1alpha1.KustomizeOptions `protobuf:"bytes,8,opt,name=kustomizeOptions" json:"kustomizeOptions,omitempty"` // Help settings Help *Help `protobuf:"bytes,9,opt,name=help" json:"help,omitempty"` Plugins []*Plugin `protobuf:"bytes,10,rep,name=plugins" json:"plugins,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Settings) Descriptor ¶
func (*Settings) GetAppLabelKey ¶
func (*Settings) GetDexConfig ¶
func (*Settings) GetGoogleAnalytics ¶ added in v1.2.0
func (m *Settings) GetGoogleAnalytics() *GoogleAnalyticsConfig
func (*Settings) GetKustomizeOptions ¶ added in v1.2.0
func (m *Settings) GetKustomizeOptions() *v1alpha1.KustomizeOptions
func (*Settings) GetOIDCConfig ¶
func (m *Settings) GetOIDCConfig() *OIDCConfig
func (*Settings) GetPlugins ¶ added in v1.3.0
func (*Settings) GetResourceOverrides ¶
func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride
func (*Settings) GetStatusBadgeEnabled ¶ added in v1.2.0
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) XXX_DiscardUnknown ¶
func (m *Settings) XXX_DiscardUnknown()
func (*Settings) XXX_Marshal ¶
func (*Settings) XXX_Unmarshal ¶
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 ¶
func (m *SettingsQuery) XXX_DiscardUnknown()
func (*SettingsQuery) XXX_Marshal ¶
func (m *SettingsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SettingsQuery) XXX_Merge ¶
func (dst *SettingsQuery) XXX_Merge(src proto.Message)
func (*SettingsQuery) XXX_Size ¶
func (m *SettingsQuery) XXX_Size() int
func (*SettingsQuery) XXX_Unmarshal ¶
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) }