settings

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 17 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 added in v0.9.0

func (m *Connector) XXX_DiscardUnknown()

func (*Connector) XXX_Marshal added in v0.9.0

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

func (*Connector) XXX_Merge added in v0.9.0

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

func (*Connector) XXX_Size added in v0.9.0

func (m *Connector) XXX_Size() int

func (*Connector) XXX_Unmarshal added in v0.9.0

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 added in v0.9.0

func (m *DexConfig) XXX_DiscardUnknown()

func (*DexConfig) XXX_Marshal added in v0.9.0

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

func (*DexConfig) XXX_Merge added in v0.9.0

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

func (*DexConfig) XXX_Size added in v0.9.0

func (m *DexConfig) XXX_Size() int

func (*DexConfig) XXX_Unmarshal added in v0.9.0

func (m *DexConfig) 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 Repository service

func (*Server) AuthFuncOverride added in v0.4.0

func (s *Server) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)

AuthFuncOverride disables authentication for settings service

func (*Server) Get

func (s *Server) Get(ctx context.Context, q *SettingsQuery) (*Settings, error)

Get returns ArgoCD settings

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Settings) Descriptor

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

func (*Settings) GetDexConfig

func (m *Settings) GetDexConfig() *DexConfig

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 added in v0.9.0

func (m *Settings) XXX_DiscardUnknown()

func (*Settings) XXX_Marshal added in v0.9.0

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

func (*Settings) XXX_Merge added in v0.9.0

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

func (*Settings) XXX_Size added in v0.9.0

func (m *Settings) XXX_Size() int

func (*Settings) XXX_Unmarshal added in v0.9.0

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 ArgoCD 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 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 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)
}

Jump to

Keyboard shortcuts

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