Documentation ¶
Index ¶
- type Account
- type AccountTierEnum
- type AddressName
- type App
- type AppDefinition
- type CloudCredential
- type CloudRegionDefinition
- type CloudVendor
- type CloudVendorDefinition
- type DeployedService
- type DeploymentEndpoint
- type ErrorIncident
- type FrameworkDefinition
- type Function
- type FunctionCode
- type FunctionDefinition
- type GlobalRegionDefinition
- type Job
- type JobInfo
- type JobStatusEnum
- type LngLatGeo
- type LocationDescription
- type LyridFunction
- type LyridUser
- type Module
- type ModuleBuild
- type ModuleDefinition
- type ModuleRevision
- type Policy
- type PolicyDefinition
- type PublishedApp
- type Query
- type QueryAttribute
- type QueryFilter
- type RequestPayload
- type ResponsePayload
- type SortAttribure
- type StageDefinition
- type StageLog
- type StageLogs
- type StageMessage
- type StorageDefinition
- type Subdomain
- type Tag
- type User
- type UserAccessToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id string `json:"id"` Name string `json:"name" binding:"required"` Tier AccountTierEnum `json:"tier"` TrialUsed bool `json:"trialUsed"` CreatedOn time.Time `json:"createdOn"` CreatedBy string `json:"createdBy"` }
func (*Account) GetBucketName ¶
func (*Account) GetS3BucketName ¶
type AccountTierEnum ¶ added in v0.0.2
type AccountTierEnum uint
const ( Basic AccountTierEnum = iota Free ProTrial Pro Enterprise )
type AddressName ¶
type App ¶
type App struct { ID string `json:"id" binding:"required"` AccountId string `json:"accountId" binding:"required"` Name string `json:"name" binding:"required"` CreatedBy string `json:"createdBy" binding:"required"` Description string `json:"description"` LastActivity time.Time `json:"lastActivity"` LastUpdate time.Time `json:"lastUpdate"` }
type AppDefinition ¶
type AppDefinition struct { Name string `yaml:"name"` Description string `yaml:"description"` Modules []ModuleDefinition `yaml:"modules"` }
type CloudCredential ¶
type CloudCredential struct { Id string `json:"id" binding:"required"` KeyId string `json:"keyId" binding:"required"` VendorID CloudVendor `json:"vendorId" binding:"required"` RelatedAccount string `json:"relatedAccount" binding:"required"` CreationTime time.Time `json:"creationTime" binding:"required"` UseCount int `json:"useCount" binding:"required"` Credential []byte `json:"credential" binding:"required"` }
type CloudRegionDefinition ¶
type CloudRegionDefinition struct { ID string `json:"id" binding:"required"` VendorID CloudVendor `json:"vendorId" binding:"required"` RegionID string `json:"regionId" binding:"required"` Type string `json:"type" binding:"required"` Location *LngLatGeo `json:"location" binding:"required"` Framework FrameworkDefinition `json:"framework" binding:"required"` Storage StorageDefinition `json:"storage" binding:"required"` }
type CloudVendor ¶
type CloudVendor int
const ( AWS CloudVendor = 1 + iota GCP LYR )
func (CloudVendor) String ¶
func (c CloudVendor) String() string
type CloudVendorDefinition ¶
type CloudVendorDefinition struct { VendorID CloudVendor `json:"vendorId" binding:"required"` Name string `json:"name" binding:"required"` ShortName string `json:"shortName" binding:"required"` ParentCompany string `json:"parentCompany" binding:"required"` ImageUrl string `json:"imageUrl" binding:"required"` }
type DeployedService ¶
type DeployedService struct { Name string `json:"name" binding:"required"` Payload interface{} `json:"payload" binding:"required"` }
type DeploymentEndpoint ¶
type DeploymentEndpoint struct { ID string `json:"id" binding:"required"` CodeID string `json:"codeId" binding:"required"` Name string `json:"name" binding:"required"` Type string `json:"type" binding:"required"` VendorID CloudVendor `json:"vendorId" binding:"required"` RegionID string `json:"regionId" binding:"required"` Endpoint string `json:"endpoint" binding:"required"` Memory string `json:"memory" binding:"required"` Timeout time.Duration `json:"duration" binding:"required"` Metadata string `json:"metadata"` }
type ErrorIncident ¶
type ErrorIncident struct { IncidentTime time.Time DeploymentID string Level string Message string }
func (*ErrorIncident) New ¶
func (e *ErrorIncident) New() error
type FrameworkDefinition ¶
type FunctionCode ¶
type FunctionDefinition ¶
type GlobalRegionDefinition ¶
type Job ¶
type Job struct { ID string `json:"id" binding:"required"` AccountId string `json:"accountId" binding:"required"` Type string `json:"type" binding:"required"` Status JobStatusEnum `json:"status" binding:"required"` Subject string `json:"subject"` CreationTime time.Time `json:"creationTime"` LastUpdateTime time.Time `json:"lastUpdateTime"` Payload string `json:"payload"` }
type JobStatusEnum ¶
type JobStatusEnum uint
const ( Submitting JobStatusEnum = iota Submitted Queued Running Completed Error Warning Cancelled Finished TimedOut )
type LngLatGeo ¶
type LngLatGeo struct { Longitute float64 `json:"longitude"` Latitude float64 `json:"latitude"` Address *LocationDescription `json:"address"` }
type LocationDescription ¶
type LocationDescription struct { City AddressName `json:"city"` Country AddressName `json:"country"` StateProvince AddressName `json:"stateProvince"` }
type LyridFunction ¶
type LyridUser ¶
type LyridUser struct { Id string `json:"id" binding:"required"` Name string `json:"name"` Email string `json:"email"` EmailVerified bool `json:"emailVerified"` Roles []string `json:"roles"` RelatedRoles []string `json:"relatedRoles` RelatedAccounts []string `json:"relatedAccounts` BetaAccess bool `json:"betaAccess"` CurrentAccount string `json:"currentAccount"` DefaultAccount string `json:"defaultAccount"` LastUpdate time.Time `json:"lastUpdate"` }
type Module ¶
type Module struct { ID string `json:"id" binding:"required"` AppId string `json:"appId" binding:"required"` Name string `json:"name" binding:"required"` Language string `json:"language" binding:"required"` Web string `json:"web"` Description string `json:"description"` Tags []string `json:"tags"` CreatedBy string `json:"createdBy" binding:"required"` LastActivity time.Time `json:"lastActivity"` LastUpdate time.Time `json:"lastUpdate"` }
type ModuleBuild ¶
type ModuleDefinition ¶
type ModuleDefinition struct { Name string `yaml:"name"` Language string `yaml:"language"` Description string `yaml:"description"` Web string `yaml:"web"` ProjectFolder string `yaml:"projectFolder"` // currently only used inside dotnet core project only, but technically this works on other languages PrebuildScript string `yaml:"prebuildScript"` Functions []FunctionDefinition `yaml:"functions"` }
func (*ModuleDefinition) GetFileExtension ¶
func (definition *ModuleDefinition) GetFileExtension() string
type ModuleRevision ¶
type Policy ¶
type Policy struct { Id string `json:"id"` LabelName string `json:"labelName"` Description string `json:"description"` PolicyType string `json:"policyType"` ValueType string `json:"valueType"` DefaultValue interface{} `json:"defaultValue"` CurrentValue interface{} `json:"currentValue"` PossibleValues []interface{} `json:"possibleValues"` Visibility string `json:"visibility"` }
func (*Policy) ValidateValue ¶
type PolicyDefinition ¶
type PublishedApp ¶
type PublishedApp struct { ID string `json:"globalId"` Name string `json:"name"` Version string `json:"version"` Visibility string `json:"visibility"` Tier string `json:"tier"` ImageUrl string `json:"imageUrl"` SupportUrl string `json:"supportUrl"` TermUrl string `json:"termUrl"` TagIds []string `json:"tagids"` CreatedBy string `json:"createdby"` CreatedTime time.Time `json:"createTime"` LastUpdate time.Time `json:"lastUpdate"` }
type Query ¶
type Query struct { Filters []QueryFilter `json:"filters"` Operation string `json:boolOpt` Attribute *QueryAttribute `json:"attribute"` }
type QueryAttribute ¶
type QueryAttribute struct { Skip int64 `json:"skip"` Take int64 `json:"take"` ColumnSort []SortAttribure `json:"sort"` }
func NewQueryAttribute ¶
func NewQueryAttribute(skip int64, take int64, columnSort []SortAttribure) *QueryAttribute
type QueryFilter ¶
type RequestPayload ¶
type RequestPayload struct { Headers http.Header `json:"multiValueHeaders"` Path string `json:"path"` RawQuery string `json:"rawQuery"` QueryStringParameters map[string]string `json:"queryStringParameters"` HttpMethod string `json:"httpMethod"` RequestContext map[string]interface{} `json:"requestContext"` Body []byte `json:"body"` IsBase64Encoded bool `json:"isBase64Encoded"` }
func (*RequestPayload) ToQuery ¶
func (request *RequestPayload) ToQuery() string
type ResponsePayload ¶
type SortAttribure ¶
type StageDefinition ¶
func NewStageDefinition ¶
func NewStageDefinition() *StageDefinition
func (*StageDefinition) CreateStage ¶
func (definition *StageDefinition) CreateStage(stage string)
func (*StageDefinition) GetStage ¶
func (definition *StageDefinition) GetStage(stage string) *StageLogs
type StageLog ¶
type StageLog struct { TargetPlatform string TargetRegion string Status string JobID string Messages []*StageMessage }
func (*StageLog) AppendMessage ¶
func (log *StageLog) AppendMessage(message *StageMessage)
func (*StageLog) SetStageStatus ¶
type StorageDefinition ¶
type UserAccessToken ¶
type UserAccessToken struct { Selected string Key string `json:"key" binding:"required"` Secret string `json:"secret" binding:"required"` Token string `json:"token" binding:"required"` IsValid bool `json:"isValid" binding:"required"` CreationTime time.Time `json:"creationTime"` LastActivity time.Time `json:"lastActivity"` }
Click to show internal directories.
Click to hide internal directories.