config

package
v0.0.0-...-8fb4ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (*App) GetAppName

func (m *App) GetAppName() string

func (*App) GetCreatedAt

func (m *App) GetCreatedAt() int64

func (*App) GetDescription

func (m *App) GetDescription() string

func (*App) GetId

func (m *App) GetId() int64

func (*App) GetUpdatedAt

func (m *App) GetUpdatedAt() int64

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) Reset

func (m *App) Reset()

func (*App) String

func (m *App) String() string

func (*App) XXX_DiscardUnknown

func (m *App) XXX_DiscardUnknown()

func (*App) XXX_Marshal

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

func (*App) XXX_Merge

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

func (*App) XXX_Size

func (m *App) XXX_Size() int

func (*App) XXX_Unmarshal

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

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

func (*Apps) GetApps

func (m *Apps) GetApps() []*App

func (*Apps) ProtoMessage

func (*Apps) ProtoMessage()

func (*Apps) Reset

func (m *Apps) Reset()

func (*Apps) String

func (m *Apps) String() string

func (*Apps) XXX_DiscardUnknown

func (m *Apps) XXX_DiscardUnknown()

func (*Apps) XXX_Marshal

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

func (*Apps) XXX_Merge

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

func (*Apps) XXX_Size

func (m *Apps) XXX_Size() int

func (*Apps) XXX_Unmarshal

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

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

func (*Cluster) GetAppName

func (m *Cluster) GetAppName() string

func (*Cluster) GetClusterName

func (m *Cluster) GetClusterName() string

func (*Cluster) GetCreatedAt

func (m *Cluster) GetCreatedAt() int64

func (*Cluster) GetDescription

func (m *Cluster) GetDescription() string

func (*Cluster) GetId

func (m *Cluster) GetId() int64

func (*Cluster) GetUpdatedAt

func (m *Cluster) GetUpdatedAt() int64

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) String

func (m *Cluster) String() string

func (*Cluster) XXX_DiscardUnknown

func (m *Cluster) XXX_DiscardUnknown()

func (*Cluster) XXX_Marshal

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

func (*Cluster) XXX_Merge

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

func (*Cluster) XXX_Size

func (m *Cluster) XXX_Size() int

func (*Cluster) XXX_Unmarshal

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

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

func (*Clusters) GetClusters

func (m *Clusters) GetClusters() []*Cluster

func (*Clusters) ProtoMessage

func (*Clusters) ProtoMessage()

func (*Clusters) Reset

func (m *Clusters) Reset()

func (*Clusters) String

func (m *Clusters) String() string

func (*Clusters) XXX_DiscardUnknown

func (m *Clusters) XXX_DiscardUnknown()

func (*Clusters) XXX_Marshal

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

func (*Clusters) XXX_Merge

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

func (*Clusters) XXX_Size

func (m *Clusters) XXX_Size() int

func (*Clusters) XXX_Unmarshal

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

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_WatchService interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*Namespace, error)
}

type Config_WatchStream

type Config_WatchStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Namespace) error
}

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

func (*Namespace) GetAppName

func (m *Namespace) GetAppName() string

func (*Namespace) GetClusterName

func (m *Namespace) GetClusterName() string

func (*Namespace) GetCreatedAt

func (m *Namespace) GetCreatedAt() int64

func (*Namespace) GetDescription

func (m *Namespace) GetDescription() string

func (*Namespace) GetFormat

func (m *Namespace) GetFormat() string

func (*Namespace) GetId

func (m *Namespace) GetId() int64

func (*Namespace) GetNamespaceName

func (m *Namespace) GetNamespaceName() string

func (*Namespace) GetUpdatedAt

func (m *Namespace) GetUpdatedAt() int64

func (*Namespace) GetValue

func (m *Namespace) GetValue() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) Reset

func (m *Namespace) Reset()

func (*Namespace) String

func (m *Namespace) String() string

func (*Namespace) XXX_DiscardUnknown

func (m *Namespace) XXX_DiscardUnknown()

func (*Namespace) XXX_Marshal

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

func (*Namespace) XXX_Merge

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

func (*Namespace) XXX_Size

func (m *Namespace) XXX_Size() int

func (*Namespace) XXX_Unmarshal

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

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

func (*Release) GetAppName

func (m *Release) GetAppName() string

func (*Release) GetClusterName

func (m *Release) GetClusterName() string

func (*Release) GetComment

func (m *Release) GetComment() string

func (*Release) GetCreatedAt

func (m *Release) GetCreatedAt() int64

func (*Release) GetId

func (m *Release) GetId() int64

func (*Release) GetNamespaceName

func (m *Release) GetNamespaceName() string

func (*Release) GetUpdatedAt

func (m *Release) GetUpdatedAt() int64

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) Reset

func (m *Release) Reset()

func (*Release) String

func (m *Release) String() string

func (*Release) XXX_DiscardUnknown

func (m *Release) XXX_DiscardUnknown()

func (*Release) XXX_Marshal

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

func (*Release) XXX_Merge

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

func (*Release) XXX_Size

func (m *Release) XXX_Size() int

func (*Release) XXX_Unmarshal

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

type Request

type Request struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type Response

type Response struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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