Documentation
¶
Index ¶
- func NewHTTPSource(host string, creds system.Credential) system.Source
- type HTTPSource
- func (h *HTTPSource) Authentication(ident, namespace string, version int64) (*tenant.Authentication, error)
- func (h *HTTPSource) Capabilities(ident, namespace string, version int64) (*capabilities.CapabilityConfig, error)
- func (h *HTTPSource) Connections(ident, namespace string, version int64) ([]tenant.Connection, error)
- func (h *HTTPSource) GetModule(FQMN string) (*tenant.Module, error)
- func (h *HTTPSource) Overview() (*system.Overview, error)
- func (h *HTTPSource) Queries(ident, namespace string, version int64) ([]tenant.DBQuery, error)
- func (h *HTTPSource) Start(opts system.Options) error
- func (h *HTTPSource) State() (*system.State, error)
- func (h *HTTPSource) StaticFile(ident string, version int64, filename string) ([]byte, error)
- func (h *HTTPSource) TenantOverview(ident string) (*system.TenantOverview, error)
- func (h *HTTPSource) Workflows(ident, namespace string, version int64) ([]tenant.Workflow, error)
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) 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 ¶
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.