Documentation ¶
Overview ¶
Thanks Gin! https://github.com/gin-gonic/contrib/blob/master/static/example/bindata/example.go
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func HelmIntroActions() []daemontypes.Action
- func HelmValuesActions() []daemontypes.Action
- func MessageActions() []daemontypes.Action
- func MustAsset(name string) []byte
- func NewHeadedDaemon(logger log.Logger, v *viper.Viper, webUIFactory WebUIBuilder, ...) daemontypes.Daemon
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type ConfigOption
- type NavcycleRoutes
- type OptionalRoutes
- type SaveOverlayRequest
- type SaveValuesRequest
- type ShipDaemon
- type V1Routes
- func (d *V1Routes) AllStepsDone(ctx context.Context)
- func (d *V1Routes) CleanPreviousStep()
- func (d *V1Routes) ClearProgress()
- func (d *V1Routes) ConfigSavedChan() chan interface{}
- func (d *V1Routes) GetCurrentConfig() map[string]interface{}
- func (d *V1Routes) KustomizeSavedChan() chan interface{}
- func (d *V1Routes) MessageConfirmedChan() chan string
- func (d *V1Routes) PushHelmIntroStep(ctx context.Context, step daemontypes.HelmIntro, actions []daemontypes.Action)
- func (d *V1Routes) PushHelmValuesStep(ctx context.Context, step daemontypes.HelmValues, actions []daemontypes.Action)
- func (d *V1Routes) PushKustomizeStep(ctx context.Context, kustomize daemontypes.Kustomize)
- func (d *V1Routes) PushMessageStep(ctx context.Context, step daemontypes.Message, actions []daemontypes.Action)
- func (d *V1Routes) PushRenderStep(ctx context.Context, step daemontypes.Render)
- func (d *V1Routes) PushStreamStep(ctx context.Context, msgs <-chan daemontypes.Message)
- func (d *V1Routes) PushUnforkStep(ctx context.Context, unfork daemontypes.Unfork)
- func (d *V1Routes) Register(g *gin.RouterGroup, release *api.Release)
- func (d *V1Routes) SetProgress(p daemontypes.Progress)
- func (d *V1Routes) SetStepName(ctx context.Context, stepName string)
- func (d *V1Routes) TerraformConfirmedChan() chan bool
- func (d *V1Routes) UnforkSavedChan() chan interface{}
- type V2Executor
- type WebUIBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func HelmIntroActions ¶
func HelmIntroActions() []daemontypes.Action
func HelmValuesActions ¶
func HelmValuesActions() []daemontypes.Action
func MessageActions ¶
func MessageActions() []daemontypes.Action
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func NewHeadedDaemon ¶
func NewHeadedDaemon( logger log.Logger, v *viper.Viper, webUIFactory WebUIBuilder, routes OptionalRoutes, ) daemontypes.Daemon
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type ConfigOption ¶
type NavcycleRoutes ¶
NavcycleRoutes provide workflow execution with standard browser navigation
func NewV2Router ¶
func NewV2Router( logger log.Logger, stateManager state.Manager, messenger lifecycle.Messenger, helmIntro lifecycle.HelmIntro, helmValues lifecycle.HelmValues, kustomizeIntro lifecycle.KustomizeIntro, kustomizer lifecycle.Kustomizer, terraformer lifecycle.Terraformer, kubectlApply lifecycle.KubectlApply, configRenderer *resolve.APIConfigRenderer, planners planner.Planner, patcher patch.Patcher, renderer lifecycle.Renderer, treeLoader filetree.Loader, builderBuilder *templates.BuilderBuilder, fs afero.Afero, ) *NavcycleRoutes
func (*NavcycleRoutes) Register ¶
func (d *NavcycleRoutes) Register(group *gin.RouterGroup, release *api.Release)
Register registers routes
type OptionalRoutes ¶
type OptionalRoutes struct { dig.In V2Router *NavcycleRoutes `optional:"true"` V1Router *V1Routes `optional:"true"` }
type SaveOverlayRequest ¶ added in v0.17.0
type SaveValuesRequest ¶
type ShipDaemon ¶
type ShipDaemon struct { Logger log.Logger WebUIFactory WebUIBuilder Viper *viper.Viper // todo private this ExitChan chan error StartOnce sync.Once *V1Routes }
Daemon runs the ship api server.
func (*ShipDaemon) AwaitShutdown ¶
func (d *ShipDaemon) AwaitShutdown() error
func (*ShipDaemon) EnsureStarted ¶
"this is fine"
func (*ShipDaemon) Healthz ¶
func (d *ShipDaemon) Healthz(c *gin.Context)
Healthz returns a 200 with the version if provided
func (*ShipDaemon) Metricz ¶
func (d *ShipDaemon) Metricz(c *gin.Context)
Metricz returns (empty) metrics for this server
type V1Routes ¶
type V1Routes struct { Logger log.Logger Fs afero.Afero Viper *viper.Viper UI cli.Ui StateManager state.Manager ConfigRenderer *resolve.APIConfigRenderer TreeLoader filetree.Loader Patcher patch.Patcher OpenWebConsole opener sync.Mutex ConfigSaved chan interface{} CurrentConfig map[string]interface{} MessageConfirmed chan string TerraformConfirmed chan bool KustomizeSaved chan interface{} UnforkSaved chan interface{} // contains filtered or unexported fields }
func NewV1Router ¶
func (*V1Routes) AllStepsDone ¶
func (*V1Routes) CleanPreviousStep ¶
func (d *V1Routes) CleanPreviousStep()
func (*V1Routes) ClearProgress ¶
func (d *V1Routes) ClearProgress()
func (*V1Routes) ConfigSavedChan ¶
func (d *V1Routes) ConfigSavedChan() chan interface{}
func (*V1Routes) GetCurrentConfig ¶
func (*V1Routes) KustomizeSavedChan ¶
func (d *V1Routes) KustomizeSavedChan() chan interface{}
func (*V1Routes) MessageConfirmedChan ¶
func (*V1Routes) PushHelmIntroStep ¶
func (d *V1Routes) PushHelmIntroStep( ctx context.Context, step daemontypes.HelmIntro, actions []daemontypes.Action, )
func (*V1Routes) PushHelmValuesStep ¶
func (d *V1Routes) PushHelmValuesStep( ctx context.Context, step daemontypes.HelmValues, actions []daemontypes.Action, )
func (*V1Routes) PushKustomizeStep ¶
func (d *V1Routes) PushKustomizeStep(ctx context.Context, kustomize daemontypes.Kustomize)
func (*V1Routes) PushMessageStep ¶
func (d *V1Routes) PushMessageStep( ctx context.Context, step daemontypes.Message, actions []daemontypes.Action, )
func (*V1Routes) PushRenderStep ¶
func (d *V1Routes) PushRenderStep( ctx context.Context, step daemontypes.Render, )
func (*V1Routes) PushStreamStep ¶
func (d *V1Routes) PushStreamStep( ctx context.Context, msgs <-chan daemontypes.Message, )
func (*V1Routes) PushUnforkStep ¶ added in v0.27.0
func (d *V1Routes) PushUnforkStep(ctx context.Context, unfork daemontypes.Unfork)
func (*V1Routes) SetProgress ¶
func (d *V1Routes) SetProgress(p daemontypes.Progress)
func (*V1Routes) TerraformConfirmedChan ¶
func (*V1Routes) UnforkSavedChan ¶ added in v0.27.0
func (d *V1Routes) UnforkSavedChan() chan interface{}
type V2Executor ¶
type V2Executor func(d *NavcycleRoutes, step api.Step) error
type WebUIBuilder ¶
type WebUIBuilder func(root string) *binaryFileSystem
func WebUIFactoryFactory ¶
func WebUIFactoryFactory( logger log.Logger, ) WebUIBuilder
Source Files ¶
- actions.go
- constructors.go
- daemon.go
- open.go
- routes_navcycle.go
- routes_navcycle_completestep.go
- routes_navcycle_config.go
- routes_navcycle_getcycle.go
- routes_navcycle_getstep.go
- routes_navcycle_kubectl.go
- routes_navcycle_kustomize.go
- routes_navcycle_terraform.go
- routes_v1.go
- routes_v1_config.go
- routes_v1_kustomize.go
- routes_v1_state.go
- routes_v1_unfork.go
- ui.bindatafs.go
- ui.go