Documentation ¶
Index ¶
- Constants
- type ActionComponent
- type Component
- type ComponentType
- type CreateAppRequest
- type CreateComponentRequest
- type CreateEndpointServiceRequest
- type CreateInterfaceServiceRequest
- type CreateModelServiceRequest
- type CreateRouteRequest
- type FlexViewComponent
- type LoginRequest
- type LoginResponse
- type ServiceClient
- func (sc *ServiceClient) CreateComponent(name string, componentType ComponentType, subType string, universe core.ID) (Component, error)
- func (sc *ServiceClient) CreateEndpoint(universeID core.ID, definition system.EndpointNode) (system.EndpointNode, error)
- func (sc *ServiceClient) CreateInterface(universeID core.ID, definition system.NamedInterface) (system.NamedInterface, error)
- func (sc *ServiceClient) CreateModel(universeID core.ID, name string, objectID core.ID, modelType string, ...) error
- func (sc *ServiceClient) DeleteComponent(id core.ID) error
- func (sc *ServiceClient) DeleteEndpoint(universeID core.ID, name string) error
- func (sc *ServiceClient) DeleteInterface(universeID core.ID, name string) error
- func (sc *ServiceClient) DeleteModel(universeID core.ID, name string) error
- func (sc *ServiceClient) GetComponent(componentID core.ID) (Component, error)
- func (sc *ServiceClient) GetComponents(universe core.ID, componentType ComponentType, subType string) ([]Component, error)
- func (sc *ServiceClient) GetEndpointInterfaces(universeID core.ID, endpointName string) ([]system.Interface, error)
- func (sc *ServiceClient) GetFlexView(componentID core.ID) (FlexViewComponent, error)
- func (sc *ServiceClient) GetLayerProfile(profileID core.ID) (system.LayerProfile, error)
- func (sc *ServiceClient) GetUniverseCode(universeName string, language string) (string, error)
- func (sc *ServiceClient) GetUniverseJSONSchema(universeName string) (string, error)
- func (sc *ServiceClient) GetWebView(componentID core.ID) (WebViewComponent, error)
- func (sc *ServiceClient) Info() (ServiceInfo, error)
- func (sc *ServiceClient) LoadUniverse(id core.ID) (system.Universe, error)
- func (sc *ServiceClient) ResolveUniverse(name string) (core.ID, error)
- func (sc *ServiceClient) SetToken(token string)
- func (sc *ServiceClient) UpdateComponent(id core.ID, name *string, description *string, public *bool, listed *bool) (Component, error)
- func (sc *ServiceClient) UpdateEndpoint(universeID core.ID, definition system.EndpointNode) (system.EndpointNode, error)
- func (sc *ServiceClient) UpdateFlexView(componentID core.ID, definition *string) (FlexViewComponent, error)
- func (sc *ServiceClient) UpdateModel(universeID core.ID, name string, description *string) error
- func (sc *ServiceClient) UpdateUniverse(universeID core.ID, description *string, public *bool, extensible *bool) error
- func (sc *ServiceClient) UpdateWebView(componentID core.ID, tag *string) (WebViewComponent, error)
- type ServiceComponent
- type ServiceInfo
- type UpdateAppRequest
- type UpdateComponentRequest
- type UpdateEndpointServiceRequest
- type UpdateFlexViewRequest
- type UpdateModelServiceRequest
- type UpdateUniverseServiceRequest
- type UpdateViewRequest
- type UpdateWebViewRequest
- type UserInfo
- type ViewComponent
- type WebViewComponent
Constants ¶
View Source
const ( ViewComponentTypeWeb = "web" ViewComponentTypeFlex = "flex" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionComponent ¶
type ActionComponent struct {
Component
}
type Component ¶
type Component struct { ID core.ID `json:"id"` Type ComponentType `json:"type"` SubType string `json:"subType"` Name string `json:"name"` Description string `json:"description"` Author core.ID `json:"author"` Universe core.ID `json:"universe"` Public bool `json:"public"` Listed bool `json:"listed"` Profile core.ID `json:"profile"` }
type ComponentType ¶
type ComponentType string
const ( ComponentTypeView ComponentType = "view" ComponentTypeService ComponentType = "service" ComponentTypeAction ComponentType = "action" )
type CreateAppRequest ¶
type CreateComponentRequest ¶
type CreateComponentRequest struct { Name string `json:"name"` Type ComponentType `json:"type"` SubType string `json:"subType"` Universe core.ID `json:"universe"` }
type CreateEndpointServiceRequest ¶
type CreateEndpointServiceRequest struct { Name string `json:"name"` Definition system.EndpointNode `json:"definition"` }
type CreateInterfaceServiceRequest ¶
type CreateInterfaceServiceRequest struct { Name string `json:"name"` Definition system.NamedInterface `json:"definition"` }
type CreateRouteRequest ¶
type FlexViewComponent ¶
type FlexViewComponent struct { ViewComponent Definition string `json:"definition"` // TODO: Replace with actual form definition (TBD) }
type LoginRequest ¶
type LoginResponse ¶
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func NewServiceClient ¶
func NewServiceClient(endpoint string) *ServiceClient
func (*ServiceClient) CreateComponent ¶
func (sc *ServiceClient) CreateComponent(name string, componentType ComponentType, subType string, universe core.ID) (Component, error)
func (*ServiceClient) CreateEndpoint ¶
func (sc *ServiceClient) CreateEndpoint(universeID core.ID, definition system.EndpointNode) (system.EndpointNode, error)
func (*ServiceClient) CreateInterface ¶
func (sc *ServiceClient) CreateInterface(universeID core.ID, definition system.NamedInterface) (system.NamedInterface, error)
func (*ServiceClient) CreateModel ¶
func (*ServiceClient) DeleteComponent ¶
func (sc *ServiceClient) DeleteComponent(id core.ID) error
func (*ServiceClient) DeleteEndpoint ¶
func (sc *ServiceClient) DeleteEndpoint(universeID core.ID, name string) error
func (*ServiceClient) DeleteInterface ¶
func (sc *ServiceClient) DeleteInterface(universeID core.ID, name string) error
func (*ServiceClient) DeleteModel ¶
func (sc *ServiceClient) DeleteModel(universeID core.ID, name string) error
func (*ServiceClient) GetComponent ¶
func (sc *ServiceClient) GetComponent(componentID core.ID) (Component, error)
func (*ServiceClient) GetComponents ¶
func (sc *ServiceClient) GetComponents(universe core.ID, componentType ComponentType, subType string) ([]Component, error)
func (*ServiceClient) GetEndpointInterfaces ¶
func (*ServiceClient) GetFlexView ¶
func (sc *ServiceClient) GetFlexView(componentID core.ID) (FlexViewComponent, error)
func (*ServiceClient) GetLayerProfile ¶
func (sc *ServiceClient) GetLayerProfile(profileID core.ID) (system.LayerProfile, error)
func (*ServiceClient) GetUniverseCode ¶
func (sc *ServiceClient) GetUniverseCode(universeName string, language string) (string, error)
func (*ServiceClient) GetUniverseJSONSchema ¶
func (sc *ServiceClient) GetUniverseJSONSchema(universeName string) (string, error)
func (*ServiceClient) GetWebView ¶
func (sc *ServiceClient) GetWebView(componentID core.ID) (WebViewComponent, error)
func (*ServiceClient) Info ¶
func (sc *ServiceClient) Info() (ServiceInfo, error)
func (*ServiceClient) LoadUniverse ¶
func (*ServiceClient) ResolveUniverse ¶
func (sc *ServiceClient) ResolveUniverse(name string) (core.ID, error)
func (*ServiceClient) SetToken ¶
func (sc *ServiceClient) SetToken(token string)
func (*ServiceClient) UpdateComponent ¶
func (*ServiceClient) UpdateEndpoint ¶
func (sc *ServiceClient) UpdateEndpoint(universeID core.ID, definition system.EndpointNode) (system.EndpointNode, error)
func (*ServiceClient) UpdateFlexView ¶
func (sc *ServiceClient) UpdateFlexView(componentID core.ID, definition *string) (FlexViewComponent, error)
func (*ServiceClient) UpdateModel ¶
func (*ServiceClient) UpdateUniverse ¶
func (*ServiceClient) UpdateWebView ¶
func (sc *ServiceClient) UpdateWebView(componentID core.ID, tag *string) (WebViewComponent, error)
type ServiceComponent ¶
type ServiceComponent struct {
Component
}
type ServiceInfo ¶
type ServiceInfo struct { // APIVersion represents the API version APIVersion string `json:"apiVersion"` // ServerVersion represents the version of the server ServerVersion string `json:"serverVersion"` // UnixTime contains the server time UnixTime int64 `json:"unixTime"` // UserID contains the user core.ID of the provided token UserID core.ID `json:"user"` // Permissions contains the permissions of the provided token Permissions []string `json:"permissions"` }
type UpdateAppRequest ¶
type UpdateComponentRequest ¶
type UpdateEndpointServiceRequest ¶
type UpdateEndpointServiceRequest struct { Name string `json:"name"` Definition system.EndpointNode `json:"definition"` }
type UpdateFlexViewRequest ¶
type UpdateFlexViewRequest struct {
Definition *string `json:"definition"`
}
type UpdateModelServiceRequest ¶
type UpdateModelServiceRequest struct {
Description *string `json:"description"`
}
type UpdateViewRequest ¶
type UpdateWebViewRequest ¶
type UpdateWebViewRequest struct {
Tag *string `json:"tag,omitempty"`
}
type ViewComponent ¶
type WebViewComponent ¶
type WebViewComponent struct { ViewComponent Tag string `json:"tag"` }
Click to show internal directories.
Click to hide internal directories.