Documentation ¶
Index ¶
- type Account
- type AccountTierEnum
- type AdditionLink
- type AddressName
- type App
- type AppDefinition
- type AppDeploymentSpec
- type Artifact
- type Attribute
- type AutoScaleConfig
- type BuildTag
- type Certificate
- type CloudCredential
- type CloudRegionDefinition
- type CloudVendor
- type CloudVendorDefinition
- type ConfigDefinition
- type CustomDomain
- type CustomDomainStatusEnum
- type DatabaseDefinition
- type DeployedService
- type DeploymentEndpoint
- type ErrorIncident
- type FrameworkDefinition
- type Function
- type FunctionCode
- type FunctionDefinition
- type GlobalRegionDefinition
- type HarborClient
- func (c *HarborClient) GetProject(projectName string) ([]byte, error)
- func (c *HarborClient) GetProjectRepositories(projectName string) ([]byte, error)
- func (c *HarborClient) GetRepository(projectName, repositoryName string) ([]byte, error)
- func (c *HarborClient) GetRepositoryArtifacts(projectName, repositoryName, tag string) (*[]Artifact, error)
- func (c *HarborClient) ListProjects() ([]byte, error)
- type IHarborClient
- type Job
- type JobInfo
- type JobStatusEnum
- type KVPairStandard
- type LBTypeEnum
- type Link
- type LngLatGeo
- type LocationDescription
- type LyridFunction
- type LyridUser
- type Module
- type ModuleBuild
- type ModuleDefinition
- type ModuleRevision
- type ObjectStorageDefinition
- type OnboardVegaRequest
- type OpenStackInfrastructureClient
- type Policy
- type PolicyDefinition
- type PortDefinition
- type ProvisionClusterRequest
- type PublishedApp
- type Query
- type QueryAttribute
- type QueryFilter
- type RequestPayload
- type ResourceList
- type ResourcesDefinition
- type ResponsePayload
- type SentryClient
- func (c *SentryClient) DoHttpRequest(method, url string, request interface{}) (*http.Response, error)
- func (c *SentryClient) GetIssueByTransactionID(transactionId string) (*http.Response, error)
- func (c *SentryClient) GetIssuesList() (*http.Response, error)
- func (c *SentryClient) ResolveIssue(issueId string) (*http.Response, error)
- type SentryIssue
- type SortAttribure
- type SpecDefinition
- type StageDefinition
- type StageLog
- type StageLogs
- type StageMessage
- type StorageDefinition
- type SubDomainMapping
- type Subdomain
- type Tag
- type User
- type UserAccessToken
- type VolumeDefinition
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 AdditionLink ¶ added in v0.2.1
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"` RelatedVega string `json:"relatedVega"` CreatedBy string `json:"createdBy" binding:"required"` Description string `json:"description"` LastActivity time.Time `json:"lastActivity"` LastUpdate time.Time `json:"lastUpdate"` GitURL string `json:"gitUrl"` DistributedRegion bool `json:"distributedRegion"` IsDeleted bool `json:"isDeleted"` }
type AppDefinition ¶
type AppDefinition struct { Name string `yaml:"name"` Description string `yaml:"description"` IgnoreFiles string `yaml:"ignoreFiles"` Modules []ModuleDefinition `yaml:"modules"` Database DatabaseDefinition `yaml:"database"` ObjectStorage ObjectStorageDefinition `yaml:"objectStorage"` Resources []ResourcesDefinition `yaml:"resources"` Spec []SpecDefinition `yaml:"spec"` }
type AppDeploymentSpec ¶ added in v0.2.5
type AppDeploymentSpec struct { Image string `json:"image"` Replicas int32 `json:"replicas"` BearerToken string `json:"bearerToken,omitempty"` RevisionId string `json:"revisionId,omitempty"` Ports []corev1.ContainerPort `json:"ports,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` }
type Artifact ¶ added in v0.2.1
type Artifact struct { ID int `json:"id"` Accessories interface{} `json:"accessories"` AdditionLinks AdditionLink `json:"addition_links"` Digest string `json:"digest"` ExtraAttrs Attribute `json:"extra_attrs"` Icon string `json:"icon"` Labels interface{} `json:"labels"` ManifestMediaType string `json:"manifest_media_type"` MediaType string `json:"media_type"` ProjectID int `json:"project_id"` PullTime *time.Time `json:"pull_time"` PushTime *time.Time `json:"push_time"` RepositoryID int `json:"repository_id"` Size uint64 `json:"size"` Tags []BuildTag `json:"tags"` Type string `json:"type"` }
type AutoScaleConfig ¶ added in v0.1.2
type Certificate ¶ added in v0.0.11
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 ConfigDefinition ¶ added in v0.1.0
type ConfigDefinition struct { Instance string `yaml:"instance"` RegionId string `yaml:"regionId"` Distributed bool `yaml:"distributed"` Scale *AutoScaleConfig `yaml:"scale"` }
type CustomDomain ¶ added in v0.0.11
type CustomDomain struct { Id string `json:"id" binding:"required"` Name string `json:"name" binding:"required"` AccountId string `json:"accountId" binding:"required"` Subdomains []SubDomainMapping `json:"subdomains" binding:"required"` Redirect bool `json:"redirect" binding:"required"` LBType LBTypeEnum `json:"lbType" binding:"required"` Status CustomDomainStatusEnum `json:"status" binding:"required"` Certificates []Certificate `json:"certificates" binding:"required"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type CustomDomainStatusEnum ¶ added in v0.0.11
type CustomDomainStatusEnum uint
const ( Added CustomDomainStatusEnum = iota Valid )
type DatabaseDefinition ¶ added in v0.0.8
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"` CodeIDs []string `json:"codeIds"` 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"` Namespace string `json:"namespace"` RelatedVega string `json:"relatedvega"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func (*DeploymentEndpoint) GetInitialConsumptionUnit ¶ added in v0.0.3
func (deployment *DeploymentEndpoint) GetInitialConsumptionUnit() int64
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 HarborClient ¶ added in v0.2.0
func (*HarborClient) GetProject ¶ added in v0.2.0
func (c *HarborClient) GetProject(projectName string) ([]byte, error)
func (*HarborClient) GetProjectRepositories ¶ added in v0.2.0
func (c *HarborClient) GetProjectRepositories(projectName string) ([]byte, error)
func (*HarborClient) GetRepository ¶ added in v0.2.0
func (c *HarborClient) GetRepository(projectName, repositoryName string) ([]byte, error)
func (*HarborClient) GetRepositoryArtifacts ¶ added in v0.2.0
func (c *HarborClient) GetRepositoryArtifacts(projectName, repositoryName, tag string) (*[]Artifact, error)
func (*HarborClient) ListProjects ¶ added in v0.2.0
func (c *HarborClient) ListProjects() ([]byte, error)
type IHarborClient ¶ added in v0.2.0
type IHarborClient interface { ListProjects() ([]byte, error) GetProject(projectName string) ([]byte, error) GetProjectRepositories(projectName string) ([]byte, error) GetRepository(projectName, repositoryName string) ([]byte, error) GetRepositoryArtifacts(projectName, repositoryName, tag string) (*[]Artifact, error) }
func NewHarborClient ¶ added in v0.2.0
func NewHarborClient(baseURL, username, password string) IHarborClient
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"` RetryJobType string `json:"retryJobType"` }
type JobStatusEnum ¶
type JobStatusEnum uint
const ( Submitting JobStatusEnum = iota Submitted Queued Running Completed Error Warning Cancelled Finished TimedOut )
type KVPairStandard ¶ added in v0.2.4
type LBTypeEnum ¶ added in v0.0.11
type LBTypeEnum uint
const ( Failover LBTypeEnum = iota RoundRobin Weighted )
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 { ID string `json:"id"` Name string `yaml:"name"` Language string `yaml:"language"` Description string `yaml:"description"` Web string `yaml:"web"` HidePublicURL bool `yaml:"hidePublicURL"` ProjectFolder string `yaml:"projectFolder"` PrebuildScript string `yaml:"prebuildScript"` Config ConfigDefinition `yaml:"config"` Functions []FunctionDefinition `yaml:"functions"` Volumes []VolumeDefinition `yaml:"volumes"` Ports []PortDefinition `yaml:"ports"` Resources ResourcesDefinition `json:"resources"` CustomLabels []KVPairStandard `yaml:"customLabels"` LastActivity time.Time `json:"lastActivity"` LastUpdate time.Time `json:"lastUpdate"` }
func (*ModuleDefinition) GetFileExtension ¶
func (definition *ModuleDefinition) GetFileExtension() string
type ModuleRevision ¶
type ModuleRevision struct { ID string `json:"id"` ModuleID string `json:"moduleId"` CodeUri string `json:"codeUri"` Title string `json:"title"` CreatedBy string `json:"createdBy"` CreationTime time.Time `json:"creationTime"` IsActive bool `json:"isActive"` IsLastKnown bool `json:"isLastKnown"` //Tags []string `json:"tags"` SubmitSizeByte int64 `json:"submitSizeByte"` Pipeline *StageDefinition `json:"pipeline"` }
type ObjectStorageDefinition ¶ added in v0.0.8
type ObjectStorageDefinition struct {
Alias string `yaml:"alias"`
}
type OnboardVegaRequest ¶ added in v0.1.7
type OnboardVegaRequest struct { UUID string `json:"uuid"` VegaTag string `json:"vegaTag"` XVegaTag string `json:"xVegaTag"` VegaId string `json:"vegaId"` JoinToken string `json:"joinToken"` VegaHostName string `json:"vegaHostname"` Prometheus string `json:"prometheus"` VegaUseSecure string `json:"vegaUseSecure"` Ingress string `json:"ingress"` LyridNamespace string `json:"lyridNamespace"` VegaHelmChartLocation string `json:"vegaHelmChartLocation"` XVegaHelmChartLocation string `json:"xVegaHelmChartLocation"` UserToken string `json:"userToken"` VegaName string `json:"vegaName"` MongoDbUrl string `json:"mongoDbUrl"` RedisEndpoint string `json:"redisEndpoint"` RedisPassword string `json:"redisPassword"` RedisDbNo string `json:"redisDbNo"` MessagingEndpoint string `json:"messagingEndpoint"` MessagingPassword string `json:"messagingPassword"` MessagingDbNo string `json:"messagingDbNo"` RegistryEndpoint string `json:"registryEndpoint"` RegistryPort string `json:"registryPort"` RegistryUsername string `json:"registryUsername"` RegistryPassword string `json:"registryPassword"` RegistrySecure string `json:"registrySecure"` ClusterName string `json:"clusterName"` ConfigAutoscalerUrl string `json:"configAutoscalerUrl"` ConfigDomainUrl string `json:"configDomainUrl"` LyridSaUrl string `json:"lyridSaUrl"` LyridSaConfigUrl string `json:"lyridSaConfigUrl"` IngressValuesUrl string `json:"ingressValuesUrl"` LyraToken string `json:"lyraToken"` VegaPort uint `json:"vegaPort"` VegaEngineId string `json:"engineId"` VegaVendorShortName string `json:"vegaVendorShortName"` VegaRegionId string `json:"vegaRegionId"` UserClusterSettingId string `json:"userClusterSettingId"` AccountId string `json:"accountId"` }
type OpenStackInfrastructureClient ¶ added in v0.1.7
type OpenStackInfrastructureClient struct { CloudsYaml string `json:"cloudsYaml"` NetworkEndpoint string `json:"networkEndpoint"` LoadBalancerEndpoint string `json:"loadBalancerEndpoint"` DnsNameServers string `json:"dnsNameServers"` ExternalNetworkId string `json:"externalNetworkId"` SshKeyName string `json:"sshKeyName"` FailureDomain string `json:"failureDomain"` IgnoreVolumeAZ bool `json:"ignoreVolumeAz"` }
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 PortDefinition ¶ added in v0.0.7
type ProvisionClusterRequest ¶ added in v0.1.7
type ProvisionClusterRequest struct { Id string `json:"id"` InfrastructureProvider string `json:"infrastructureProvider"` InfrastructureClient map[string]interface{} `json:"infrastructureClient"` // cloudsYaml, flavor, etc KubernetesVersion string `json:"kubernetesVersion"` ClusterName string `json:"clusterName"` ControlPlaneMachineFlavor string `json:"controlPlaneMachineFlavor"` ControlPlaneMachineCount float64 `json:"controlPlaneMachineCount"` WorkerMachineFlavor string `json:"workerMachineFlavor"` WorkerMachineCount float64 `json:"workerMachineCount"` ImageName string `json:"imageName"` NodeCidr string `json:"nodeCidr"` }
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 ResourceList ¶ added in v0.2.5
type ResourcesDefinition ¶ added in v0.2.5
type ResourcesDefinition struct { Cpu string `yaml:"cpu"` Memory string `yaml:"memory"` Requests ResourceList `yaml:"requests"` Limits ResourceList `yaml:"limits"` }
type ResponsePayload ¶
type SentryClient ¶ added in v0.2.5
type SentryClient struct { DSN string `json:"dsn"` APIBaseURL string `json:"apiBaseUrl"` AuthToken string `json:"authToken"` }
func NewSentryClient ¶ added in v0.2.5
func NewSentryClient(dsn, authToken string) *SentryClient
func (*SentryClient) DoHttpRequest ¶ added in v0.2.5
func (c *SentryClient) DoHttpRequest(method, url string, request interface{}) (*http.Response, error)
func (*SentryClient) GetIssueByTransactionID ¶ added in v0.2.5
func (c *SentryClient) GetIssueByTransactionID(transactionId string) (*http.Response, error)
func (*SentryClient) GetIssuesList ¶ added in v0.2.5
func (c *SentryClient) GetIssuesList() (*http.Response, error)
func (*SentryClient) ResolveIssue ¶ added in v0.2.5
func (c *SentryClient) ResolveIssue(issueId string) (*http.Response, error)
type SentryIssue ¶ added in v0.2.5
type SortAttribure ¶
type SpecDefinition ¶ added in v0.2.5
type SpecDefinition struct {
Replica string `yaml:"replica"`
}
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 SubDomainMapping ¶ added in v0.0.11
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"` }
type VolumeDefinition ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.