settings

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package settings is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSettings        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSettings          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSettings = fmt.Errorf("proto: unexpected end of group")
)

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) Descriptor() ([]byte, []int)

func (*Connector) GetName

func (m *Connector) GetName() string

func (*Connector) GetType

func (m *Connector) GetType() string

func (*Connector) Marshal

func (m *Connector) Marshal() (dAtA []byte, err error)

func (*Connector) MarshalTo

func (m *Connector) MarshalTo(dAtA []byte) (int, error)

func (*Connector) MarshalToSizedBuffer added in v1.4.0

func (m *Connector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Connector) ProtoMessage

func (*Connector) ProtoMessage()

func (*Connector) Reset

func (m *Connector) Reset()

func (*Connector) Size

func (m *Connector) Size() (n int)

func (*Connector) String

func (m *Connector) String() string

func (*Connector) Unmarshal

func (m *Connector) Unmarshal(dAtA []byte) error

func (*Connector) XXX_DiscardUnknown

func (m *Connector) XXX_DiscardUnknown()

func (*Connector) XXX_Marshal

func (m *Connector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Connector) XXX_Merge

func (m *Connector) XXX_Merge(src proto.Message)

func (*Connector) XXX_Size

func (m *Connector) XXX_Size() int

func (*Connector) XXX_Unmarshal

func (m *Connector) XXX_Unmarshal(b []byte) error

type DexConfig

type DexConfig struct {
	Connectors           []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*DexConfig) Descriptor

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

func (*DexConfig) GetConnectors

func (m *DexConfig) GetConnectors() []*Connector

func (*DexConfig) Marshal

func (m *DexConfig) Marshal() (dAtA []byte, err error)

func (*DexConfig) MarshalTo

func (m *DexConfig) MarshalTo(dAtA []byte) (int, error)

func (*DexConfig) MarshalToSizedBuffer added in v1.4.0

func (m *DexConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DexConfig) ProtoMessage

func (*DexConfig) ProtoMessage()

func (*DexConfig) Reset

func (m *DexConfig) Reset()

func (*DexConfig) Size

func (m *DexConfig) Size() (n int)

func (*DexConfig) String

func (m *DexConfig) String() string

func (*DexConfig) Unmarshal

func (m *DexConfig) Unmarshal(dAtA []byte) error

func (*DexConfig) XXX_DiscardUnknown

func (m *DexConfig) XXX_DiscardUnknown()

func (*DexConfig) XXX_Marshal

func (m *DexConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DexConfig) XXX_Merge

func (m *DexConfig) XXX_Merge(src proto.Message)

func (*DexConfig) XXX_Size

func (m *DexConfig) XXX_Size() int

func (*DexConfig) XXX_Unmarshal

func (m *DexConfig) XXX_Unmarshal(b []byte) error

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) MarshalToSizedBuffer added in v1.4.0

func (m *GoogleAnalyticsConfig) MarshalToSizedBuffer(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 (m *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) Descriptor() ([]byte, []int)

func (*Help) GetChatText added in v1.2.0

func (m *Help) GetChatText() string

func (*Help) GetChatUrl added in v1.2.0

func (m *Help) GetChatUrl() string

func (*Help) Marshal added in v1.2.0

func (m *Help) Marshal() (dAtA []byte, err error)

func (*Help) MarshalTo added in v1.2.0

func (m *Help) MarshalTo(dAtA []byte) (int, error)

func (*Help) MarshalToSizedBuffer added in v1.4.0

func (m *Help) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Help) ProtoMessage added in v1.2.0

func (*Help) ProtoMessage()

func (*Help) Reset added in v1.2.0

func (m *Help) Reset()

func (*Help) Size added in v1.2.0

func (m *Help) Size() (n int)

func (*Help) String added in v1.2.0

func (m *Help) String() string

func (*Help) Unmarshal added in v1.2.0

func (m *Help) Unmarshal(dAtA []byte) error

func (*Help) XXX_DiscardUnknown added in v1.2.0

func (m *Help) XXX_DiscardUnknown()

func (*Help) XXX_Marshal added in v1.2.0

func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Help) XXX_Merge added in v1.2.0

func (m *Help) XXX_Merge(src proto.Message)

func (*Help) XXX_Size added in v1.2.0

func (m *Help) XXX_Size() int

func (*Help) XXX_Unmarshal added in v1.2.0

func (m *Help) XXX_Unmarshal(b []byte) error

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,proto3" json:"scopes,omitempty"`
	IDTokenClaims        map[string]*oidc.Claim `` /* 167-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) MarshalTo

func (m *OIDCConfig) MarshalTo(dAtA []byte) (int, error)

func (*OIDCConfig) MarshalToSizedBuffer added in v1.4.0

func (m *OIDCConfig) MarshalToSizedBuffer(dAtA []byte) (int, 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 (m *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) Descriptor() ([]byte, []int)

func (*Plugin) GetName added in v1.3.0

func (m *Plugin) GetName() string

func (*Plugin) Marshal added in v1.3.0

func (m *Plugin) Marshal() (dAtA []byte, err error)

func (*Plugin) MarshalTo added in v1.3.0

func (m *Plugin) MarshalTo(dAtA []byte) (int, error)

func (*Plugin) MarshalToSizedBuffer added in v1.4.0

func (m *Plugin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Plugin) ProtoMessage added in v1.3.0

func (*Plugin) ProtoMessage()

func (*Plugin) Reset added in v1.3.0

func (m *Plugin) Reset()

func (*Plugin) Size added in v1.3.0

func (m *Plugin) Size() (n int)

func (*Plugin) String added in v1.3.0

func (m *Plugin) String() string

func (*Plugin) Unmarshal added in v1.3.0

func (m *Plugin) Unmarshal(dAtA []byte) error

func (*Plugin) XXX_DiscardUnknown added in v1.3.0

func (m *Plugin) XXX_DiscardUnknown()

func (*Plugin) XXX_Marshal added in v1.3.0

func (m *Plugin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Plugin) XXX_Merge added in v1.3.0

func (m *Plugin) XXX_Merge(src proto.Message)

func (*Plugin) XXX_Size added in v1.3.0

func (m *Plugin) XXX_Size() int

func (*Plugin) XXX_Unmarshal added in v1.3.0

func (m *Plugin) XXX_Unmarshal(b []byte) error

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,proto3" json:"dexConfig,omitempty"`
	OIDCConfig         *OIDCConfig                           `protobuf:"bytes,3,opt,name=oidcConfig,proto3" json:"oidcConfig,omitempty"`
	AppLabelKey        string                                `protobuf:"bytes,4,opt,name=appLabelKey,proto3" json:"appLabelKey,omitempty"`
	ResourceOverrides  map[string]*v1alpha1.ResourceOverride `` /* 175-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,proto3" json:"googleAnalytics,omitempty"`
	KustomizeOptions   *v1alpha1.KustomizeOptions            `protobuf:"bytes,8,opt,name=kustomizeOptions,proto3" json:"kustomizeOptions,omitempty"`
	// Help settings
	Help                 *Help     `protobuf:"bytes,9,opt,name=help,proto3" json:"help,omitempty"`
	Plugins              []*Plugin `protobuf:"bytes,10,rep,name=plugins,proto3" json:"plugins,omitempty"`
	UserLoginsDisabled   bool      `protobuf:"varint,11,opt,name=userLoginsDisabled,proto3" json:"userLoginsDisabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Settings) Descriptor

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

func (*Settings) GetAppLabelKey

func (m *Settings) GetAppLabelKey() string

func (*Settings) GetDexConfig

func (m *Settings) GetDexConfig() *DexConfig

func (*Settings) GetGoogleAnalytics added in v1.2.0

func (m *Settings) GetGoogleAnalytics() *GoogleAnalyticsConfig

func (*Settings) GetHelp added in v1.2.0

func (m *Settings) GetHelp() *Help

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 (m *Settings) GetPlugins() []*Plugin

func (*Settings) GetResourceOverrides

func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride

func (*Settings) GetStatusBadgeEnabled added in v1.2.0

func (m *Settings) GetStatusBadgeEnabled() bool

func (*Settings) GetURL

func (m *Settings) GetURL() string

func (*Settings) GetUserLoginsDisabled added in v1.5.0

func (m *Settings) GetUserLoginsDisabled() bool

func (*Settings) Marshal

func (m *Settings) Marshal() (dAtA []byte, err error)

func (*Settings) MarshalTo

func (m *Settings) MarshalTo(dAtA []byte) (int, error)

func (*Settings) MarshalToSizedBuffer added in v1.4.0

func (m *Settings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) Reset

func (m *Settings) Reset()

func (*Settings) Size

func (m *Settings) Size() (n int)

func (*Settings) String

func (m *Settings) String() string

func (*Settings) Unmarshal

func (m *Settings) Unmarshal(dAtA []byte) error

func (*Settings) XXX_DiscardUnknown

func (m *Settings) XXX_DiscardUnknown()

func (*Settings) XXX_Marshal

func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Settings) XXX_Merge

func (m *Settings) XXX_Merge(src proto.Message)

func (*Settings) XXX_Size

func (m *Settings) XXX_Size() int

func (*Settings) XXX_Unmarshal

func (m *Settings) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *SettingsQuery) MarshalTo(dAtA []byte) (int, error)

func (*SettingsQuery) MarshalToSizedBuffer added in v1.4.0

func (m *SettingsQuery) MarshalToSizedBuffer(dAtA []byte) (int, 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 (m *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)
}

SettingsServiceClient is the client API for SettingsService service.

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

func NewSettingsServiceClient

func NewSettingsServiceClient(cc *grpc.ClientConn) SettingsServiceClient

type SettingsServiceServer

type SettingsServiceServer interface {
	// Get returns Argo CD settings
	Get(context.Context, *SettingsQuery) (*Settings, error)
}

SettingsServiceServer is the server API for SettingsService service.

type UnimplementedSettingsServiceServer added in v1.4.0

type UnimplementedSettingsServiceServer struct {
}

UnimplementedSettingsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSettingsServiceServer) Get added in v1.4.0

Jump to

Keyboard shortcuts

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