Documentation ¶
Index ¶
- Constants
- func IsIncorrectParameterFormatErr(err error) bool
- func NewCreateCommand() *cobra.Command
- func NewDeleteComand() *cobra.Command
- func NewGetCommand() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- type BaseCmd
- type CertificatePinningHash
- type ClientBuildsCmd
- func (cbc *ClientBuildsCmd) CreateClientBuildsCmd() *cobra.Command
- func (cbc *ClientBuildsCmd) DeleteClientBuildsCmd() *cobra.Command
- func (cbc *ClientBuildsCmd) GetClientBuildsCmd() *cobra.Command
- func (cbc *ClientBuildsCmd) ListClientBuildsCmd() *cobra.Command
- func (cbc *ClientBuildsCmd) StartClientBuildsCmd() *cobra.Command
- func (cbc *ClientBuildsCmd) StopClientBuildsCmd() *cobra.Command
- type ClientCmd
- type ClientConfigCmd
- type ExternalHTTPRequester
- type ExternalServiceMetaData
- type HttpsConfig
- type IncorrectParameterFormat
- type InstanceCreateParams
- type IntegrationCmd
- type SCCInterface
- type Service
- type ServiceConfig
- type ServiceConfigCmd
- type ServiceConfigs
- type ServiceIntegration
- type ServicesCmd
Constants ¶
const ( ServiceNameKeycloak = "keycloak" ServiceNameThreeScale = "3scale" ServiceNameSync = "fh-sync-server" ServiceNameMobileCICD = "aerogear-digger" ServiceNameCustom = "custom" IntegrationAPIKeys = "mcp-mobile-keys" )
Variables ¶
This section is empty.
Functions ¶
func IsIncorrectParameterFormatErr ¶ added in v0.0.2
IsIncorrectParameterFormatErr checks the err to see is it a IncorrectParameterFormat error
func NewCreateCommand ¶
func NewDeleteComand ¶
func NewGetCommand ¶
func NewRootCmd ¶
func NewStartCmd ¶
func NewStopCmd ¶
Types ¶
type CertificatePinningHash ¶ added in v0.0.6
type ClientBuildsCmd ¶
type ClientBuildsCmd struct{}
func NewClientBuildsCmd ¶
func NewClientBuildsCmd() *ClientBuildsCmd
func (*ClientBuildsCmd) CreateClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) CreateClientBuildsCmd() *cobra.Command
func (*ClientBuildsCmd) DeleteClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) DeleteClientBuildsCmd() *cobra.Command
func (*ClientBuildsCmd) GetClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) GetClientBuildsCmd() *cobra.Command
func (*ClientBuildsCmd) ListClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) ListClientBuildsCmd() *cobra.Command
func (*ClientBuildsCmd) StartClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) StartClientBuildsCmd() *cobra.Command
func (*ClientBuildsCmd) StopClientBuildsCmd ¶
func (cbc *ClientBuildsCmd) StopClientBuildsCmd() *cobra.Command
type ClientCmd ¶
type ClientCmd struct { *BaseCmd // contains filtered or unexported fields }
func NewClientCmd ¶
NewClientCmd returns a configured ClientCmd ready for use
func (*ClientCmd) CreateClientCmd ¶
CreateClientCmd builds the create mobileclient command
func (*ClientCmd) DeleteClientCmd ¶
DeleteClientCmd builds the delete mobile client command
func (*ClientCmd) GetClientCmd ¶
GetClientCmd builds the get mobileclient command
func (*ClientCmd) ListClientsCmd ¶
ListClientsCmd builds the list mobile clients command
type ClientConfigCmd ¶
type ClientConfigCmd struct { *BaseCmd // contains filtered or unexported fields }
ClientConfigCmd executes the retrieval and display of the client config
func NewClientConfigCmd ¶
func NewClientConfigCmd(k8Client kubernetes.Interface, mobileClient mobile.Interface, scClient sc.Interface, clusterHost string, out io.Writer) *ClientConfigCmd
NewClientConfigCmd creates and returns a ClientConfigCmd object
func (*ClientConfigCmd) GetClientConfigCmd ¶
func (ccc *ClientConfigCmd) GetClientConfigCmd() *cobra.Command
GetClientConfigCmd returns a cobra command object for getting client configs
type ExternalHTTPRequester ¶
type ExternalServiceMetaData ¶
type ExternalServiceMetaData struct { Dependencies []string `json:"dependencies"` DisplayName string `json:"displayName"` DocumentationURL string `json:"documentationUrl"` ImageURL string `json:"imageUrl"` ProviderDisplayName string `json:"providerDisplayName"` ServiceName string `json:"serviceName"` }
type HttpsConfig ¶ added in v0.0.6
type HttpsConfig struct {
CertificatePinning []*CertificatePinningHash `json:"certificatePins,omitempty"`
}
type IncorrectParameterFormat ¶ added in v0.0.2
type IncorrectParameterFormat struct {
// contains filtered or unexported fields
}
func NewIncorrectParameterFormat ¶ added in v0.0.2
func NewIncorrectParameterFormat(context string) IncorrectParameterFormat
NewIncorrectParameterFormat returns an error type for incorrectly formatted parameters
func (IncorrectParameterFormat) Error ¶ added in v0.0.2
func (ip IncorrectParameterFormat) Error() string
type InstanceCreateParams ¶ added in v0.0.2
type IntegrationCmd ¶
type IntegrationCmd struct { *BaseCmd // contains filtered or unexported fields }
func NewIntegrationCmd ¶
func NewIntegrationCmd(scClient sc.Interface, k8Client kubernetes.Interface, out io.Writer) *IntegrationCmd
func (*IntegrationCmd) CreateIntegrationCmd ¶
func (bc *IntegrationCmd) CreateIntegrationCmd() *cobra.Command
CreateIntegrationCmd will create a binding from the provider services and setup a pod preset for the consumer service
func (*IntegrationCmd) DeleteIntegrationCmd ¶
func (bc *IntegrationCmd) DeleteIntegrationCmd() *cobra.Command
func (*IntegrationCmd) GetIntegrationCmd ¶
func (bc *IntegrationCmd) GetIntegrationCmd() *cobra.Command
func (*IntegrationCmd) ListIntegrationsCmd ¶ added in v0.0.2
func (bc *IntegrationCmd) ListIntegrationsCmd() *cobra.Command
type SCCInterface ¶
type SCCInterface interface { BindToService(bindableService, targetSvcName string, bindingParams map[string]interface{}, bindableServiceNamespace, targetSvcNamespace string) error UnBindFromService(bindableService, targetSvcName, bindableServiceNamespace string) error AddMobileApiKeys(targetSvcName, namespace string) error RemoveMobileApiKeys(targetSvcName, namespace string) error }
type Service ¶
type Service struct { ID string `json:"id"` Name string `json:"name"` DisplayName string `json:"displayName"` Namespace string `json:"namespace"` Host string `json:"host"` Description string `json:"description"` Type string `json:"type"` Capabilities map[string][]string `json:"capabilities"` Params map[string]string `json:"params"` Labels map[string]string `json:"labels"` Integrations map[string]*ServiceIntegration `json:"integrations"` External bool `json:"external"` Writable bool `json:"writable"` }
Service represents a serverside application that mobile application will interact with
type ServiceConfig ¶
type ServiceConfig struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` URL string `json:"url"` Config map[string]interface{} `json:"config"` }
ServiceConfig is the configuration for a specific service
type ServiceConfigCmd ¶
type ServiceConfigCmd struct {
// contains filtered or unexported fields
}
func NewServiceConfigCommand ¶
func NewServiceConfigCommand(k8client kubernetes.Interface) *ServiceConfigCmd
func (*ServiceConfigCmd) CreateServiceConfigCmd ¶
func (scc *ServiceConfigCmd) CreateServiceConfigCmd() *cobra.Command
func (*ServiceConfigCmd) DeleteServiceConfigCmd ¶
func (scc *ServiceConfigCmd) DeleteServiceConfigCmd() *cobra.Command
func (*ServiceConfigCmd) GetServiceConfigCmd ¶
func (scc *ServiceConfigCmd) GetServiceConfigCmd() *cobra.Command
func (*ServiceConfigCmd) ListServiceConfigCmd ¶
func (scc *ServiceConfigCmd) ListServiceConfigCmd() *cobra.Command
type ServiceConfigs ¶ added in v0.0.2
type ServiceConfigs struct { Version int `json:"version"` ClusterName string `json:"clusterName"` Namespace string `json:"namespace"` ClientID string `json:"clientId,omitempty"` Services []*ServiceConfig `json:"services"` Https *HttpsConfig `json:"https,omitempty"` }
ServiceConfigs are collection of configurations for services in a specific namespace
type ServiceIntegration ¶
type ServicesCmd ¶
type ServicesCmd struct { *BaseCmd // contains filtered or unexported fields }
func NewServicesCmd ¶
func NewServicesCmd(scClient versioned.Interface, k8Client kubernetes.Interface, out io.Writer) *ServicesCmd
func (*ServicesCmd) CreateServiceInstanceCmd ¶ added in v0.0.2
func (sc *ServicesCmd) CreateServiceInstanceCmd() *cobra.Command
func (*ServicesCmd) DeleteServiceInstanceCmd ¶ added in v0.0.2
func (sc *ServicesCmd) DeleteServiceInstanceCmd() *cobra.Command
func (*ServicesCmd) ListServiceInstCmd ¶
func (sc *ServicesCmd) ListServiceInstCmd() *cobra.Command
func (*ServicesCmd) ListServicesCmd ¶
func (sc *ServicesCmd) ListServicesCmd() *cobra.Command