proto

package
Version: v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_google_cloudprober_prober_proto_service_proto protoreflect.FileDescriptor

Functions

func RegisterCloudproberServer

func RegisterCloudproberServer(s *grpc.Server, srv CloudproberServer)

Types

type AddProbeRequest

type AddProbeRequest struct {
	ProbeConfig *proto.ProbeDef `protobuf:"bytes,1,opt,name=probe_config,json=probeConfig" json:"probe_config,omitempty"`
	// contains filtered or unexported fields
}

func (*AddProbeRequest) Descriptor deprecated

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

Deprecated: Use AddProbeRequest.ProtoReflect.Descriptor instead.

func (*AddProbeRequest) GetProbeConfig

func (x *AddProbeRequest) GetProbeConfig() *proto.ProbeDef

func (*AddProbeRequest) ProtoMessage

func (*AddProbeRequest) ProtoMessage()

func (*AddProbeRequest) ProtoReflect added in v0.10.8

func (x *AddProbeRequest) ProtoReflect() protoreflect.Message

func (*AddProbeRequest) Reset

func (x *AddProbeRequest) Reset()

func (*AddProbeRequest) String

func (x *AddProbeRequest) String() string

type AddProbeResponse

type AddProbeResponse struct {
	// contains filtered or unexported fields
}

func (*AddProbeResponse) Descriptor deprecated

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

Deprecated: Use AddProbeResponse.ProtoReflect.Descriptor instead.

func (*AddProbeResponse) ProtoMessage

func (*AddProbeResponse) ProtoMessage()

func (*AddProbeResponse) ProtoReflect added in v0.10.8

func (x *AddProbeResponse) ProtoReflect() protoreflect.Message

func (*AddProbeResponse) Reset

func (x *AddProbeResponse) Reset()

func (*AddProbeResponse) String

func (x *AddProbeResponse) String() string

type CloudproberClient

type CloudproberClient interface {
	// AddProbe adds a probe to cloudprober. Error is returned if probe is already
	// defined or there is an error during initialization of the probe.
	AddProbe(ctx context.Context, in *AddProbeRequest, opts ...grpc.CallOption) (*AddProbeResponse, error)
	// RemoveProbe stops the probe and removes it from the in-memory database.
	RemoveProbe(ctx context.Context, in *RemoveProbeRequest, opts ...grpc.CallOption) (*RemoveProbeResponse, error)
	// ListProbes lists active probes.
	ListProbes(ctx context.Context, in *ListProbesRequest, opts ...grpc.CallOption) (*ListProbesResponse, error)
}

CloudproberClient is the client API for Cloudprober service.

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

type CloudproberServer

type CloudproberServer interface {
	// AddProbe adds a probe to cloudprober. Error is returned if probe is already
	// defined or there is an error during initialization of the probe.
	AddProbe(context.Context, *AddProbeRequest) (*AddProbeResponse, error)
	// RemoveProbe stops the probe and removes it from the in-memory database.
	RemoveProbe(context.Context, *RemoveProbeRequest) (*RemoveProbeResponse, error)
	// ListProbes lists active probes.
	ListProbes(context.Context, *ListProbesRequest) (*ListProbesResponse, error)
}

CloudproberServer is the server API for Cloudprober service.

type ListProbesRequest

type ListProbesRequest struct {
	// contains filtered or unexported fields
}

func (*ListProbesRequest) Descriptor deprecated

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

Deprecated: Use ListProbesRequest.ProtoReflect.Descriptor instead.

func (*ListProbesRequest) ProtoMessage

func (*ListProbesRequest) ProtoMessage()

func (*ListProbesRequest) ProtoReflect added in v0.10.8

func (x *ListProbesRequest) ProtoReflect() protoreflect.Message

func (*ListProbesRequest) Reset

func (x *ListProbesRequest) Reset()

func (*ListProbesRequest) String

func (x *ListProbesRequest) String() string

type ListProbesResponse

type ListProbesResponse struct {
	Probe []*Probe `protobuf:"bytes,1,rep,name=probe" json:"probe,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProbesResponse) Descriptor deprecated

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

Deprecated: Use ListProbesResponse.ProtoReflect.Descriptor instead.

func (*ListProbesResponse) GetProbe

func (x *ListProbesResponse) GetProbe() []*Probe

func (*ListProbesResponse) ProtoMessage

func (*ListProbesResponse) ProtoMessage()

func (*ListProbesResponse) ProtoReflect added in v0.10.8

func (x *ListProbesResponse) ProtoReflect() protoreflect.Message

func (*ListProbesResponse) Reset

func (x *ListProbesResponse) Reset()

func (*ListProbesResponse) String

func (x *ListProbesResponse) String() string

type Probe

type Probe struct {
	Name   *string         `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Config *proto.ProbeDef `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Probe) Descriptor deprecated

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

Deprecated: Use Probe.ProtoReflect.Descriptor instead.

func (*Probe) GetConfig

func (x *Probe) GetConfig() *proto.ProbeDef

func (*Probe) GetName

func (x *Probe) GetName() string

func (*Probe) ProtoMessage

func (*Probe) ProtoMessage()

func (*Probe) ProtoReflect added in v0.10.8

func (x *Probe) ProtoReflect() protoreflect.Message

func (*Probe) Reset

func (x *Probe) Reset()

func (*Probe) String

func (x *Probe) String() string

type RemoveProbeRequest

type RemoveProbeRequest struct {
	ProbeName *string `protobuf:"bytes,1,opt,name=probe_name,json=probeName" json:"probe_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveProbeRequest) Descriptor deprecated

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

Deprecated: Use RemoveProbeRequest.ProtoReflect.Descriptor instead.

func (*RemoveProbeRequest) GetProbeName

func (x *RemoveProbeRequest) GetProbeName() string

func (*RemoveProbeRequest) ProtoMessage

func (*RemoveProbeRequest) ProtoMessage()

func (*RemoveProbeRequest) ProtoReflect added in v0.10.8

func (x *RemoveProbeRequest) ProtoReflect() protoreflect.Message

func (*RemoveProbeRequest) Reset

func (x *RemoveProbeRequest) Reset()

func (*RemoveProbeRequest) String

func (x *RemoveProbeRequest) String() string

type RemoveProbeResponse

type RemoveProbeResponse struct {
	// contains filtered or unexported fields
}

func (*RemoveProbeResponse) Descriptor deprecated

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

Deprecated: Use RemoveProbeResponse.ProtoReflect.Descriptor instead.

func (*RemoveProbeResponse) ProtoMessage

func (*RemoveProbeResponse) ProtoMessage()

func (*RemoveProbeResponse) ProtoReflect added in v0.10.8

func (x *RemoveProbeResponse) ProtoReflect() protoreflect.Message

func (*RemoveProbeResponse) Reset

func (x *RemoveProbeResponse) Reset()

func (*RemoveProbeResponse) String

func (x *RemoveProbeResponse) String() string

type UnimplementedCloudproberServer added in v0.10.4

type UnimplementedCloudproberServer struct {
}

UnimplementedCloudproberServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudproberServer) AddProbe added in v0.10.4

func (*UnimplementedCloudproberServer) ListProbes added in v0.10.4

func (*UnimplementedCloudproberServer) RemoveProbe added in v0.10.4

Source Files

Jump to

Keyboard shortcuts

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