ts-spiffe
Version:
typescript client for spiffe
172 lines (171 loc) • 13.7 kB
TypeScript
// @generated by protobuf-ts 2.9.1 with parameter output_legacy_commonjs,client_grpc1,server_none,output_javascript_es2019
// @generated from protobuf file "spire/api/server/entry.proto" (package "spire.api.server.entry.v1", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { GetAuthorizedEntriesResponse } from "./entry";
import type { GetAuthorizedEntriesRequest } from "./entry";
import type { BatchDeleteEntryResponse } from "./entry";
import type { BatchDeleteEntryRequest } from "./entry";
import type { BatchUpdateEntryResponse } from "./entry";
import type { BatchUpdateEntryRequest } from "./entry";
import type { BatchCreateEntryResponse } from "./entry";
import type { BatchCreateEntryRequest } from "./entry";
import type { Entry } from "../types/entry";
import type { GetEntryRequest } from "./entry";
import type { ListEntriesResponse } from "./entry";
import type { ListEntriesRequest } from "./entry";
import type { CountEntriesResponse } from "./entry";
import type { CountEntriesRequest } from "./entry";
import * as grpc from "@grpc/grpc-js";
/**
* Manages registration entries stored by the SPIRE Server.
*
* @generated from protobuf service spire.api.server.entry.v1.Entry
*/
export interface IEntryClient {
/**
* Count entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: CountEntries(spire.api.server.entry.v1.CountEntriesRequest) returns (spire.api.server.entry.v1.CountEntriesResponse);
*/
countEntries(input: CountEntriesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CountEntriesResponse) => void): grpc.ClientUnaryCall;
countEntries(input: CountEntriesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CountEntriesResponse) => void): grpc.ClientUnaryCall;
countEntries(input: CountEntriesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CountEntriesResponse) => void): grpc.ClientUnaryCall;
countEntries(input: CountEntriesRequest, callback: (err: grpc.ServiceError | null, value?: CountEntriesResponse) => void): grpc.ClientUnaryCall;
/**
* Lists entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: ListEntries(spire.api.server.entry.v1.ListEntriesRequest) returns (spire.api.server.entry.v1.ListEntriesResponse);
*/
listEntries(input: ListEntriesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListEntriesResponse) => void): grpc.ClientUnaryCall;
listEntries(input: ListEntriesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListEntriesResponse) => void): grpc.ClientUnaryCall;
listEntries(input: ListEntriesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListEntriesResponse) => void): grpc.ClientUnaryCall;
listEntries(input: ListEntriesRequest, callback: (err: grpc.ServiceError | null, value?: ListEntriesResponse) => void): grpc.ClientUnaryCall;
/**
* Gets an entry. If the entry does not exist, NOT_FOUND is returned.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: GetEntry(spire.api.server.entry.v1.GetEntryRequest) returns (spire.api.types.Entry);
*/
getEntry(input: GetEntryRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Entry) => void): grpc.ClientUnaryCall;
getEntry(input: GetEntryRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Entry) => void): grpc.ClientUnaryCall;
getEntry(input: GetEntryRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Entry) => void): grpc.ClientUnaryCall;
getEntry(input: GetEntryRequest, callback: (err: grpc.ServiceError | null, value?: Entry) => void): grpc.ClientUnaryCall;
/**
* Batch creates one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchCreateEntry(spire.api.server.entry.v1.BatchCreateEntryRequest) returns (spire.api.server.entry.v1.BatchCreateEntryResponse);
*/
batchCreateEntry(input: BatchCreateEntryRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void): grpc.ClientUnaryCall;
batchCreateEntry(input: BatchCreateEntryRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void): grpc.ClientUnaryCall;
batchCreateEntry(input: BatchCreateEntryRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void): grpc.ClientUnaryCall;
batchCreateEntry(input: BatchCreateEntryRequest, callback: (err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void): grpc.ClientUnaryCall;
/**
* Batch updates one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchUpdateEntry(spire.api.server.entry.v1.BatchUpdateEntryRequest) returns (spire.api.server.entry.v1.BatchUpdateEntryResponse);
*/
batchUpdateEntry(input: BatchUpdateEntryRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void): grpc.ClientUnaryCall;
batchUpdateEntry(input: BatchUpdateEntryRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void): grpc.ClientUnaryCall;
batchUpdateEntry(input: BatchUpdateEntryRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void): grpc.ClientUnaryCall;
batchUpdateEntry(input: BatchUpdateEntryRequest, callback: (err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void): grpc.ClientUnaryCall;
/**
* Batch deletes one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchDeleteEntry(spire.api.server.entry.v1.BatchDeleteEntryRequest) returns (spire.api.server.entry.v1.BatchDeleteEntryResponse);
*/
batchDeleteEntry(input: BatchDeleteEntryRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void): grpc.ClientUnaryCall;
batchDeleteEntry(input: BatchDeleteEntryRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void): grpc.ClientUnaryCall;
batchDeleteEntry(input: BatchDeleteEntryRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void): grpc.ClientUnaryCall;
batchDeleteEntry(input: BatchDeleteEntryRequest, callback: (err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void): grpc.ClientUnaryCall;
/**
* Gets the entries the caller is authorized for.
*
* The caller must present an active agent X509-SVID. See the Agent
* AttestAgent/RenewAgent RPCs.
*
* @generated from protobuf rpc: GetAuthorizedEntries(spire.api.server.entry.v1.GetAuthorizedEntriesRequest) returns (spire.api.server.entry.v1.GetAuthorizedEntriesResponse);
*/
getAuthorizedEntries(input: GetAuthorizedEntriesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void): grpc.ClientUnaryCall;
getAuthorizedEntries(input: GetAuthorizedEntriesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void): grpc.ClientUnaryCall;
getAuthorizedEntries(input: GetAuthorizedEntriesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void): grpc.ClientUnaryCall;
getAuthorizedEntries(input: GetAuthorizedEntriesRequest, callback: (err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void): grpc.ClientUnaryCall;
}
/**
* Manages registration entries stored by the SPIRE Server.
*
* @generated from protobuf service spire.api.server.entry.v1.Entry
*/
export declare class EntryClient extends grpc.Client implements IEntryClient {
private readonly _binaryOptions;
constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>);
/**
* Count entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: CountEntries(spire.api.server.entry.v1.CountEntriesRequest) returns (spire.api.server.entry.v1.CountEntriesResponse);
*/
countEntries(input: CountEntriesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CountEntriesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CountEntriesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: CountEntriesResponse) => void)): grpc.ClientUnaryCall;
/**
* Lists entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: ListEntries(spire.api.server.entry.v1.ListEntriesRequest) returns (spire.api.server.entry.v1.ListEntriesResponse);
*/
listEntries(input: ListEntriesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListEntriesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListEntriesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListEntriesResponse) => void)): grpc.ClientUnaryCall;
/**
* Gets an entry. If the entry does not exist, NOT_FOUND is returned.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: GetEntry(spire.api.server.entry.v1.GetEntryRequest) returns (spire.api.types.Entry);
*/
getEntry(input: GetEntryRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Entry) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Entry) => void), callback?: ((err: grpc.ServiceError | null, value?: Entry) => void)): grpc.ClientUnaryCall;
/**
* Batch creates one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchCreateEntry(spire.api.server.entry.v1.BatchCreateEntryRequest) returns (spire.api.server.entry.v1.BatchCreateEntryResponse);
*/
batchCreateEntry(input: BatchCreateEntryRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BatchCreateEntryResponse) => void)): grpc.ClientUnaryCall;
/**
* Batch updates one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchUpdateEntry(spire.api.server.entry.v1.BatchUpdateEntryRequest) returns (spire.api.server.entry.v1.BatchUpdateEntryResponse);
*/
batchUpdateEntry(input: BatchUpdateEntryRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BatchUpdateEntryResponse) => void)): grpc.ClientUnaryCall;
/**
* Batch deletes one or more entries.
*
* The caller must be local or present an admin X509-SVID.
*
* @generated from protobuf rpc: BatchDeleteEntry(spire.api.server.entry.v1.BatchDeleteEntryRequest) returns (spire.api.server.entry.v1.BatchDeleteEntryResponse);
*/
batchDeleteEntry(input: BatchDeleteEntryRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BatchDeleteEntryResponse) => void)): grpc.ClientUnaryCall;
/**
* Gets the entries the caller is authorized for.
*
* The caller must present an active agent X509-SVID. See the Agent
* AttestAgent/RenewAgent RPCs.
*
* @generated from protobuf rpc: GetAuthorizedEntries(spire.api.server.entry.v1.GetAuthorizedEntriesRequest) returns (spire.api.server.entry.v1.GetAuthorizedEntriesResponse);
*/
getAuthorizedEntries(input: GetAuthorizedEntriesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetAuthorizedEntriesResponse) => void)): grpc.ClientUnaryCall;
}