Documentation
¶
Index ¶
- Constants
- func GetResourcesFromResourceRequirements(rr ResourceRequirements) map[string]interface{}
- 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 ContainerPort
- 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 HelmJobStage
- 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 ResourceRequirements
- type ResourcesDefinition
- type ResponsePayload
- type RevisionLogContext
- 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 StageMessageDetail
- type StorageDefinition
- type SubDomainMapping
- type Subdomain
- type SyncAppRequest
- type SyncAppResource
- type SyncAppResources
- type SyncAppResponse
- type SyncModuleRequest
- type SyncModuleResponse
- type SyncRevisionRequest
- type Tag
- type User
- type UserAccessToken
- type VolumeDefinition
- type VolumeMount
Constants ¶
View Source
const ( ErrorJobInfoType = "Error" InfoJobInfoType = "Info" )
View Source
const ( PipelineRunningStageStatus = "RUNNING" PipelineCompleteStageStatus = "COMPLETE" PipelineErrorStageStatus = "ERROR" )
View Source
const ( PipelinePackageStartedStatus = "PACKAGE_STARTED" PipelinePackageCompleteStatus = "PACKAGE_COMPLETE" PipelinePackageErrorStatus = "PACKAGE_ERROR" PipelineSubmitStartedStatus = "SUBMIT_STARTED" PipelineSubmitCompleteStatus = "SUBMIT_COMPLETE" PipelineSubmitErrorStatus = "SUBMIT_ERROR" PipelineBuildStartedStatus = "BUILD_STARTED" PipelineBuildCompleteStatus = "BUILD_COMPLETE" PipelineBuildErrorStatus = "BUILD_ERROR" PipelinePushingImageStartedStatus = "PUSHING_IMAGE_STARTED" PipelinePushingImageCompleteStatus = "PUSHING_IMAGE_COMPLETE" PipelinePushingImageErrorStatus = "PUSHING_IMAGE_ERROR" PipelineDeployStartedStatus = "DEPLOY_STARTED" PipelineDeployCompleteStatus = "DEPLOY_COMPLETE" PipelineDeployErrorStatus = "DEPLOY_ERROR" PipelinePodSpawningStartedStatus = "POD_SPAWNING_STARTED" PipelinePodSpawningCompleteStatus = "POD_SPAWNING_COMPLETE" PipelinePodSpawningErrorStatus = "POD_SPAWNING_ERROR" )
View Source
const ( PipelinePackageStage = "PACKAGE" PipelineSubmitStage = "SUBMIT" PipelineBuildStage = "BUILD" PipelinePushingImageStage = "PUSHING_IMAGE" PipelineDeployStage = "DEPLOY" PipelinePodSpawningStage = "POD_SPAWNING" )
View Source
const ( MessageType string = "MESSAGE" ErrorType string = "ERROR" ProgressPercentageType string = "PROGRESSPERCENTAGE" )
Variables ¶
This section is empty.
Functions ¶
func GetResourcesFromResourceRequirements ¶ added in v0.2.7
func GetResourcesFromResourceRequirements(rr ResourceRequirements) map[string]interface{}
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"`
Namespace string `json:"namespace"`
Alias string `json:"alias"`
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"`
UseOperator bool `json:"useOperator"`
}
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"`
Operator bool `yaml:"operator"`
}
func ConvertCrdToLyridDefinition ¶ added in v0.2.7
func ConvertCrdToLyridDefinition(appName string, crd AppDeploymentSpec) AppDefinition
type AppDeploymentSpec ¶ added in v0.2.5
type AppDeploymentSpec struct {
Image string `json:"image"`
Replicas int32 `json:"replicas"`
Ports []ContainerPort `json:"ports,omitempty"`
Resources ResourceRequirements `json:"resources,omitempty"`
VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"`
}
func ConvertLyridDefinitionToCrd ¶ added in v0.2.7
func ConvertLyridDefinitionToCrd(dockerImage string, d AppDefinition) (*AppDeploymentSpec, error)
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"`
PublicURL *bool `yaml:"publicURL"`
}
type ContainerPort ¶ added in v0.2.7
type ContainerPort corev1.ContainerPort
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 FunctionCode struct {
ID string `json:"id"`
FunctionID string `json:"functionId"`
TargetFramework string `json:"targetFramework"`
CreationTime time.Time `json:"creationTime"`
CodeUri string `json:"codeUri"`
ImageUri string `json:"imageUri"`
Architectures []string `json:"architectures"`
ArtifactSizeByte int64 `json:"artifactSizeByte"`
}
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 HelmJobStage ¶ added in v0.2.6
type HelmJobStage uint
const ( HelmSubmit HelmJobStage = iota HelmTemplating HelmLint HelmExecute )
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"`
Architectures []string `yaml:"architectures" json:"architectures"`
Description string `yaml:"description"`
Web string `yaml:"web"`
BuildStep string `yaml:"buildStep"`
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"`
ImageUri string `json:"imageUri"`
}
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 ResourceRequirements ¶ added in v0.2.7
type ResourceRequirements corev1.ResourceRequirements
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 RevisionLogContext ¶ added in v0.3.0
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 StageDefinition ¶
type StageDefinition struct {
Status string `json:"status"`
Stages map[string]*StageLogs `json:"stages"`
}
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 `json:"targetPlatform"`
TargetRegion string `json:"targetRegion"`
Status string `json:"status"`
JobID string `json:"jobId"`
Messages []*StageMessage `json:"messages"`
}
func (*StageLog) AppendMessage ¶
func (log *StageLog) AppendMessage(message *StageMessage)
func (*StageLog) SetStageStatus ¶
type StageLogs ¶
type StageLogs struct {
Logs []StageLog `json:"logs"`
}
func (*StageLogs) CreateStageLog ¶
type StageMessage ¶
type StageMessage struct {
Time time.Time `json:"time"`
Severity string `json:"severity"`
Message string `json:"message"`
Detail StageMessageDetail `json:"detail"`
}
type StageMessageDetail ¶ added in v0.3.0
type StorageDefinition ¶
type SubDomainMapping ¶ added in v0.0.11
type SyncAppRequest ¶ added in v0.2.7
type SyncAppRequest struct {
AppName string `json:"appName"`
AppNamespace string `json:"appNamespace"`
Replicas int32 `json:"replicas"`
Ports []ContainerPort `json:"ports"`
Resources SyncAppResources `json:"resources"`
VolumeMounts VolumeMount `json:"volumeMounts"`
InstanceID string `json:"instanceId"`
ActiveRevisionId string `json:"activeRevisionId"`
DeploymentEndpointDomain string `json:"deploymentEndpointDomain"`
}
type SyncAppResource ¶ added in v0.2.7
type SyncAppResources ¶ added in v0.2.7
type SyncAppResources struct {
Limits SyncAppResource `json:"limits"`
Requests SyncAppResource `json:"requests"`
}
type SyncAppResponse ¶ added in v0.2.7
type SyncAppResponse struct {
App App `json:"app,omitempty"`
AppDefinition AppDefinition `json:"appDefinition,omitempty"`
AppDeploymentSpec AppDeploymentSpec `json:"appDeploymentSpec,omitempty"`
Module Module `json:"module,omitempty"`
ModuleDefinition ModuleDefinition `json:"moduleDefinition,omitempty"`
ModuleRevision ModuleRevision `json:"moduleRevision,omitempty"`
Subdomain Subdomain `json:"subdomain,omitempty"`
Function Function `json:"function,omitempty"`
FunctionCode FunctionCode `json:"functionCode,omitempty"`
DeploymentEndpoint DeploymentEndpoint `json:"deploymentEndpoint,omitempty"`
}
type SyncModuleRequest ¶ added in v0.2.7
type SyncModuleRequest struct {
AppName string `json:"appName"`
AppNamespace string `json:"appNamespace"`
Replicas int32 `json:"replicas"`
Ports []ContainerPort `json:"ports"`
Resources SyncAppResources `json:"resources"`
VolumeMounts VolumeMount `json:"volumeMounts"`
InstanceID string `json:"instanceId"`
ActiveRevisionId string `json:"activeRevisionId"`
ModuleId string `json:"moduleId"`
ModuleDescription string `json:"moduleDescription"`
ModuleLanguage string `json:"moduleLanguage"`
ModuleName string `json:"moduleName"`
ModuleWeb string `json:"moduleWeb"`
}
type SyncModuleResponse ¶ added in v0.2.7
type SyncModuleResponse struct {
AppDefinition AppDefinition `json:"appDefinition,omitempty"`
AppDeploymentSpec AppDeploymentSpec `json:"appDeploymentSpec,omitempty"`
Module Module `json:"module,omitempty"`
ModuleDefinition ModuleDefinition `json:"moduleDefinition,omitempty"`
ModuleRevision ModuleRevision `json:"moduleRevision,omitempty"`
Subdomain Subdomain `json:"subdomain,omitempty"`
Function Function `json:"function,omitempty"`
FunctionCode FunctionCode `json:"functionCode,omitempty"`
DeploymentEndpoint DeploymentEndpoint `json:"deploymentEndpoint,omitempty"`
}
type SyncRevisionRequest ¶ added in v0.2.7
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
type VolumeMount ¶ added in v0.2.7
type VolumeMount corev1.VolumeMount
Click to show internal directories.
Click to hide internal directories.