Documentation
¶
Index ¶
- Variables
- func GetEnv() string
- func GetGrpcTrailer() grpc.CallOption
- func GetSupportedRuntimes() []string
- func IsValidEnvironmentType(environmentType string) bool
- func IsValidName(s string) bool
- func NewApiConnection(cfg ApiConnectionConfig) (*grpc.ClientConn, error)
- func NewApiConnectionByEnv(envType string) (*grpc.ClientConn, error)
- func NewAuthenticatedConnection(accessToken string) (*grpc.ClientConn, error)
- func PromptToProceed(cmd *cobra.Command, environmentType string, yesPromptFlagName string) error
- type ApiConnectionConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidServiceName = fmt.Errorf("invalid name")
)
View Source
var (
Scopes []string = []string{
"openid",
"profile",
"offline_access",
"deploy:service",
"read:service",
}
)
Auth Vars
Functions ¶
func GetGrpcTrailer ¶
func GetGrpcTrailer() grpc.CallOption
func GetSupportedRuntimes ¶
func GetSupportedRuntimes() []string
func IsValidEnvironmentType ¶
func IsValidName ¶
func NewApiConnection ¶
func NewApiConnection(cfg ApiConnectionConfig) (*grpc.ClientConn, error)
Returns a GRPC client that has been authenticated for use with Nucleus API
func NewApiConnectionByEnv ¶ added in v0.0.12
func NewApiConnectionByEnv(envType string) (*grpc.ClientConn, error)
func NewAuthenticatedConnection ¶
func NewAuthenticatedConnection(accessToken string) (*grpc.ClientConn, error)
Types ¶
type ApiConnectionConfig ¶
Click to show internal directories.
Click to hide internal directories.