settings

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 16 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")
)

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

func (*Settings) GetAppLabelKey

func (m *Settings) GetAppLabelKey() string

func (*Settings) GetDexConfig

func (m *Settings) GetDexConfig() *DexConfig

func (*Settings) GetOIDCConfig

func (m *Settings) GetOIDCConfig() *OIDCConfig

func (*Settings) GetResourceOverrides

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

func (*Settings) GetURL

func (m *Settings) GetURL() string

func (*Settings) Marshal

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

func (*Settings) MarshalTo

func (m *Settings) MarshalTo(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 (dst *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) 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)
}

Jump to

Keyboard shortcuts

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