juju: github.com/wallyworld/juju/worker/caasrbacmapper Index | Files | Directories

package caasrbacmapper

import "github.com/wallyworld/juju/worker/caasrbacmapper"


Package Files

manifold.go mapper.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

type DefaultMapper Uses

type DefaultMapper struct {
    // contains filtered or unexported fields

DefaultMapper is a default implementation of the MapperWorker interface. It's responsible for watching ServiceAccounts on a given model and

func NewMapper Uses

func NewMapper(logger Logger, informer core.ServiceAccountInformer) (*DefaultMapper, error)

NewMapper constructs a new DefaultMapper for the supplied logger and ServiceAccountInformer

func (*DefaultMapper) AppNameForServiceAccount Uses

func (d *DefaultMapper) AppNameForServiceAccount(id types.UID) (string, error)

AppNameForServiceAccount implements Mapper interface

func (*DefaultMapper) Kill Uses

func (d *DefaultMapper) Kill()

Kill implements Kill() from the Worker interface

func (*DefaultMapper) Wait Uses

func (d *DefaultMapper) Wait() error

Wait implements Wait() from the Worker interface

type K8sBroker Uses

type K8sBroker interface {
    SharedInformerFactory() informers.SharedInformerFactory

type Logger Uses

type Logger interface {
    Errorf(string, ...interface{})

type ManifoldConfig Uses

type ManifoldConfig struct {
    BrokerName string
    Logger     Logger

func (ManifoldConfig) Start Uses

func (c ManifoldConfig) Start(context dependency.Context) (worker.Worker, error)

func (ManifoldConfig) Validate Uses

func (c ManifoldConfig) Validate() error

type Mapper Uses

type Mapper interface {
    // AppNameForServiceAccount fetches the juju application name associated
    // with a given kubernetes service account UID. If no result is found
    // errors.NotFound is returned. All other errors should be considered
    // internal to the interface operation.
    AppNameForServiceAccount(types.UID) (string, error)

Mapper describes an interface for mapping k8s service account UID's to juju application names.

type MapperWorker Uses

type MapperWorker interface {

MapperWorker is a Mapper that also implements the worker interface



Package caasrbacmapper imports 14 packages (graph). Updated 2020-05-20. Refresh now. Tools for package owners.