app

package
v0.0.0-...-1b8de1e Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CortezaApp

type CortezaApp struct {
	Opt *options.Options

	Log *zap.Logger

	// Store interface
	//
	// Just a blank interface{} because we want to avoid generating
	// whole store interface (as we do for other packages).
	//
	// Value will be type-casted when assigned to sys/msg/cmp services
	// with warnings when incompatible
	Store store.Storer

	// CLI Commands
	Command *cobra.Command

	DefaultAuthClient *types.AuthClient

	// Servers
	HttpServer httpApiServer
	GrpcServer grpcServer
	WsServer   wsServer

	AuthService  authServicer
	ApigwService apigwServicer
	// contains filtered or unexported fields
}

func New

func New() *CortezaApp

func (*CortezaApp) Activate

func (app *CortezaApp) Activate(ctx context.Context) (err error)

Activate start all internal services and watchers

func (*CortezaApp) Execute

func (app *CortezaApp) Execute() error

func (*CortezaApp) InitCLI

func (app *CortezaApp) InitCLI()

InitCLI function initializes basic Corteza subsystems and sets-up the command line interface

func (*CortezaApp) InitServices

func (app *CortezaApp) InitServices(ctx context.Context) (err error)

InitServices initializes all services used

func (*CortezaApp) InitStore

func (app *CortezaApp) InitStore(ctx context.Context) (err error)

InitStore initializes store backend(s) and runs upgrade procedures

func (*CortezaApp) Options

func (app *CortezaApp) Options() *options.Options

func (*CortezaApp) Provision

func (app *CortezaApp) Provision(ctx context.Context) (err error)

Provision instance with configuration and settings by importing preset configurations and running autodiscovery procedures

func (*CortezaApp) Setup

func (app *CortezaApp) Setup() (err error)

Setup configures all required services

Jump to

Keyboard shortcuts

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