debugv1

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_api_agent_debug_v1_debug_proto protoreflect.FileDescriptor

Functions

func RegisterDebugServer

func RegisterDebugServer(s grpc.ServiceRegistrar, srv DebugServer)

Types

type DebugClient

type DebugClient interface {
	// Get information about SPIRE agent
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
}

DebugClient is the client API for Debug service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDebugClient

func NewDebugClient(cc grpc.ClientConnInterface) DebugClient

type DebugServer

type DebugServer interface {
	// Get information about SPIRE agent
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// contains filtered or unexported methods
}

DebugServer is the server API for Debug service. All implementations must embed UnimplementedDebugServer for forward compatibility

type GetInfoRequest

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

func (*GetInfoRequest) Descriptor deprecated

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

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

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

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {

	// Agent SVID chain
	SvidChain []*GetInfoResponse_Cert `protobuf:"bytes,1,rep,name=svid_chain,json=svidChain,proto3" json:"svid_chain,omitempty"`
	// Agent uptime in seconds
	Uptime int32 `protobuf:"varint,2,opt,name=uptime,proto3" json:"uptime,omitempty"`
	// Number of SVIDs cached in memory
	SvidsCount int32 `protobuf:"varint,3,opt,name=svids_count,json=svidsCount,proto3" json:"svids_count,omitempty"`
	// last successful sync with server (in seconds since unix epoch)
	LastSyncSuccess int64 `protobuf:"varint,4,opt,name=last_sync_success,json=lastSyncSuccess,proto3" json:"last_sync_success,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetLastSyncSuccess

func (x *GetInfoResponse) GetLastSyncSuccess() int64

func (*GetInfoResponse) GetSvidChain

func (x *GetInfoResponse) GetSvidChain() []*GetInfoResponse_Cert

func (*GetInfoResponse) GetSvidsCount

func (x *GetInfoResponse) GetSvidsCount() int32

func (*GetInfoResponse) GetUptime

func (x *GetInfoResponse) GetUptime() int32

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

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

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

type GetInfoResponse_Cert

type GetInfoResponse_Cert struct {

	// Cerfificate SPIFFE ID
	Id *types.SPIFFEID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Expiration time
	ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Subject
	Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse_Cert) Descriptor deprecated

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

Deprecated: Use GetInfoResponse_Cert.ProtoReflect.Descriptor instead.

func (*GetInfoResponse_Cert) GetExpiresAt

func (x *GetInfoResponse_Cert) GetExpiresAt() int64

func (*GetInfoResponse_Cert) GetId

func (x *GetInfoResponse_Cert) GetId() *types.SPIFFEID

func (*GetInfoResponse_Cert) GetSubject

func (x *GetInfoResponse_Cert) GetSubject() string

func (*GetInfoResponse_Cert) ProtoMessage

func (*GetInfoResponse_Cert) ProtoMessage()

func (*GetInfoResponse_Cert) ProtoReflect

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

func (*GetInfoResponse_Cert) Reset

func (x *GetInfoResponse_Cert) Reset()

func (*GetInfoResponse_Cert) String

func (x *GetInfoResponse_Cert) String() string

type UnimplementedDebugServer

type UnimplementedDebugServer struct {
}

UnimplementedDebugServer must be embedded to have forward compatible implementations.

func (UnimplementedDebugServer) GetInfo

type UnsafeDebugServer

type UnsafeDebugServer interface {
	// contains filtered or unexported methods
}

UnsafeDebugServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DebugServer will result in compilation errors.

Jump to

Keyboard shortcuts

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