vault: github.com/hashicorp/vault/command/agent/sink Index | Files | Directories

package sink

import "github.com/hashicorp/vault/command/agent/sink"

Index

Package Files

sink.go

type Sink Uses

type Sink interface {
    WriteToken(string) error
}

type SinkConfig Uses

type SinkConfig struct {
    Sink
    Logger  hclog.Logger
    Config  map[string]interface{}
    Client  *api.Client
    WrapTTL time.Duration
    DHType  string
    DHPath  string
    AAD     string
    // contains filtered or unexported fields
}

type SinkReader Uses

type SinkReader interface {
    Token() string
}

type SinkServer Uses

type SinkServer struct {
    DoneCh chan struct{}
    // contains filtered or unexported fields
}

SinkServer is responsible for pushing tokens to sinks

func NewSinkServer Uses

func NewSinkServer(conf *SinkServerConfig) *SinkServer

func (*SinkServer) Run Uses

func (ss *SinkServer) Run(ctx context.Context, incoming chan string, sinks []*SinkConfig)

Run executes the server's run loop, which is responsible for reading in new tokens and pushing them out to the various sinks.

type SinkServerConfig Uses

type SinkServerConfig struct {
    Logger        hclog.Logger
    Client        *api.Client
    Context       context.Context
    ExitAfterAuth bool
}

Directories

PathSynopsis
file
inmem
mock

Package sink imports 12 packages (graph) and is imported by 12 packages. Updated 2019-10-23. Refresh now. Tools for package owners.