juju: github.com/juju/juju/apiserver/facades/controller/logfwd Index | Files

package logfwd

import "github.com/juju/juju/apiserver/facades/controller/logfwd"

Index

Package Files

lastsent.go

type LastSentTracker Uses

type LastSentTracker interface {
    io.Closer

    // Get retrieves the record ID and timestamp.
    Get() (recID int64, recTimestamp int64, err error)

    // Set records the record ID and timestamp.
    Set(recID int64, recTimestamp int64) error
}

LastSentTracker exposes the functionality of state.LastSentTracker.

type LogForwardingAPI Uses

type LogForwardingAPI struct {
    // contains filtered or unexported fields
}

LogForwardingAPI is the concrete implementation of the api end point.

func NewFacade Uses

func NewFacade(st *state.State, _ facade.Resources, auth facade.Authorizer) (*LogForwardingAPI, error)

NewFacade creates a new LogForwardingAPI. It is used for API registration.

func NewLogForwardingAPI Uses

func NewLogForwardingAPI(st LogForwardingState, auth facade.Authorizer) (*LogForwardingAPI, error)

NewLogForwardingAPI creates a new server-side logger API end point.

func (*LogForwardingAPI) GetLastSent Uses

func (api *LogForwardingAPI) GetLastSent(args params.LogForwardingGetLastSentParams) params.LogForwardingGetLastSentResults

GetLastSent is a bulk call that gets the log forwarding "last sent" record ID for each requested target.

func (*LogForwardingAPI) SetLastSent Uses

func (api *LogForwardingAPI) SetLastSent(args params.LogForwardingSetLastSentParams) params.ErrorResults

SetLastSent is a bulk call that sets the log forwarding "last sent" record ID for each requested target.

type LogForwardingState Uses

type LogForwardingState interface {
    // NewLastSentTracker creates a new tracker for the given model
    // and log sink.
    NewLastSentTracker(tag names.ModelTag, sink string) LastSentTracker
}

LogForwardingState supports interacting with state for the LogForwarding facade.

Package logfwd imports 7 packages (graph) and is imported by 3 packages. Updated 2019-09-20. Refresh now. Tools for package owners.