Documentation
¶
Index ¶
- type App
- type AppPermission
- type AuditLog
- type Client
- func (c *Client) Delete(url string) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) Get(url string) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) GetEndpoint(endpoint string) string
- func (c *Client) Post(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) SetApi(api string)
- func (c *Client) SetToken(token string)
- type ClientConfig
- type ErrorResponse
- type Event
- type Login
- type Organization
- type OrganizationMember
- type Permission
- type Register
- type Stream
- type StreamExecutionRequest
- type Token
- type User
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.0.13
type App struct {
Id string `json:"_id,omitempty"`
Name string `json:"name,omitempty"`
Permissions []Permission `json:"permissions,omitempty"`
OrgnizationId string `json:"organizationId,omitempty"`
CreatorId string `json:"creatorId,omitempty"`
CreateDate int `json:"createDate,omitempty"` // UTC+0 unix timestamp
}
type AppPermission ¶ added in v0.0.13
type AppPermission string
const ( NONE AppPermission = "NONE" READ AppPermission = "READ" EXECUTE AppPermission = "EXECUTE" WRITE AppPermission = "WRITE" MANAGE AppPermission = "MANAGE" OWNER AppPermission = "OWNER" )
type AuditLog ¶ added in v0.0.9
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *ClientConfig) *Client
func (*Client) GetEndpoint ¶
type ClientConfig ¶
type ErrorResponse ¶
type ErrorResponse struct {
Code string `json:"code"`
Error string `json:"error"`
Message string `json:"message"`
}
ErrorReponse holds a code and a message parsed from an error resposne from the helmut.cloud platform
func (*ErrorResponse) ToString ¶ added in v0.0.7
func (e *ErrorResponse) ToString() string
type Event ¶ added in v0.0.13
type Organization ¶
type Organization struct {
Id string `json:"_id,omitempty"`
Name string `json:"name,omitempty"`
Creator User `json:"creator,omitempty"`
Company string `json:"company,omitempty"`
}
func (Organization) String ¶
func (o Organization) String() string
type OrganizationMember ¶
type OrganizationMember struct {
Id string `json:"_id,omitempty"`
OrganizationId string `json:"organizationId,omitempty"`
User User `json:"userDbRef,omitempty"`
Roles []string `json:"roles,omitempty"`
}
func (OrganizationMember) String ¶
func (o OrganizationMember) String() string
type Permission ¶ added in v0.0.13
type Permission struct {
UserId string `json:"userId,omitempty"`
Permission AppPermission `json:"permission,omitempty"`
}
func (Permission) String ¶ added in v0.0.13
func (p Permission) String() string
type Register ¶
type Stream ¶ added in v0.0.13
type Stream struct {
Id string `json:"_id,omitempty"`
Name string `json:"name,omitempty"`
EventId string `json:"eventId,omitempty"`
AppId string `json:"appId,omitempty"`
OrgnizationId string `json:"organizationId,omitempty"`
CreatorId string `json:"creatorId,omitempty"`
CreateDate int `json:"createDate,omitempty"` // UTC+0 unix timestamp
}
type StreamExecutionRequest ¶ added in v0.0.13
Click to show internal directories.
Click to hide internal directories.