model

package
v1.1.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType string

type BindingModel added in v0.0.5

type BindingModel struct {
	Source          string `json:"source"`
	VHost           string `json:"vhost"`
	RoutingKey      string `json:"routingKey"`
	Destination     string `json:"destination"`
	DestinationType string `json:"destinationType"`
}

type Certificate

type Certificate struct {
	Id          string      `json:"id"`
	DomainName  string      `json:"domainName"`
	Name        string      `json:"name"`
	Provider    string      `json:"provider"`
	ExpiryTime  string      `json:"expirationTime"`
	CreatedBy   string      `json:"createdBy,omitempty"`
	OrgId       string      `json:"orgId"`
	Status      string      `json:"status"`
	Deployemnts interface{} `json:"resources,omitempty"`
}

type ClientAuth

type ClientAuth struct {
	ApiToken     string `json:"apiKey"`
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	AccessToken  string `json:"accessToken"`
	OrgId        string `json:"orgId"`
	OAuthAppType string `json:"oAuthAppType"`
	Username     string `json:"username"`
	Password     string `json:"password"`
}

ClientAuth -

type CloudAccount

type CloudAccount struct {
	Id             string   `json:"id"`
	Email          string   `json:"userEmail"`
	Name           string   `json:"name"`
	AccountType    string   `json:"accountType"`
	OrgId          string   `json:"orgId"`
	Shared         bool     `json:"shared"`
	Tags           []string `json:"tags"`
	DataPlaneCount int64    `json:"dataplanesCount"`
	Created        string   `json:"created"`
	CreatedBy      string   `json:"createdBy"`
	Modified       string   `json:"modified"`
	ModifiedBy     string   `json:"modifiedBy"`
	ManagementIp   string   `json:"managementIp"`
}

type Cluster

type Cluster struct {
	ID                   string           `json:"id,omitempty"`
	OrgId                string           `json:"orgId"`
	Name                 string           `json:"name"`
	ServiceType          string           `json:"serviceType"`
	Provider             string           `json:"provider"`
	InstanceSize         string           `json:"instanceSize"`
	Region               string           `json:"region"`
	Tags                 []string         `json:"tags"`
	Version              string           `json:"version"`
	Status               string           `json:"status"`
	DataPlaneId          string           `json:"dataPlaneId"`
	Metadata             *ClusterMetadata `json:"metadata"`
	Created              string           `json:"created"`
	LastUpdated          string           `json:"lastUpdated"`
	IsAuthorized         bool             `json:"isAuthorized,omitempty"`
	MaintenanceStartTime int64            `json:"maintenanceStartTime,omitempty"`
	MaintenanceEndTime   int64            `json:"maintenanceEndTime,omitempty"`
	UpgradeInProgress    bool             `json:"isUpgradeInProgress"`
	PauseUpdates         bool             `json:"pauseUpdates"`
}

Cluster -

type ClusterBackup added in v0.0.5

type ClusterBackup struct {
	Id                string `json:"id"`
	OrgId             string `json:"orgId"`
	Name              string `json:"name"`
	GeneratedName     string `json:"generatedName"`
	ClusterId         string `json:"clusterId"`
	ClusterName       string `json:"clusterName"`
	Provider          string `json:"provider"`
	TimeStarted       string `json:"timeStarted"`
	TimeCompleted     string `json:"timeCompleted"`
	Region            string `json:"region"`
	Status            string `json:"status"`
	ClusterVersion    string `json:"clusterVersion"`
	ServiceType       string `json:"serviceType"`
	DataPlaneId       string `json:"dataPlaneId"`
	Size              string `json:"size"`
	BackupRequestId   string `json:"backupRequestId"`
	BackupTriggerType string `json:"backupTriggerType"`
	Metadata          struct {
		ClusterName        string   `json:"clusterName"`
		ClusterSize        string   `json:"clusterSize"`
		BackupLocation     string   `json:"backupLocation"`
		Databases          []string `json:"databases"`
		PostgresExtensions []struct {
			Name    string `json:"name"`
			Version string `json:"version"`
		} `json:"postgresExtensions"`
	} `json:"metadata"`
}

type ClusterCountByService added in v0.0.4

type ClusterCountByService struct {
	Count       int64  `json:"count"`
	ServiceType string `json:"serviceType"`
}

type ClusterMetaData

type ClusterMetaData struct {
	Id                    string                       `json:"id"`
	Name                  string                       `json:"name"`
	Provider              string                       `json:"provider"`
	ServiceType           string                       `json:"serviceType"`
	Status                string                       `json:"status"`
	VHosts                []VhostModel                 `json:"vhosts,omitempty"`
	Queues                []QueueModel                 `json:"queues,omitempty"`
	Exchanges             []ExchangeModel              `json:"exchanges,omitempty"`
	Bindings              []BindingModel               `json:"bindings,omitempty"`
	Databases             []DatabaseModel              `json:"databases,omitempty"`
	PostgresExtensionData []PostgresExtensionDataModel `json:"postgresExtensionData,omitempty"`
}

type ClusterMetadata

type ClusterMetadata struct {
	ClusterName      string   `json:"clusterName,omitempty" tfsdk:"cluster_name"`
	ManagerUri       string   `json:"managerUri,omitempty" tfsdk:"manager_uri"`
	ConnectionUri    string   `json:"connectionUri,omitempty" tfsdk:"connection_uri"`
	ObjectStoreId    string   `json:"objectStoreId,omitempty" tfsdk:"object_storage_id"`
	MetricsEndpoints []string `json:"metricsEnpoints" tfsdk:"metrics_endpoints"`
}

type ClusterRestore added in v0.0.5

type ClusterRestore struct {
	Id                 string `json:"id"`
	Name               string `json:"name"`
	DataPlaneId        string `json:"dataPlaneId"`
	ServiceType        string `json:"serviceType"`
	BackupId           string `json:"backupId"`
	BackupName         string `json:"backupName"`
	TargetInstance     string `json:"targetInstance"`
	TargetInstanceName string `json:"targetInstanceName"`
}

type ClusterTargetVersionsResponse added in v0.0.7

type ClusterTargetVersionsResponse struct {
	ClusterId      string   `json:"clusterId"`
	Version        string   `json:"version"`
	TargetVersions []string `json:"targetVersions"`
}

type DataPlane

type DataPlane struct {
	Id            string   `json:"id"`
	Provider      string   `json:"provider"`
	Region        string   `json:"region,omitempty"`
	Name          string   `json:"name"`
	DataplaneName string   `json:"dataplaneName"`
	Version       string   `json:"version"`
	Tags          []string `json:"tags"`
	Status        string   `json:"status"`
	NodePoolType  string   `json:"nodePoolType"`
	Account       struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"account"`
	Upgradeable          bool   `json:"upgradeable"`
	AutoUpgrade          bool   `json:"autoUpgrade"`
	DataPlaneReleaseID   string `json:"dataPlaneReleaseID"`
	DataPlaneReleaseName string `json:"dataPlaneReleaseName"`
	Shared               bool   `json:"shared"`
	Created              string `json:"created"`
	Modified             string `json:"modified"`
	Certificate          struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"certificate"`
	ManagedDns              bool     `json:"managedDns"`
	DefaultPolicyName       string   `json:"defaultPolicyName"`
	StoragePolicies         []string `json:"storagePolicies"`
	BackupStoragePolicy     string   `json:"backupStoragePolicy"`
	Services                []string `json:"services"`
	LoggingUri              string   `json:"logging_uri"`
	InfraResourceType       string   `json:"infraResourceType"`
	DataPlaneOnControlPlane bool     `json:"dataPlaneOnControlPlane"`
	OrgId                   string   `json:"orgId,omitempty"`
}

type DataPlaneRegion

type DataPlaneRegion struct {
	Id        string   `json:"id"`
	Name      string   `json:"name"`
	ShortName string   `json:"shortName"`
	Regions   []string `json:"regions"`
}

type DatabaseModel added in v0.0.5

type DatabaseModel struct {
	Name     string        `json:"name"`
	Owner    string        `json:"owner"`
	Schemas  []SchemaModel `json:"schemas,omitempty"`
	Tables   []TableModel  `json:"tables,omitempty"`
	Routines []string      `json:"routines,omitempty"`
}

type DataplneCounts added in v0.0.4

type DataplneCounts struct {
	SharedDataplanes    int64 `json:"sharedDataplanes"`
	DedicatedDataplanes int64 `json:"dedicatedDataplanes"`
	HealthyDataplanes   int64 `json:"healthyDataplanes"`
	UnhealthyDataplanes int64 `json:"unhealthyDataplanes"`
	TotalDataplanes     int64 `json:"totalDataplanes"`
}

type Dns added in v0.0.4

type Dns struct {
	Id         string    `json:"id"`
	Domain     string    `json:"domain"`
	Name       string    `json:"name"`
	Provider   string    `json:"provider"`
	ServerList []Servers `json:"servers"`
}

type EligibleDataPlane added in v0.0.5

type EligibleDataPlane struct {
	Id                  string   `json:"id"`
	Provider            string   `json:"provider"`
	DataPlaneName       string   `json:"dataplaneName"`
	StoragePolicies     []string `json:"storagePolicies"`
	BackupStoragePolicy string   `json:"backupStoragePolicy"`
}

type ExchangeModel added in v0.0.5

type ExchangeModel struct {
	Name  string `json:"name"`
	VHost string `json:"vhost"`
}

type Extension added in v0.0.7

type Extension struct {
	Id          string            `json:"id"`
	Name        string            `json:"name"`
	ServiceType string            `json:"serviceType"`
	Description string            `json:"description"`
	Version     string            `json:"version"`
	Metadata    ExtensionMetadata `json:"metadata"`
}

type ExtensionMetadata added in v0.0.7

type ExtensionMetadata struct {
	Port string `json:"port"`
}

type HelmVersions added in v0.0.5

type HelmVersions struct {
	Id        string   `json:"id"`
	Name      string   `json:"releaseName"`
	IsEnabled bool     `json:"isEnabled"`
	Services  []string `json:"bundledServices"`
}

type InstanceType

type InstanceType struct {
	ID              string               `json:"id,omitempty"`
	ServiceType     string               `json:"serviceType"`
	InstanceSize    string               `json:"instanceSize"`
	SizeDescription string               `json:"instanceSizeDescription"`
	CPU             string               `json:"cpu"`
	Memory          string               `json:"memory"`
	Storage         string               `json:"storage"`
	Metadata        InstanceTypeMetadata `json:"metadata,omitempty"`
}

InstanceType -

type InstanceTypeList

type InstanceTypeList struct {
	InstanceTypes []InstanceType `json:"instanceTypes"`
}

type InstanceTypeMetadata

type InstanceTypeMetadata struct {
	MaxConnections string `json:"max_connections,omitempty"`
	Nodes          string `json:"nodes,omitempty"`
}

type LocalUser added in v0.0.4

type LocalUser struct {
	Id        string   `json:"id"`
	Username  string   `json:"username"`
	PolicyIds []string `json:"policyIds"`
}

type NetworkPorts

type NetworkPorts struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Port        int64  `json:"port"`
}

type NetworkSpec

type NetworkSpec struct {
	CIDR           string   `json:"cidr"`
	NetworkPortIds []string `json:"networkPortIds"`
}

type ObjectStorage

type ObjectStorage struct {
	Id              string `json:"id"`
	Name            string `json:"name"`
	BucketName      string `json:"bucketName"`
	Endpoint        string `json:"endpoint"`
	Region          string `json:"region"`
	AccessKeyId     string `json:"accessKeyId"`
	SecretAccessKey string `json:"secretAccessKey"`
	OrgId           string `json:"orgId"`
	CreatedBy       string `json:"createdBy"`
	ModifiedBy      string `json:"modifiedBy"`
	ExpirationTime  string `json:"expirationTime"`
}

type OrgHealthDetails added in v0.0.4

type OrgHealthDetails struct {
	TotalHealthyOrgsCount   int64 `json:"totalHealthyOrgsCount"`
	TotalOrgCount           int64 `json:"totalOrgCount"`
	TotalUnhealthyOrgsCount int64 `json:"totalUnhealthyOrgsCount"`
}

type PageInfo

type PageInfo struct {
	Number        int `json:"number"`
	Size          int `json:"size"`
	TotalElements int `json:"totalElements"`
	TotalPages    int `json:"totalPages"`
}

type PageQuery

type PageQuery struct {
	Index int    `schema:"page"`
	Size  int    `schema:"size"`
	Sort  string `schema:"sort,omitempty"`
}

type Paged

type Paged[T any] struct {
	Embedded map[string][]T `json:"_embedded"`
	Page     PageInfo       `json:"page"`
}

func (*Paged[T]) Get

func (p *Paged[T]) Get() *[]T

func (*Paged[T]) GetPage

func (p *Paged[T]) GetPage() *PageInfo

type Permissions

type Permissions struct {
	Name         string `json:"name"`
	PermissionId string `json:"permissionId"`
}

type PermissionsSpec

type PermissionsSpec struct {
	Resource    string         `json:"resource"`
	Permissions []*Permissions `json:"permissions"`
	Role        string         `json:"role"`
}

type Policy

type Policy struct {
	ID              string            `json:"id"`
	Name            string            `json:"name"`
	Description     string            `json:"description"`
	ServiceType     string            `json:"serviceType"`
	Updating        bool              `json:"updating"`
	ResourceIds     []string          `json:"resourceIds,omitempty"`
	PermissionsSpec []PermissionsSpec `json:"permissionsSpec,omitempty"`
	NetworkSpec     []*NetworkSpec    `json:"networkSpecs,omitempty"`
}

Policy base model for TDH Policy

type PostgresExtensionDataModel added in v0.0.5

type PostgresExtensionDataModel struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type QueueModel added in v0.0.5

type QueueModel struct {
	Name  string `json:"name"`
	VHost string `json:"vhost"`
}

type ResourceByService added in v0.0.4

type ResourceByService struct {
	DataPlaneName string `json:"dataPlaneName"`
	ServiceType   string `json:"serviceType"`
	Cpu           string `json:"cpu"`
	Memory        string `json:"memory"`
	Storage       string `json:"storage"`
}

type RoleMini

type RoleMini struct {
	RoleID string `json:"roleId"`
	Name   string `json:"name"`
}

type Roles

type Roles struct {
	Embedded struct {
		ServiceRoleDTO []struct {
			Roles []struct {
				RoleMini
				Description string `json:"description"`
			} `json:"roles"`
		} `json:"mdsServiceRoleDTOes"`
	} `json:"_embedded"`
}

type SchemaModel added in v0.0.5

type SchemaModel struct {
	Name   string       `json:"name"`
	Owner  string       `json:"owner"`
	Tables []TableModel `json:"tables,omitempty"`
}

type Servers added in v0.0.4

type Servers struct {
	Host       string `json:host`
	Port       int64  `json:port`
	Protocol   string `json: protocol`
	ServerType string `json: serverType`
}

type ServiceAccount

type ServiceAccount struct {
	Id     string   `json:"id"`
	Name   string   `json:"name"`
	Status string   `json:"status,omitempty"`
	Tags   []string `json:"tags"`
}

type ServiceAccountAuthCredentials

type ServiceAccountAuthCredentials struct {
	UserName   string                     `json:"username,omitempty"`
	Credential *ServiceAccountCredentials `json:"credential,omitempty"`
}

type ServiceAccountCreate

type ServiceAccountCreate struct {
	OAuthCredentials []*ServiceAccountAuthCredentials `json:"oauthCredentials,omitempty"`
}

type ServiceAccountCredentials

type ServiceAccountCredentials struct {
	ClientId     string `json:"clientId,omitempty"`
	ClientSecret string `json:"clientSecret,omitempty"`
	GrantType    string `json:"grantType,omitempty"`
	OrgId        string `json:"orgId,omitempty"`
}

type ServiceAccountOauthApp

type ServiceAccountOauthApp struct {
	AppId       string   `json:"appId"`
	AppType     string   `json:"appType"`
	Created     string   `json:"created"`
	CreatedBy   string   `json:"createdBy"`
	Description string   `json:"description"`
	Modified    string   `json:"modified"`
	ModifiedBy  string   `json:"modifiedBy"`
	TTLSpec     *TTLSpec `json:"ttlSpec"`
}

type ServiceRolePermissions

type ServiceRolePermissions struct {
	Description  string `json:"description"`
	Name         string `json:"name"`
	PermissionId string `json:"permissionId"`
}

type ServiceRoles

type ServiceRoles struct {
	Embedded struct {
		ServiceRoleDTO []struct {
			Roles []struct {
				RoleID      string                   `json:"roleId"`
				Name        string                   `json:"name"`
				Type        string                   `json:"type"`
				Permissions []ServiceRolePermissions `json:"permissions"`
				Description string                   `json:"description"`
			} `json:"roles"`
		} `json:"mdsServiceRoleDTOes"`
	} `json:"_embedded"`
}

type Smtp added in v0.0.4

type Smtp struct {
	Auth            string `json:"auth"`
	Tls             string `json:"tlsEnabled"`
	FromEmail       string `json:"from"`
	UserName        string `json:"username"`
	Host            string `json:"host"`
	Port            string `json:"port"`
	Password        string `json:"password,omitempty"`
	ConfirmPassword string `json:"confirmPassword,omitempty"`
}

type SreCustomerInfo added in v0.0.4

type SreCustomerInfo struct {
	Name          string `json:"name"`
	OrgName       string `json:"orgName"`
	ClusterStatus struct {
		Critical int64 `json:"critical"`
		Warning  int64 `json:"warning"`
		Healthy  int64 `json:"healthy"`
	} `json:"clusterStatus"`
	ClusterCounts       int64 `json:"clusterCounts"`
	CustomerClusterInfo []struct {
		ClusterId    string `json:"clusterId"`
		ClusterName  string `json:"clusterName"`
		InstanceSize string `json:"instanceSize"`
		Status       string `json:"status"`
		ServiceType  string `json:"serviceType"`
	} `json:"mdsCustomerClusterInfo,omitempty"`
	CustomerCumulativeStatus string   `json:"mdsCustomerCumulativeStatus"`
	Services                 []string `json:"services"`
	SreOrg                   bool     `json:"sreOrg"`
}

type StorageClass added in v0.0.5

type StorageClass struct {
	StorageClassName string `json:"storageClassName"`
	Provisioner      string `json:"provisioner"`
}

type TKC added in v0.0.5

type TKC struct {
	Name        string `json:"clusterName"`
	IsAvailable bool   `json:"isAvailable"`
	IsCpPresent bool   `json:"isCPPresent"`
	IsDpPresent bool   `json:"isDPPresent"`
}

type TTLSpec

type TTLSpec struct {
	Description string `json:"description,omitempty"`
	TimeUnit    string `json:"timeUnit"`
	TTL         int64  `json:"ttl"`
}

type TableModel added in v0.0.5

type TableModel struct {
	Name    string   `json:"name"`
	Type    string   `json:"type"`
	Columns []string `json:"columns,omitempty"`
}

type Task added in v0.0.4

type Task struct {
	Id          string   `json:"id"`
	TaskType    string   `json:"taskType"`
	Status      string   `json:"status"`
	DisplayName string   `json:"displayName,omitempty"`
	UiParams    UiParams `json:"uiParams"`
}

type TaskResponse

type TaskResponse struct {
	TaskId  string `json:"taskId"`
	Message string `json:"message"`
}

type TshirtSize

type TshirtSize struct {
	Name     string `json:"name"`
	Nodes    int64  `json:"nodes"`
	Provider string `json:"provider"`
	Storage  string `json:"storage"`
	Type     string `json:"type"`
}

type UiParams added in v0.0.4

type UiParams struct {
	ResourceId   string `json:"resourceId"`
	ResourceName string `json:"resourceName"`
	ServiceType  string `json:"serviceType"`
}

type User

type User struct {
	Id           string     `json:"id"`
	Email        string     `json:"email"`
	Name         string     `json:"name"`
	Status       string     `json:"status"`
	OrgRoles     []RoleMini `json:"orgRoles,omitempty"`
	ServiceRoles []RoleMini `json:"serviceRoles"`
	Tags         []string   `json:"tags"`
}

type VhostModel added in v0.0.5

type VhostModel struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL