cmd

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
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 NewCreateCommand

func NewCreateCommand() *cobra.Command

func NewDeleteComand

func NewDeleteComand() *cobra.Command

func NewGetCommand

func NewGetCommand() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewStartCmd

func NewStartCmd() *cobra.Command

func NewStopCmd

func NewStopCmd() *cobra.Command

Types

type BaseCmd

type BaseCmd struct {
	Out *output.Renderer
}

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

func NewClientCmd(mobileClient mobile.Interface, out io.Writer) *ClientCmd

NewClientCmd returns a configured ClientCmd ready for use

func (*ClientCmd) CreateClientCmd

func (cc *ClientCmd) CreateClientCmd() *cobra.Command

CreateClientCmd builds the create mobileclient command

func (*ClientCmd) DeleteClientCmd

func (cc *ClientCmd) DeleteClientCmd() *cobra.Command

DeleteClientCmd builds the delete mobile client command

func (*ClientCmd) GetClientCmd

func (cc *ClientCmd) GetClientCmd() *cobra.Command

GetClientCmd builds the get mobileclient command

func (*ClientCmd) ListClientsCmd

func (cc *ClientCmd) ListClientsCmd() *cobra.Command

ListClientsCmd builds the list mobile clients command

type ClientConfigCmd

type ClientConfigCmd struct {
	// contains filtered or unexported fields
}

func NewClientConfigCmd

func NewClientConfigCmd(k8Client kubernetes.Interface) *ClientConfigCmd

func (*ClientConfigCmd) GetClientConfigCmd

func (ccc *ClientConfigCmd) GetClientConfigCmd() *cobra.Command

type ExternalHTTPRequester

type ExternalHTTPRequester interface {
	Do(req *http.Request) (*http.Response, error)
	Get(url string) (*http.Response, error)
}

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 IntegrationCmd

type IntegrationCmd struct {
	// contains filtered or unexported fields
}

func NewIntegrationCmd

func NewIntegrationCmd(scClient sc.Interface, k8Client kubernetes.Interface) *IntegrationCmd

func (*IntegrationCmd) CreateIntegrationCmd

func (bc *IntegrationCmd) CreateIntegrationCmd() *cobra.Command

func (*IntegrationCmd) DeleteIntegrationCmd

func (bc *IntegrationCmd) DeleteIntegrationCmd() *cobra.Command

func (*IntegrationCmd) GetIntegrationCmd

func (bc *IntegrationCmd) GetIntegrationCmd() *cobra.Command

func (*IntegrationCmd) ListBindingCmd

func (bc *IntegrationCmd) ListBindingCmd() *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 SecretConvertor

type SecretConvertor interface {
	Convert(s *Service) (*ServiceConfig, error)
}

SecretConvertor converts a kubernetes secret into a mobile.ServiceConfig

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 {
	Config map[string]interface{} `json:"config"`
	Name   string                 `json:"name"`
}

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 ServiceIntegration

type ServiceIntegration struct {
	Enabled         bool   `json:"enabled"`
	Component       string `json:"component"`
	Service         string `json:"service"`
	Namespace       string `json:"namespace"`
	ComponentSecret string `json:"componentSecret"`
	DisplayName     string `json:"displayName"`
}

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) DeprovisionServiceInstCmd

func (sc *ServicesCmd) DeprovisionServiceInstCmd() *cobra.Command

func (*ServicesCmd) ListServiceInstCmd

func (sc *ServicesCmd) ListServiceInstCmd() *cobra.Command

func (*ServicesCmd) ListServicesCmd

func (sc *ServicesCmd) ListServicesCmd() *cobra.Command

func (*ServicesCmd) ProvisionServiceCmd

func (sc *ServicesCmd) ProvisionServiceCmd() *cobra.Command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL