This method is not intended to be used directly. This is a helper
method used by the Fluvio
class to pass in a native object,
along with top-level Fluvio client options, if any.
The native FluvioAdmin module, must be the value returned from await new Fluvio().admin()
;
Optional
options: Partial<Options>Optional values inherited from top-level options;
Optional
spec: CustomSpuSpecCreate a new custom Streaming Processing Unit (SPU)
Name of the custom spu;
Optional
spec: CustomSpuSpecPass in a custom spec or use a default based on top-level options;
Optional
spec: SpuGroupSpecCreate a new managed Streaming Processing Unit (SPU)
name of the managed spu group
Optional
spec: SpuGroupSpecOptional specification for the SpuGroup. If no spec is provided, default settings will be used.
Optional
spec: PartitionMaps | TopicReplicaParamCreate a new topic with an optional topic specification;
name of the topic
Optional
spec: PartitionMaps | TopicReplicaParamTopic specification
Find a partition by topic name;
topic name to search partition by
Fluvio Admin Client
Overview
An interface for managing a Fluvio cluster
Most applications will not require administrator functionality. The FluvioAdmin interface is used to create, edit, and manage Topics and other operational items. Think of the difference between regular clients of a Database and its administrators. Regular clients may be applications which are reading and writing data to and from tables that exist in the database. Database administrators would be the ones actually creating, editing, or deleting tables. The same thing goes for Fluvio administrators.
If you are writing an application whose purpose is to manage a Fluvio cluster for you, you can gain access to the FluvioAdmin client via the regular Fluvio client
Example Construction
Errors
Creating an admin client will fail if you do not have admin authorization in the connected custer.