Documentation ¶
Index ¶
- func RegisterConfigHandler(s server.Server, hdlr ConfigHandler, opts ...server.HandlerOption) error
- type App
- func (*App) Descriptor() ([]byte, []int)
- func (m *App) GetAppName() string
- func (m *App) GetCreatedAt() int64
- func (m *App) GetDescription() string
- func (m *App) GetId() int64
- func (m *App) GetUpdatedAt() int64
- func (*App) ProtoMessage()
- func (m *App) Reset()
- func (m *App) String() string
- func (m *App) XXX_DiscardUnknown()
- func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *App) XXX_Merge(src proto.Message)
- func (m *App) XXX_Size() int
- func (m *App) XXX_Unmarshal(b []byte) error
- type Apps
- func (*Apps) Descriptor() ([]byte, []int)
- func (m *Apps) GetApps() []*App
- func (*Apps) ProtoMessage()
- func (m *Apps) Reset()
- func (m *Apps) String() string
- func (m *Apps) XXX_DiscardUnknown()
- func (m *Apps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Apps) XXX_Merge(src proto.Message)
- func (m *Apps) XXX_Size() int
- func (m *Apps) XXX_Unmarshal(b []byte) error
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetAppName() string
- func (m *Cluster) GetClusterName() string
- func (m *Cluster) GetCreatedAt() int64
- func (m *Cluster) GetDescription() string
- func (m *Cluster) GetId() int64
- func (m *Cluster) GetUpdatedAt() int64
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type Clusters
- func (*Clusters) Descriptor() ([]byte, []int)
- func (m *Clusters) GetClusters() []*Cluster
- func (*Clusters) ProtoMessage()
- func (m *Clusters) Reset()
- func (m *Clusters) String() string
- func (m *Clusters) XXX_DiscardUnknown()
- func (m *Clusters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Clusters) XXX_Merge(src proto.Message)
- func (m *Clusters) XXX_Size() int
- func (m *Clusters) XXX_Unmarshal(b []byte) error
- type ConfigHandler
- type ConfigService
- type Config_WatchService
- type Config_WatchStream
- type Namespace
- func (*Namespace) Descriptor() ([]byte, []int)
- func (m *Namespace) GetAppName() string
- func (m *Namespace) GetClusterName() string
- func (m *Namespace) GetCreatedAt() int64
- func (m *Namespace) GetDescription() string
- func (m *Namespace) GetFormat() string
- func (m *Namespace) GetId() int64
- func (m *Namespace) GetNamespaceName() string
- func (m *Namespace) GetUpdatedAt() int64
- func (m *Namespace) GetValue() string
- func (*Namespace) ProtoMessage()
- func (m *Namespace) Reset()
- func (m *Namespace) String() string
- func (m *Namespace) XXX_DiscardUnknown()
- func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Namespace) XXX_Merge(src proto.Message)
- func (m *Namespace) XXX_Size() int
- func (m *Namespace) XXX_Unmarshal(b []byte) error
- type Namespaces
- func (*Namespaces) Descriptor() ([]byte, []int)
- func (m *Namespaces) GetNamespaces() []*Namespace
- func (*Namespaces) ProtoMessage()
- func (m *Namespaces) Reset()
- func (m *Namespaces) String() string
- func (m *Namespaces) XXX_DiscardUnknown()
- func (m *Namespaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Namespaces) XXX_Merge(src proto.Message)
- func (m *Namespaces) XXX_Size() int
- func (m *Namespaces) XXX_Unmarshal(b []byte) error
- type Release
- func (*Release) Descriptor() ([]byte, []int)
- func (m *Release) GetAppName() string
- func (m *Release) GetClusterName() string
- func (m *Release) GetComment() string
- func (m *Release) GetCreatedAt() int64
- func (m *Release) GetId() int64
- func (m *Release) GetNamespaceName() string
- func (m *Release) GetUpdatedAt() int64
- func (*Release) ProtoMessage()
- func (m *Release) Reset()
- func (m *Release) String() string
- func (m *Release) XXX_DiscardUnknown()
- func (m *Release) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Release) XXX_Merge(src proto.Message)
- func (m *Release) XXX_Size() int
- func (m *Release) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfigHandler ¶
func RegisterConfigHandler(s server.Server, hdlr ConfigHandler, opts ...server.HandlerOption) error
Types ¶
type App ¶
type App struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` AppName string `protobuf:"bytes,4,opt,name=appName,proto3" json:"appName,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*App) Descriptor ¶
func (*App) GetAppName ¶
func (*App) GetCreatedAt ¶
func (*App) GetDescription ¶
func (*App) GetUpdatedAt ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) XXX_DiscardUnknown ¶
func (m *App) XXX_DiscardUnknown()
func (*App) XXX_Unmarshal ¶
type Apps ¶
type Apps struct { Apps []*App `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Apps) Descriptor ¶
func (*Apps) ProtoMessage ¶
func (*Apps) ProtoMessage()
func (*Apps) XXX_DiscardUnknown ¶
func (m *Apps) XXX_DiscardUnknown()
func (*Apps) XXX_Unmarshal ¶
type Cluster ¶
type Cluster struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` AppName string `protobuf:"bytes,4,opt,name=appName,proto3" json:"appName,omitempty"` ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetAppName ¶
func (*Cluster) GetClusterName ¶
func (*Cluster) GetCreatedAt ¶
func (*Cluster) GetDescription ¶
func (*Cluster) GetUpdatedAt ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type Clusters ¶
type Clusters struct { Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Clusters) Descriptor ¶
func (*Clusters) GetClusters ¶
func (*Clusters) ProtoMessage ¶
func (*Clusters) ProtoMessage()
func (*Clusters) XXX_DiscardUnknown ¶
func (m *Clusters) XXX_DiscardUnknown()
func (*Clusters) XXX_Marshal ¶
func (*Clusters) XXX_Unmarshal ¶
type ConfigHandler ¶
type ConfigHandler interface { CreateApp(context.Context, *App, *App) error DeleteApp(context.Context, *App, *Response) error ListApps(context.Context, *Request, *Apps) error CreateCluster(context.Context, *Cluster, *Cluster) error DeleteCluster(context.Context, *Cluster, *Response) error ListClusters(context.Context, *App, *Clusters) error CreateNamespace(context.Context, *Namespace, *Namespace) error DeleteNamespace(context.Context, *Namespace, *Response) error ListNamespaces(context.Context, *Cluster, *Namespaces) error UpdateConfig(context.Context, *Namespace, *Response) error ReleaseConfig(context.Context, *Release, *Response) error Read(context.Context, *Namespaces, *Namespaces) error Watch(context.Context, *Request, Config_WatchStream) error }
type ConfigService ¶
type ConfigService interface { CreateApp(ctx context.Context, in *App, opts ...client.CallOption) (*App, error) DeleteApp(ctx context.Context, in *App, opts ...client.CallOption) (*Response, error) ListApps(ctx context.Context, in *Request, opts ...client.CallOption) (*Apps, error) CreateCluster(ctx context.Context, in *Cluster, opts ...client.CallOption) (*Cluster, error) DeleteCluster(ctx context.Context, in *Cluster, opts ...client.CallOption) (*Response, error) ListClusters(ctx context.Context, in *App, opts ...client.CallOption) (*Clusters, error) CreateNamespace(ctx context.Context, in *Namespace, opts ...client.CallOption) (*Namespace, error) DeleteNamespace(ctx context.Context, in *Namespace, opts ...client.CallOption) (*Response, error) ListNamespaces(ctx context.Context, in *Cluster, opts ...client.CallOption) (*Namespaces, error) UpdateConfig(ctx context.Context, in *Namespace, opts ...client.CallOption) (*Response, error) ReleaseConfig(ctx context.Context, in *Release, opts ...client.CallOption) (*Response, error) Read(ctx context.Context, in *Namespaces, opts ...client.CallOption) (*Namespaces, error) Watch(ctx context.Context, in *Request, opts ...client.CallOption) (Config_WatchService, error) }
func NewConfigService ¶
func NewConfigService(name string, c client.Client) ConfigService
type Config_WatchService ¶
type Config_WatchStream ¶
type Namespace ¶
type Namespace struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` AppName string `protobuf:"bytes,4,opt,name=appName,proto3" json:"appName,omitempty"` ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` NamespaceName string `protobuf:"bytes,6,opt,name=namespaceName,proto3" json:"namespaceName,omitempty"` Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"` Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Namespace) Descriptor ¶
func (*Namespace) GetAppName ¶
func (*Namespace) GetClusterName ¶
func (*Namespace) GetCreatedAt ¶
func (*Namespace) GetDescription ¶
func (*Namespace) GetNamespaceName ¶
func (*Namespace) GetUpdatedAt ¶
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) XXX_DiscardUnknown ¶
func (m *Namespace) XXX_DiscardUnknown()
func (*Namespace) XXX_Marshal ¶
func (*Namespace) XXX_Unmarshal ¶
type Namespaces ¶
type Namespaces struct { Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Namespaces) Descriptor ¶
func (*Namespaces) Descriptor() ([]byte, []int)
func (*Namespaces) GetNamespaces ¶
func (m *Namespaces) GetNamespaces() []*Namespace
func (*Namespaces) ProtoMessage ¶
func (*Namespaces) ProtoMessage()
func (*Namespaces) Reset ¶
func (m *Namespaces) Reset()
func (*Namespaces) String ¶
func (m *Namespaces) String() string
func (*Namespaces) XXX_DiscardUnknown ¶
func (m *Namespaces) XXX_DiscardUnknown()
func (*Namespaces) XXX_Marshal ¶
func (m *Namespaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Namespaces) XXX_Merge ¶
func (m *Namespaces) XXX_Merge(src proto.Message)
func (*Namespaces) XXX_Size ¶
func (m *Namespaces) XXX_Size() int
func (*Namespaces) XXX_Unmarshal ¶
func (m *Namespaces) XXX_Unmarshal(b []byte) error
type Release ¶
type Release struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` AppName string `protobuf:"bytes,4,opt,name=appName,proto3" json:"appName,omitempty"` ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` NamespaceName string `protobuf:"bytes,6,opt,name=namespaceName,proto3" json:"namespaceName,omitempty"` Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Release) Descriptor ¶
func (*Release) GetAppName ¶
func (*Release) GetClusterName ¶
func (*Release) GetComment ¶
func (*Release) GetCreatedAt ¶
func (*Release) GetNamespaceName ¶
func (*Release) GetUpdatedAt ¶
func (*Release) ProtoMessage ¶
func (*Release) ProtoMessage()
func (*Release) XXX_DiscardUnknown ¶
func (m *Release) XXX_DiscardUnknown()
func (*Release) XXX_Marshal ¶
func (*Release) XXX_Unmarshal ¶
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.