Documentation ¶
Index ¶
- type Api
- func (a *Api) GetBlocks(envId string) ([]*types.Block, error)
- func (a *Api) GetEnvironments() ([]*types.Environment, error)
- func (a *Api) StartAccess(blocksToForward []RemoteConfig, envId string)
- func (a *Api) StartTeleport(blocksToForward []RemoteConfig, envId string, blockName string)
- func (a *Api) TriggerDeploy(envId string, blockName string) (*types.BlockUpdateResponse, error)
- type ApiInterface
- type EnvDetails
- type RemoteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) GetEnvironments ¶
func (a *Api) GetEnvironments() ([]*types.Environment, error)
func (*Api) StartAccess ¶
func (a *Api) StartAccess(blocksToForward []RemoteConfig, envId string)
Used for `kinto access` , `kinto env access`, `kinto svs access` Allows to port-forward/access services depending upon their nature of caller parent
func (*Api) StartTeleport ¶
func (a *Api) StartTeleport(blocksToForward []RemoteConfig, envId string, blockName string)
Used for `kinto teleport` Allows to teleport & port-forward services. Once service is teleported (traffic is redirected) while other services are port-forwarded
func (*Api) TriggerDeploy ¶
type ApiInterface ¶
type ApiInterface interface { GetEnvironments() ([]*types.Environment, error) GetBlocks(envId string) ([]*types.Block, error) TriggerDeploy(envId string, blockName string) (*types.BlockUpdateResponse, error) StartAccess(blocksToForward []RemoteConfig, envId string) StartTeleport(blocksToForward []RemoteConfig, envId string, blockName string) }
func NewApiOrDie ¶
func NewApiOrDie(kintoCoreHost string) ApiInterface
type EnvDetails ¶
Click to show internal directories.
Click to hide internal directories.