client

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPSource

func NewHTTPSource(host string, creds system.Credential) system.Source

NewHTTPSource creates a new HTTPSource that looks for a bundle at [host].

Types

type HTTPSource

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

HTTPSource is a Source backed by an HTTP client connected to a remote source.

func (*HTTPSource) Authentication

func (h *HTTPSource) Authentication(ident, namespace string, version int64) (*tenant.Authentication, error)

Authentication returns the Authentication for the system.

func (*HTTPSource) Capabilities

func (h *HTTPSource) Capabilities(ident, namespace string, version int64) (*capabilities.CapabilityConfig, error)

Capabilities returns the Capabilities for the system.

func (*HTTPSource) Connections

func (h *HTTPSource) Connections(ident, namespace string, version int64) ([]tenant.Connection, error)

Connections returns the Connections for the system.

func (*HTTPSource) GetModule

func (h *HTTPSource) GetModule(FQMN string) (*tenant.Module, error)

GetModule returns a nil error if a Module with the provided FQMN can be made available at the next sync, otherwise ErrRunnableNotFound is returned.

func (*HTTPSource) Overview

func (h *HTTPSource) Overview() (*system.Overview, error)

Overview gets the overview for the entire system.

func (*HTTPSource) Queries

func (h *HTTPSource) Queries(ident, namespace string, version int64) ([]tenant.DBQuery, error)

Queries returns the Queries for the system.

func (*HTTPSource) Start

func (h *HTTPSource) Start(opts system.Options) error

Start initializes the system source.

func (*HTTPSource) State

func (h *HTTPSource) State() (*system.State, error)

State returns the state of the entire system

func (*HTTPSource) StaticFile

func (h *HTTPSource) StaticFile(ident string, version int64, filename string) ([]byte, error)

StaticFile returns a requested file.

func (*HTTPSource) TenantOverview

func (h *HTTPSource) TenantOverview(ident string) (*system.TenantOverview, error)

TenantOverview gets the overview for a given tenant.

func (*HTTPSource) Workflows

func (h *HTTPSource) Workflows(ident, namespace string, version int64) ([]tenant.Workflow, error)

Workflows returns the Workflows for the system.

Jump to

Keyboard shortcuts

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