klient

package
v0.11.0-nightly.f1b2ca9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Universal = Client{}

Functions

This section is empty.

Types

type Api

type Api struct{}

func (Api) Create

func (Api) Create(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error)

func (Api) Delete

func (Api) Delete(ctx context.Context, id string) (*model.Result, error)

func (Api) Get

func (Api) List

func (Api) Update

func (Api) Update(ctx context.Context, spec *model.APIDefinitionSpec) (*model.Result, error)

type Catalogue

type Catalogue struct{}

func (Catalogue) Create

func (Catalogue) Get

func (Catalogue) Update

type Certificate

type Certificate struct{}

func (Certificate) All

func (Certificate) All(ctx context.Context) ([]string, error)

func (Certificate) Delete

func (Certificate) Delete(ctx context.Context, id string) error

func (Certificate) Exists

func (Certificate) Exists(ctx context.Context, id string) bool

func (Certificate) Upload

func (Certificate) Upload(ctx context.Context, key, crt []byte) (id string, err error)

type Client

type Client struct{}

Client implements universal.Client but picks the correct client dynamically based on context.Context

func (Client) Api

func (Client) Api() universal.Api

func (Client) Certificate

func (Client) Certificate() universal.Certificate

func (Client) HotReload

func (Client) HotReload(ctx context.Context) error

func (Client) Portal

func (Client) Portal() universal.Portal

type Configuration

type Configuration struct{}

func (Configuration) Create

func (Configuration) Get

func (Configuration) Update

type Documentation

type Documentation struct{}

func (Documentation) Delete

func (Documentation) Delete(ctx context.Context, id string) (*model.Result, error)

func (Documentation) Upload

type Policy

type Policy struct{}

func (Policy) All

func (Policy) Create

func (Policy) Delete

func (Policy) Delete(ctx context.Context, id string) error

func (Policy) Get

func (Policy) Update

type Portal

type Portal struct{}

func (Portal) Catalogue

func (Portal) Catalogue() universal.Catalogue

func (Portal) Configuration

func (Portal) Configuration() universal.Configuration

func (Portal) Documentation

func (Portal) Documentation() universal.Documentation

func (Portal) Policy

func (Portal) Policy() universal.Policy

Jump to

Keyboard shortcuts

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