跳到主要内容
版本:Next

COSServiceFactory

Hierarchy

  • ServiceFactory<COS>
    • COSServiceFactory

Index

Constructors

constructor

Properties

cosConfig

cosConfig: any

logger

logger: any

Methods

createClient

  • createClient(config: COSOptions): Promise<COS>

createInstance

  • createInstance(config: any, clientName?: any): Promise<COS>

get

  • get<U>(id?: string): U
  • Type parameters

    • U = COS

getClientKeys

  • getClientKeys(): string[]

getClientPriority

  • getClientPriority(name: string): string

getClients

  • getClients(): Map<string, COS>

getDefaultClientName

  • getDefaultClientName(): string

getName

  • getName(): string

has

  • has(id: string): boolean

init

  • init(): Promise<void>

isHighPriority

  • isHighPriority(name: string): boolean

isLowPriority

  • isLowPriority(name: string): boolean

isMediumPriority

  • isMediumPriority(name: string): boolean

stop

  • stop(): Promise<void>