Documentation ¶
Index ¶
- func CreateNamespace(ns string)
- func DeleteNamespace(ns string, wait bool)
- func DoesBackstageRouteExist(ns string, crName string) (bool, error)
- func GetBackstageRouteHost(ns string, crName string) (string, error)
- func GetNonEmptyLines(output string) []string
- func GetPlatformTool() string
- func GetProjectDir() (string, error)
- func GuestAuth(baseUrl string) (string, error)
- func IsOpenShift() bool
- func LoadImageToK3dClusterWithName(name string) error
- func LoadImageToKindClusterWithName(name string) error
- func LoadImageToMinikubeClusterWithName(name string) error
- func PatchBackstageCR(ns string, crName string, jsonPatch string, patchType string) error
- func RandString(n int) string
- func Run(cmd *exec.Cmd) ([]byte, error)
- func VerifyBackstageCRStatus(g Gomega, ns string, crName string, expectedStatus string)
- func VerifyBackstagePodStatus(g Gomega, ns string, crName string, expectedStatus string)
- func VerifyBackstageRoute(g Gomega, ns string, crName string, tests []ApiEndpointTest)
- type ApiEndpointTest
- type BackstageAuthRefreshResponse
- type BackstageIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(ns string)
func DeleteNamespace ¶
func GetNonEmptyLines ¶
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
func GetPlatformTool ¶
func GetPlatformTool() string
func GetProjectDir ¶
GetProjectDir will return the directory where the project is
func GuestAuth ¶
GuestAuth logs in with the guest user in Backstage and returns the auth token. It requires guest login to be enabled in the loaded app-config. See https://backstage.io/docs/auth/guest/provider/ for more details.
func IsOpenShift ¶
func IsOpenShift() bool
func LoadImageToK3dClusterWithName ¶
LoadImageToK3dClusterWithName loads a local container image to the k3d cluster
func LoadImageToKindClusterWithName ¶
LoadImageToKindClusterWithName loads a local container image to the kind cluster
func LoadImageToMinikubeClusterWithName ¶
LoadImageToMinikubeClusterWithName loads a local container image to the Minikube cluster
func PatchBackstageCR ¶
func RandString ¶
func VerifyBackstageCRStatus ¶
func VerifyBackstageRoute ¶
func VerifyBackstageRoute(g Gomega, ns string, crName string, tests []ApiEndpointTest)
Types ¶
type ApiEndpointTest ¶
type BackstageAuthRefreshResponse ¶
type BackstageAuthRefreshResponse struct {
BackstageIdentity BackstageIdentity `json:"backstageIdentity,omitempty"`
}
BackstageAuthRefreshResponse is the struct of the response returned by the '/api/auth/:user/refresh' API endpoint.
Example:
{ "backstageIdentity": { "expiresInSeconds": 3600, "identity": { "ownershipEntityRefs": [ "user:development/guest" ], "type": "user", "userEntityRef": "user:development/guest" }, "token": "eyJ0..." }, "profile": {} }
type BackstageIdentity ¶
type BackstageIdentity struct {
Token string `json:"token,omitempty"`
}