Documentation ¶
Index ¶
- Variables
- func CheckErr(err error)
- func ClientLogin(ctx context.Context, clientId string, clientSecret string) error
- func GetGrpcTrailer() grpc.CallOption
- func GetSupportedRuntimes() []string
- func IsValidName(s string) bool
- func IsValidRuntime(runtime string) bool
- func NewAnonymousConnection() (*grpc.ClientConn, error)
- func NewApiConnection(ctx context.Context, cfg *ApiConnectionConfig) (*grpc.ClientConn, error)
- func NewApiConnectionByEnv(ctx context.Context, envType clienv.NucleusEnv) (*grpc.ClientConn, error)
- func NewAuthenticatedConnection(accessToken string) (*grpc.ClientConn, error)
- func OAuthLogin(ctx context.Context) error
- func PromptToProceed(cmd *cobra.Command, environmentName string, yesPromptFlagName string) error
- func RenderLoginErrorPage(wr io.Writer, data LoginPageErrorData) error
- func RenderLoginSuccessPage(wr io.Writer, data LoginPageData) error
- type ApiConnectionConfig
- type LoginPageData
- type LoginPageErrorData
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidServiceName = fmt.Errorf("invalid name")
)
View Source
var (
Scopes = []string{
"openid",
"profile",
"offline_access",
}
)
Auth Vars
Functions ¶
func ClientLogin ¶ added in v0.0.26
func GetGrpcTrailer ¶
func GetGrpcTrailer() grpc.CallOption
func GetSupportedRuntimes ¶
func GetSupportedRuntimes() []string
func IsValidName ¶
func IsValidRuntime ¶ added in v0.0.32
func NewAnonymousConnection ¶
func NewAnonymousConnection() (*grpc.ClientConn, error)
func NewApiConnection ¶
func NewApiConnection(ctx context.Context, cfg *ApiConnectionConfig) (*grpc.ClientConn, error)
func NewApiConnectionByEnv ¶
func NewApiConnectionByEnv(ctx context.Context, envType clienv.NucleusEnv) (*grpc.ClientConn, error)
func NewAuthenticatedConnection ¶
func NewAuthenticatedConnection(accessToken string) (*grpc.ClientConn, error)
func OAuthLogin ¶ added in v0.0.30
func PromptToProceed ¶
func RenderLoginErrorPage ¶ added in v0.0.30
func RenderLoginErrorPage(wr io.Writer, data LoginPageErrorData) error
func RenderLoginSuccessPage ¶ added in v0.0.30
func RenderLoginSuccessPage(wr io.Writer, data LoginPageData) error
Types ¶
type ApiConnectionConfig ¶
func GetApiConnectionConfigByEnv ¶
func GetApiConnectionConfigByEnv(envType clienv.NucleusEnv) *ApiConnectionConfig
type LoginPageData ¶ added in v0.0.30
type LoginPageData struct {
Title string
}
type LoginPageErrorData ¶ added in v0.0.30
Click to show internal directories.
Click to hide internal directories.