Skip to main content

Interface ITokenEndpoint

Namespace: Consul
Assembly: Consul.dll

The interface for the ACL Token API Endpoints

public interface ITokenEndpoint

Methods

Bootstrap(CancellationToken)

Task<WriteResult<TokenEntry>> Bootstrap(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Bootstrap(WriteOptions, CancellationToken)

Task<WriteResult<TokenEntry>> Bootstrap(WriteOptions q, CancellationToken ct = default)

Parameters

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Clone(string, CancellationToken)

Task<WriteResult<TokenEntry>> Clone(string id, CancellationToken ct = default)

Parameters

id string

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Clone(string, WriteOptions, CancellationToken)

Task<WriteResult<TokenEntry>> Clone(string id, WriteOptions q, CancellationToken ct = default)

Parameters

id string

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Create(TokenEntry, CancellationToken)

Task<WriteResult<TokenEntry>> Create(TokenEntry token, CancellationToken ct = default)

Parameters

token TokenEntry

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Create(TokenEntry, WriteOptions, CancellationToken)

Task<WriteResult<TokenEntry>> Create(TokenEntry token, WriteOptions q, CancellationToken ct = default)

Parameters

token TokenEntry

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Delete(string, CancellationToken)

Task<WriteResult<bool>> Delete(string id, CancellationToken ct = default)

Parameters

id string

ct CancellationToken

Returns

Task <WriteResult <bool >>

Delete(string, WriteOptions, CancellationToken)

Task<WriteResult<bool>> Delete(string id, WriteOptions q, CancellationToken ct = default)

Parameters

id string

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult <bool >>

List(CancellationToken)

Task<QueryResult<TokenEntry[]>> List(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task <QueryResult <TokenEntry []>>

List(QueryOptions, CancellationToken)

Task<QueryResult<TokenEntry[]>> List(QueryOptions q, CancellationToken ct = default)

Parameters

q QueryOptions

ct CancellationToken

Returns

Task <QueryResult <TokenEntry []>>

Read(string, CancellationToken)

Task<QueryResult<TokenEntry>> Read(string id, CancellationToken ct = default)

Parameters

id string

ct CancellationToken

Returns

Task <QueryResult <TokenEntry >>

Read(string, QueryOptions, CancellationToken)

Task<QueryResult<TokenEntry>> Read(string id, QueryOptions q, CancellationToken ct = default)

Parameters

id string

q QueryOptions

ct CancellationToken

Returns

Task <QueryResult <TokenEntry >>

Update(TokenEntry, CancellationToken)

Task<WriteResult<TokenEntry>> Update(TokenEntry token, CancellationToken ct = default)

Parameters

token TokenEntry

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

Update(TokenEntry, WriteOptions, CancellationToken)

Task<WriteResult<TokenEntry>> Update(TokenEntry token, WriteOptions q, CancellationToken ct = default)

Parameters

token TokenEntry

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult <TokenEntry >>

  • Methods
    • Bootstrap(CancellationToken)
    • Bootstrap(WriteOptions, CancellationToken)
    • Clone(string, CancellationToken)
    • Clone(string, WriteOptions, CancellationToken)
    • Create(TokenEntry, CancellationToken)
    • Create(TokenEntry, WriteOptions, CancellationToken)
    • Delete(string, CancellationToken)
    • Delete(string, WriteOptions, CancellationToken)
    • List(CancellationToken)
    • List(QueryOptions, CancellationToken)
    • Read(string, CancellationToken)
    • Read(string, QueryOptions, CancellationToken)
    • Update(TokenEntry, CancellationToken)
    • Update(TokenEntry, WriteOptions, CancellationToken)