cli_publisher

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardPublisher

type DashboardPublisher struct {
	Secret      string
	Hostname    string
	OrgOverride string
}

func (*DashboardPublisher) Create

func (p *DashboardPublisher) Create(apiDef *objects.DBApiDefinition) (string, error)

func (*DashboardPublisher) CreatePolicy

func (p *DashboardPublisher) CreatePolicy(pol *objects.Policy) (string, error)

func (*DashboardPublisher) Name

func (p *DashboardPublisher) Name() string

func (*DashboardPublisher) Reload

func (p *DashboardPublisher) Reload() error

func (*DashboardPublisher) Sync

func (p *DashboardPublisher) Sync(apiDefs []objects.DBApiDefinition) error

func (*DashboardPublisher) SyncPolicies

func (p *DashboardPublisher) SyncPolicies(pols []objects.Policy) error

func (*DashboardPublisher) Update

func (p *DashboardPublisher) Update(apiDef *objects.DBApiDefinition) error

func (*DashboardPublisher) UpdatePolicy

func (p *DashboardPublisher) UpdatePolicy(pol *objects.Policy) error

type GatewayPublisher

type GatewayPublisher struct {
	Secret   string
	Hostname string
}

func (*GatewayPublisher) Create

func (p *GatewayPublisher) Create(apiDef *objects.DBApiDefinition) (string, error)

func (*GatewayPublisher) CreatePolicy

func (p *GatewayPublisher) CreatePolicy(pol *objects.Policy) (string, error)

func (*GatewayPublisher) Name

func (p *GatewayPublisher) Name() string

func (*GatewayPublisher) Reload

func (p *GatewayPublisher) Reload() error

func (*GatewayPublisher) Sync

func (p *GatewayPublisher) Sync(apiDefs []objects.DBApiDefinition) error

func (*GatewayPublisher) SyncPolicies

func (p *GatewayPublisher) SyncPolicies(pols []objects.Policy) error

func (*GatewayPublisher) Update

func (p *GatewayPublisher) Update(apiDef *objects.DBApiDefinition) error

func (*GatewayPublisher) UpdatePolicy

func (p *GatewayPublisher) UpdatePolicy(pol *objects.Policy) error

type MockPublisher

type MockPublisher struct{}

func (MockPublisher) Create

func (mp MockPublisher) Create(apiDef *objects.DBApiDefinition) (string, error)

func (MockPublisher) CreatePolicy

func (mp MockPublisher) CreatePolicy(pol *objects.Policy) (string, error)

func (MockPublisher) Name

func (mp MockPublisher) Name() string

func (MockPublisher) Reload

func (mp MockPublisher) Reload() error

func (MockPublisher) Sync

func (mp MockPublisher) Sync(apiDef []objects.DBApiDefinition) error

func (MockPublisher) SyncPolicies

func (mp MockPublisher) SyncPolicies(pols []objects.Policy) error

func (MockPublisher) Update

func (mp MockPublisher) Update(apiDef *objects.DBApiDefinition) error

func (MockPublisher) UpdatePolicy

func (mp MockPublisher) UpdatePolicy(pol *objects.Policy) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL