v1

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasType_name = map[int32]string{
	0: "DEFAULT",
	1: "CL5SID",
}
View Source
var AliasType_value = map[string]int32{
	"DEFAULT": 0,
	"CL5SID":  1,
}
View Source
var HealthCheck_HealthCheckType_name = map[int32]string{
	0: "UNKNOWN",
	1: "HEARTBEAT",
}
View Source
var HealthCheck_HealthCheckType_value = map[string]int32{
	"UNKNOWN":   0,
	"HEARTBEAT": 1,
}
View Source
var MatchString_MatchStringType_name = map[int32]string{
	0: "EXACT",
	1: "REGEX",
}
View Source
var MatchString_MatchStringType_value = map[string]int32{
	"EXACT": 0,
	"REGEX": 1,
}
View Source
var MatchString_ValueType_name = map[int32]string{
	0: "TEXT",
	1: "PARAMETER",
	2: "VARIABLE",
}
View Source
var MatchString_ValueType_value = map[string]int32{
	"TEXT":      0,
	"PARAMETER": 1,
	"VARIABLE":  2,
}

Functions

func RegisterPolarisGRPCServer

func RegisterPolarisGRPCServer(s *grpc.Server, srv PolarisGRPCServer)

Types

type AliasType

type AliasType int32
const (
	AliasType_DEFAULT AliasType = 0
	AliasType_CL5SID  AliasType = 1
)

func (AliasType) EnumDescriptor

func (AliasType) EnumDescriptor() ([]byte, []int)

func (AliasType) String

func (x AliasType) String() string

type HealthCheck

type HealthCheck struct {
	Type                 HealthCheck_HealthCheckType `protobuf:"varint,1,opt,name=type,proto3,enum=v1.HealthCheck_HealthCheckType" json:"type,omitempty"`
	Heartbeat            *HeartbeatHealthCheck       `protobuf:"bytes,2,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*HealthCheck) Descriptor

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

func (*HealthCheck) GetHeartbeat

func (m *HealthCheck) GetHeartbeat() *HeartbeatHealthCheck

func (*HealthCheck) GetType

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) Reset

func (m *HealthCheck) Reset()

func (*HealthCheck) String

func (m *HealthCheck) String() string

func (*HealthCheck) XXX_DiscardUnknown

func (m *HealthCheck) XXX_DiscardUnknown()

func (*HealthCheck) XXX_Marshal

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

func (*HealthCheck) XXX_Merge

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

func (*HealthCheck) XXX_Size

func (m *HealthCheck) XXX_Size() int

func (*HealthCheck) XXX_Unmarshal

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

type HealthCheck_HealthCheckType

type HealthCheck_HealthCheckType int32
const (
	HealthCheck_UNKNOWN   HealthCheck_HealthCheckType = 0
	HealthCheck_HEARTBEAT HealthCheck_HealthCheckType = 1
)

func (HealthCheck_HealthCheckType) EnumDescriptor

func (HealthCheck_HealthCheckType) EnumDescriptor() ([]byte, []int)

func (HealthCheck_HealthCheckType) String

type HeartbeatHealthCheck

type HeartbeatHealthCheck struct {
	Ttl                  *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*HeartbeatHealthCheck) Descriptor

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

func (*HeartbeatHealthCheck) GetTtl

func (*HeartbeatHealthCheck) ProtoMessage

func (*HeartbeatHealthCheck) ProtoMessage()

func (*HeartbeatHealthCheck) Reset

func (m *HeartbeatHealthCheck) Reset()

func (*HeartbeatHealthCheck) String

func (m *HeartbeatHealthCheck) String() string

func (*HeartbeatHealthCheck) XXX_DiscardUnknown

func (m *HeartbeatHealthCheck) XXX_DiscardUnknown()

func (*HeartbeatHealthCheck) XXX_Marshal

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

func (*HeartbeatHealthCheck) XXX_Merge

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

func (*HeartbeatHealthCheck) XXX_Size

func (m *HeartbeatHealthCheck) XXX_Size() int

func (*HeartbeatHealthCheck) XXX_Unmarshal

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

type Instance

type Instance struct {
	Id                   *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Service              *wrappers.StringValue `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Namespace            *wrappers.StringValue `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	VpcId                *wrappers.StringValue `protobuf:"bytes,21,opt,name=vpc_id,proto3" json:"vpc_id,omitempty"`
	Host                 *wrappers.StringValue `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	Port                 *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=port,proto3" json:"port,omitempty"`
	Protocol             *wrappers.StringValue `protobuf:"bytes,6,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Version              *wrappers.StringValue `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	Priority             *wrappers.UInt32Value `protobuf:"bytes,8,opt,name=priority,proto3" json:"priority,omitempty"`
	Weight               *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=weight,proto3" json:"weight,omitempty"`
	EnableHealthCheck    *wrappers.BoolValue   `protobuf:"bytes,20,opt,name=enable_health_check,json=enableHealthCheck,proto3" json:"enable_health_check,omitempty"`
	HealthCheck          *HealthCheck          `protobuf:"bytes,10,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
	Healthy              *wrappers.BoolValue   `protobuf:"bytes,11,opt,name=healthy,proto3" json:"healthy,omitempty"`
	Isolate              *wrappers.BoolValue   `protobuf:"bytes,12,opt,name=isolate,proto3" json:"isolate,omitempty"`
	Location             *Location             `protobuf:"bytes,13,opt,name=location,proto3" json:"location,omitempty"`
	Metadata             map[string]string     `` /* 158-byte string literal not displayed */
	LogicSet             *wrappers.StringValue `protobuf:"bytes,15,opt,name=logic_set,proto3" json:"logic_set,omitempty"`
	Ctime                *wrappers.StringValue `protobuf:"bytes,16,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Mtime                *wrappers.StringValue `protobuf:"bytes,17,opt,name=mtime,proto3" json:"mtime,omitempty"`
	Revision             *wrappers.StringValue `protobuf:"bytes,18,opt,name=revision,proto3" json:"revision,omitempty"`
	ServiceToken         *wrappers.StringValue `protobuf:"bytes,19,opt,name=service_token,proto3" json:"service_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Instance) Descriptor

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

func (*Instance) GetCtime

func (m *Instance) GetCtime() *wrappers.StringValue

func (*Instance) GetEnableHealthCheck

func (m *Instance) GetEnableHealthCheck() *wrappers.BoolValue

func (*Instance) GetHealthCheck

func (m *Instance) GetHealthCheck() *HealthCheck

func (*Instance) GetHealthy

func (m *Instance) GetHealthy() *wrappers.BoolValue

func (*Instance) GetHost

func (m *Instance) GetHost() *wrappers.StringValue

func (*Instance) GetId

func (m *Instance) GetId() *wrappers.StringValue

func (*Instance) GetIsolate

func (m *Instance) GetIsolate() *wrappers.BoolValue

func (*Instance) GetLocation

func (m *Instance) GetLocation() *Location

func (*Instance) GetLogicSet

func (m *Instance) GetLogicSet() *wrappers.StringValue

func (*Instance) GetMetadata

func (m *Instance) GetMetadata() map[string]string

func (*Instance) GetMtime

func (m *Instance) GetMtime() *wrappers.StringValue

func (*Instance) GetNamespace

func (m *Instance) GetNamespace() *wrappers.StringValue

func (*Instance) GetPort

func (m *Instance) GetPort() *wrappers.UInt32Value

func (*Instance) GetPriority

func (m *Instance) GetPriority() *wrappers.UInt32Value

func (*Instance) GetProtocol

func (m *Instance) GetProtocol() *wrappers.StringValue

func (*Instance) GetRevision

func (m *Instance) GetRevision() *wrappers.StringValue

func (*Instance) GetService

func (m *Instance) GetService() *wrappers.StringValue

func (*Instance) GetServiceToken

func (m *Instance) GetServiceToken() *wrappers.StringValue

func (*Instance) GetVersion

func (m *Instance) GetVersion() *wrappers.StringValue

func (*Instance) GetVpcId

func (m *Instance) GetVpcId() *wrappers.StringValue

func (*Instance) GetWeight

func (m *Instance) GetWeight() *wrappers.UInt32Value

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) Reset

func (m *Instance) Reset()

func (*Instance) String

func (m *Instance) String() string

func (*Instance) XXX_DiscardUnknown

func (m *Instance) XXX_DiscardUnknown()

func (*Instance) XXX_Marshal

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

func (*Instance) XXX_Merge

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

func (*Instance) XXX_Size

func (m *Instance) XXX_Size() int

func (*Instance) XXX_Unmarshal

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

type Location

type Location struct {
	Region               *wrappers.StringValue `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	Zone                 *wrappers.StringValue `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
	Campus               *wrappers.StringValue `protobuf:"bytes,3,opt,name=campus,proto3" json:"campus,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Location) Descriptor

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

func (*Location) GetCampus

func (m *Location) GetCampus() *wrappers.StringValue

func (*Location) GetRegion

func (m *Location) GetRegion() *wrappers.StringValue

func (*Location) GetZone

func (m *Location) GetZone() *wrappers.StringValue

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

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

func (*Location) XXX_Merge

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

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

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

type MatchString

type MatchString struct {
	Type                 MatchString_MatchStringType `protobuf:"varint,1,opt,name=type,proto3,enum=v1.MatchString_MatchStringType" json:"type,omitempty"`
	Value                *wrappers.StringValue       `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	ValueType            MatchString_ValueType       `protobuf:"varint,3,opt,name=value_type,json=valueType,proto3,enum=v1.MatchString_ValueType" json:"value_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*MatchString) Descriptor

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

func (*MatchString) GetType

func (*MatchString) GetValue

func (m *MatchString) GetValue() *wrappers.StringValue

func (*MatchString) GetValueType

func (m *MatchString) GetValueType() MatchString_ValueType

func (*MatchString) ProtoMessage

func (*MatchString) ProtoMessage()

func (*MatchString) Reset

func (m *MatchString) Reset()

func (*MatchString) String

func (m *MatchString) String() string

func (*MatchString) XXX_DiscardUnknown

func (m *MatchString) XXX_DiscardUnknown()

func (*MatchString) XXX_Marshal

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

func (*MatchString) XXX_Merge

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

func (*MatchString) XXX_Size

func (m *MatchString) XXX_Size() int

func (*MatchString) XXX_Unmarshal

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

type MatchString_MatchStringType

type MatchString_MatchStringType int32
const (
	MatchString_EXACT MatchString_MatchStringType = 0
	MatchString_REGEX MatchString_MatchStringType = 1
)

func (MatchString_MatchStringType) EnumDescriptor

func (MatchString_MatchStringType) EnumDescriptor() ([]byte, []int)

func (MatchString_MatchStringType) String

type MatchString_ValueType

type MatchString_ValueType int32
const (
	MatchString_TEXT      MatchString_ValueType = 0
	MatchString_PARAMETER MatchString_ValueType = 1
	MatchString_VARIABLE  MatchString_ValueType = 2
)

func (MatchString_ValueType) EnumDescriptor

func (MatchString_ValueType) EnumDescriptor() ([]byte, []int)

func (MatchString_ValueType) String

func (x MatchString_ValueType) String() string

type Namespace

type Namespace struct {
	Name                     *wrappers.StringValue   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Comment                  *wrappers.StringValue   `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Owners                   *wrappers.StringValue   `protobuf:"bytes,3,opt,name=owners,proto3" json:"owners,omitempty"`
	Token                    *wrappers.StringValue   `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
	Ctime                    *wrappers.StringValue   `protobuf:"bytes,5,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Mtime                    *wrappers.StringValue   `protobuf:"bytes,6,opt,name=mtime,proto3" json:"mtime,omitempty"`
	TotalServiceCount        *wrappers.UInt32Value   `protobuf:"bytes,7,opt,name=total_service_count,proto3" json:"total_service_count,omitempty"`
	TotalHealthInstanceCount *wrappers.UInt32Value   `protobuf:"bytes,8,opt,name=total_health_instance_count,proto3" json:"total_health_instance_count,omitempty"`
	TotalInstanceCount       *wrappers.UInt32Value   `protobuf:"bytes,9,opt,name=total_instance_count,proto3" json:"total_instance_count,omitempty"`
	UserIds                  []*wrappers.StringValue `protobuf:"bytes,10,rep,name=user_ids,proto3" json:"user_ids,omitempty"`
	GroupIds                 []*wrappers.StringValue `protobuf:"bytes,11,rep,name=group_ids,proto3" json:"group_ids,omitempty"`
	RemoveUserIds            []*wrappers.StringValue `protobuf:"bytes,13,rep,name=remove_user_ids,proto3" json:"remove_user_ids,omitempty"`
	RemoveGroupIds           []*wrappers.StringValue `protobuf:"bytes,14,rep,name=remove_group_ids,proto3" json:"remove_group_ids,omitempty"`
	Id                       *wrappers.StringValue   `protobuf:"bytes,12,opt,name=id,proto3" json:"id,omitempty"`
	Editable                 *wrappers.BoolValue     `protobuf:"bytes,15,opt,name=editable,proto3" json:"editable,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}                `json:"-"`
	XXX_unrecognized         []byte                  `json:"-"`
	XXX_sizecache            int32                   `json:"-"`
}

func (*Namespace) Descriptor

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

func (*Namespace) GetComment

func (m *Namespace) GetComment() *wrappers.StringValue

func (*Namespace) GetCtime

func (m *Namespace) GetCtime() *wrappers.StringValue

func (*Namespace) GetEditable

func (m *Namespace) GetEditable() *wrappers.BoolValue

func (*Namespace) GetGroupIds

func (m *Namespace) GetGroupIds() []*wrappers.StringValue

func (*Namespace) GetId

func (m *Namespace) GetId() *wrappers.StringValue

func (*Namespace) GetMtime

func (m *Namespace) GetMtime() *wrappers.StringValue

func (*Namespace) GetName

func (m *Namespace) GetName() *wrappers.StringValue

func (*Namespace) GetOwners

func (m *Namespace) GetOwners() *wrappers.StringValue

func (*Namespace) GetRemoveGroupIds

func (m *Namespace) GetRemoveGroupIds() []*wrappers.StringValue

func (*Namespace) GetRemoveUserIds

func (m *Namespace) GetRemoveUserIds() []*wrappers.StringValue

func (*Namespace) GetToken

func (m *Namespace) GetToken() *wrappers.StringValue

func (*Namespace) GetTotalHealthInstanceCount

func (m *Namespace) GetTotalHealthInstanceCount() *wrappers.UInt32Value

func (*Namespace) GetTotalInstanceCount

func (m *Namespace) GetTotalInstanceCount() *wrappers.UInt32Value

func (*Namespace) GetTotalServiceCount

func (m *Namespace) GetTotalServiceCount() *wrappers.UInt32Value

func (*Namespace) GetUserIds

func (m *Namespace) GetUserIds() []*wrappers.StringValue

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 (dst *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 OptionSwitch

type OptionSwitch struct {
	Options              map[string]string `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*OptionSwitch) Descriptor

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

func (*OptionSwitch) GetOptions

func (m *OptionSwitch) GetOptions() map[string]string

func (*OptionSwitch) ProtoMessage

func (*OptionSwitch) ProtoMessage()

func (*OptionSwitch) Reset

func (m *OptionSwitch) Reset()

func (*OptionSwitch) String

func (m *OptionSwitch) String() string

func (*OptionSwitch) XXX_DiscardUnknown

func (m *OptionSwitch) XXX_DiscardUnknown()

func (*OptionSwitch) XXX_Marshal

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

func (*OptionSwitch) XXX_Merge

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

func (*OptionSwitch) XXX_Size

func (m *OptionSwitch) XXX_Size() int

func (*OptionSwitch) XXX_Unmarshal

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

type PolarisGRPCClient

type PolarisGRPCClient interface {
	// 被调方注册服务实例
	RegisterInstance(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Response, error)
	// 被调方反注册服务实例
	DeregisterInstance(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Response, error)
	// 被调方上报心跳
	Heartbeat(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Response, error)
}

PolarisGRPCClient is the client API for PolarisGRPC service.

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

func NewPolarisGRPCClient

func NewPolarisGRPCClient(cc *grpc.ClientConn) PolarisGRPCClient

type PolarisGRPCServer

type PolarisGRPCServer interface {
	// 被调方注册服务实例
	RegisterInstance(context.Context, *Instance) (*Response, error)
	// 被调方反注册服务实例
	DeregisterInstance(context.Context, *Instance) (*Response, error)
	// 被调方上报心跳
	Heartbeat(context.Context, *Instance) (*Response, error)
}

PolarisGRPCServer is the server API for PolarisGRPC service.

type Response

type Response struct {
	Code                 *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Info                 *wrappers.StringValue `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	Namespace            *Namespace            `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Service              *Service              `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	Instance             *Instance             `protobuf:"bytes,6,opt,name=instance,proto3" json:"instance,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCode

func (m *Response) GetCode() *wrappers.UInt32Value

func (*Response) GetInfo

func (m *Response) GetInfo() *wrappers.StringValue

func (*Response) GetInstance

func (m *Response) GetInstance() *Instance

func (*Response) GetNamespace

func (m *Response) GetNamespace() *Namespace

func (*Response) GetService

func (m *Response) GetService() *Service

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 (dst *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

type Service

type Service struct {
	Name                 *wrappers.StringValue   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace            *wrappers.StringValue   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Metadata             map[string]string       `` /* 157-byte string literal not displayed */
	Ports                *wrappers.StringValue   `protobuf:"bytes,4,opt,name=ports,proto3" json:"ports,omitempty"`
	Business             *wrappers.StringValue   `protobuf:"bytes,5,opt,name=business,proto3" json:"business,omitempty"`
	Department           *wrappers.StringValue   `protobuf:"bytes,6,opt,name=department,proto3" json:"department,omitempty"`
	CmdbMod1             *wrappers.StringValue   `protobuf:"bytes,7,opt,name=cmdb_mod1,proto3" json:"cmdb_mod1,omitempty"`
	CmdbMod2             *wrappers.StringValue   `protobuf:"bytes,8,opt,name=cmdb_mod2,proto3" json:"cmdb_mod2,omitempty"`
	CmdbMod3             *wrappers.StringValue   `protobuf:"bytes,9,opt,name=cmdb_mod3,proto3" json:"cmdb_mod3,omitempty"`
	Comment              *wrappers.StringValue   `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`
	Owners               *wrappers.StringValue   `protobuf:"bytes,11,opt,name=owners,proto3" json:"owners,omitempty"`
	Token                *wrappers.StringValue   `protobuf:"bytes,12,opt,name=token,proto3" json:"token,omitempty"`
	Ctime                *wrappers.StringValue   `protobuf:"bytes,13,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Mtime                *wrappers.StringValue   `protobuf:"bytes,14,opt,name=mtime,proto3" json:"mtime,omitempty"`
	Revision             *wrappers.StringValue   `protobuf:"bytes,15,opt,name=revision,proto3" json:"revision,omitempty"`
	PlatformId           *wrappers.StringValue   `protobuf:"bytes,16,opt,name=platform_id,proto3" json:"platform_id,omitempty"`
	TotalInstanceCount   *wrappers.UInt32Value   `protobuf:"bytes,17,opt,name=total_instance_count,proto3" json:"total_instance_count,omitempty"`
	HealthyInstanceCount *wrappers.UInt32Value   `protobuf:"bytes,18,opt,name=healthy_instance_count,proto3" json:"healthy_instance_count,omitempty"`
	UserIds              []*wrappers.StringValue `protobuf:"bytes,19,rep,name=user_ids,proto3" json:"user_ids,omitempty"`
	GroupIds             []*wrappers.StringValue `protobuf:"bytes,20,rep,name=group_ids,proto3" json:"group_ids,omitempty"`
	RemoveUserIds        []*wrappers.StringValue `protobuf:"bytes,22,rep,name=remove_user_ids,proto3" json:"remove_user_ids,omitempty"`
	RemoveGroupIds       []*wrappers.StringValue `protobuf:"bytes,23,rep,name=remove_group_ids,proto3" json:"remove_group_ids,omitempty"`
	Id                   *wrappers.StringValue   `protobuf:"bytes,21,opt,name=id,proto3" json:"id,omitempty"`
	Editable             *wrappers.BoolValue     `protobuf:"bytes,24,opt,name=editable,proto3" json:"editable,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*Service) Descriptor

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

func (*Service) GetBusiness

func (m *Service) GetBusiness() *wrappers.StringValue

func (*Service) GetCmdbMod1

func (m *Service) GetCmdbMod1() *wrappers.StringValue

func (*Service) GetCmdbMod2

func (m *Service) GetCmdbMod2() *wrappers.StringValue

func (*Service) GetCmdbMod3

func (m *Service) GetCmdbMod3() *wrappers.StringValue

func (*Service) GetComment

func (m *Service) GetComment() *wrappers.StringValue

func (*Service) GetCtime

func (m *Service) GetCtime() *wrappers.StringValue

func (*Service) GetDepartment

func (m *Service) GetDepartment() *wrappers.StringValue

func (*Service) GetEditable

func (m *Service) GetEditable() *wrappers.BoolValue

func (*Service) GetGroupIds

func (m *Service) GetGroupIds() []*wrappers.StringValue

func (*Service) GetHealthyInstanceCount

func (m *Service) GetHealthyInstanceCount() *wrappers.UInt32Value

func (*Service) GetId

func (m *Service) GetId() *wrappers.StringValue

func (*Service) GetMetadata

func (m *Service) GetMetadata() map[string]string

func (*Service) GetMtime

func (m *Service) GetMtime() *wrappers.StringValue

func (*Service) GetName

func (m *Service) GetName() *wrappers.StringValue

func (*Service) GetNamespace

func (m *Service) GetNamespace() *wrappers.StringValue

func (*Service) GetOwners

func (m *Service) GetOwners() *wrappers.StringValue

func (*Service) GetPlatformId

func (m *Service) GetPlatformId() *wrappers.StringValue

func (*Service) GetPorts

func (m *Service) GetPorts() *wrappers.StringValue

func (*Service) GetRemoveGroupIds

func (m *Service) GetRemoveGroupIds() []*wrappers.StringValue

func (*Service) GetRemoveUserIds

func (m *Service) GetRemoveUserIds() []*wrappers.StringValue

func (*Service) GetRevision

func (m *Service) GetRevision() *wrappers.StringValue

func (*Service) GetToken

func (m *Service) GetToken() *wrappers.StringValue

func (*Service) GetTotalInstanceCount

func (m *Service) GetTotalInstanceCount() *wrappers.UInt32Value

func (*Service) GetUserIds

func (m *Service) GetUserIds() []*wrappers.StringValue

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

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

func (*Service) XXX_Merge

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

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

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

type ServiceAlias

type ServiceAlias struct {
	Service              *wrappers.StringValue `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Namespace            *wrappers.StringValue `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Alias                *wrappers.StringValue `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	AliasNamespace       *wrappers.StringValue `protobuf:"bytes,4,opt,name=alias_namespace,proto3" json:"alias_namespace,omitempty"`
	Type                 AliasType             `protobuf:"varint,5,opt,name=type,proto3,enum=v1.AliasType" json:"type,omitempty"`
	Owners               *wrappers.StringValue `protobuf:"bytes,6,opt,name=owners,proto3" json:"owners,omitempty"`
	Comment              *wrappers.StringValue `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
	ServiceToken         *wrappers.StringValue `protobuf:"bytes,8,opt,name=service_token,proto3" json:"service_token,omitempty"`
	Ctime                *wrappers.StringValue `protobuf:"bytes,9,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Mtime                *wrappers.StringValue `protobuf:"bytes,10,opt,name=mtime,proto3" json:"mtime,omitempty"`
	Id                   *wrappers.StringValue `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Editable             *wrappers.BoolValue   `protobuf:"bytes,12,opt,name=editable,proto3" json:"editable,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ServiceAlias) Descriptor

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

func (*ServiceAlias) GetAlias

func (m *ServiceAlias) GetAlias() *wrappers.StringValue

func (*ServiceAlias) GetAliasNamespace

func (m *ServiceAlias) GetAliasNamespace() *wrappers.StringValue

func (*ServiceAlias) GetComment

func (m *ServiceAlias) GetComment() *wrappers.StringValue

func (*ServiceAlias) GetCtime

func (m *ServiceAlias) GetCtime() *wrappers.StringValue

func (*ServiceAlias) GetEditable

func (m *ServiceAlias) GetEditable() *wrappers.BoolValue

func (*ServiceAlias) GetId

func (m *ServiceAlias) GetId() *wrappers.StringValue

func (*ServiceAlias) GetMtime

func (m *ServiceAlias) GetMtime() *wrappers.StringValue

func (*ServiceAlias) GetNamespace

func (m *ServiceAlias) GetNamespace() *wrappers.StringValue

func (*ServiceAlias) GetOwners

func (m *ServiceAlias) GetOwners() *wrappers.StringValue

func (*ServiceAlias) GetService

func (m *ServiceAlias) GetService() *wrappers.StringValue

func (*ServiceAlias) GetServiceToken

func (m *ServiceAlias) GetServiceToken() *wrappers.StringValue

func (*ServiceAlias) GetType

func (m *ServiceAlias) GetType() AliasType

func (*ServiceAlias) ProtoMessage

func (*ServiceAlias) ProtoMessage()

func (*ServiceAlias) Reset

func (m *ServiceAlias) Reset()

func (*ServiceAlias) String

func (m *ServiceAlias) String() string

func (*ServiceAlias) XXX_DiscardUnknown

func (m *ServiceAlias) XXX_DiscardUnknown()

func (*ServiceAlias) XXX_Marshal

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

func (*ServiceAlias) XXX_Merge

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

func (*ServiceAlias) XXX_Size

func (m *ServiceAlias) XXX_Size() int

func (*ServiceAlias) XXX_Unmarshal

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

type SimpleResponse

type SimpleResponse struct {
	Code                 *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Info                 *wrappers.StringValue `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*SimpleResponse) Descriptor

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

func (*SimpleResponse) GetCode

func (m *SimpleResponse) GetCode() *wrappers.UInt32Value

func (*SimpleResponse) GetInfo

func (m *SimpleResponse) GetInfo() *wrappers.StringValue

func (*SimpleResponse) ProtoMessage

func (*SimpleResponse) ProtoMessage()

func (*SimpleResponse) Reset

func (m *SimpleResponse) Reset()

func (*SimpleResponse) String

func (m *SimpleResponse) String() string

func (*SimpleResponse) XXX_DiscardUnknown

func (m *SimpleResponse) XXX_DiscardUnknown()

func (*SimpleResponse) XXX_Marshal

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

func (*SimpleResponse) XXX_Merge

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

func (*SimpleResponse) XXX_Size

func (m *SimpleResponse) XXX_Size() int

func (*SimpleResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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