zeropsRestApiClient

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package zeropsRestApiClient provides a client for the zerops rest api

Package zeropsRestApiClient provides a client for the zerops rest api

Package zeropsRestApiClient provides a client for the zerops rest api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsFilter

type EsFilter struct {
	Search []EsSearchItem `json:"search"`
}

type EsProject

type EsProject struct {
	Id          uuid.ProjectId         `json:"id"`
	ClientId    uuid.ClientId          `json:"clientId"`
	Name        types.String           `json:"name"`
	Description types.TextNull         `json:"description"`
	Status      enum.ProjectStatusEnum `json:"status"`
}

type EsProjectResponse

type EsProjectResponse struct {
	Limit     int64       `json:"limit"`
	Offset    int64       `json:"offset"`
	TotalHits int64       `json:"totalHits"`
	Items     []EsProject `json:"items"`
}

type EsSearchItem

type EsSearchItem struct {
	Name     string `json:"name"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type EsServiceStack

type EsServiceStack struct {
	Id                        uuid.ServiceStackId                `json:"id"`
	ProjectId                 uuid.ProjectId                     `json:"projectId"`
	ClientId                  uuid.ClientId                      `json:"clientId"`
	ServiceStackTypeId        stringId.ServiceStackTypeId        `json:"serviceStackTypeId"`
	ServiceStackTypeVersionId stringId.ServiceStackTypeVersionId `json:"serviceStackTypeVersionId"`
	Status                    enum.ServiceStackStatusEnum        `json:"status"`
	Name                      types.String                       `json:"name"`
	IsSystem                  types.Bool                         `json:"isSystem"`
	ServiceStackTypeInfo      EsServiceStackInfoJsonObject       `json:"serviceStackTypeInfo"`
}

type EsServiceStackInfoJsonObject

type EsServiceStackInfoJsonObject struct {
	ServiceStackTypeName        types.String                      `json:"serviceStackTypeName"`        // serviceStackTypeName - types.String
	ServiceStackTypeCategory    enum.ServiceStackTypeCategoryEnum `json:"serviceStackTypeCategory"`    // serviceStackTypeCategory - enum.ServiceStackTypeCategoryEnum
	ServiceStackTypeVersionName types.String                      `json:"serviceStackTypeVersionName"` // serviceStackTypeVersionName - types.String
}

type EsServiceStackResponse

type EsServiceStackResponse struct {
	Limit     int              `json:"limit"`
	Offset    int              `json:"offset"`
	TotalHits int              `json:"totalHits"`
	Items     []EsServiceStack `json:"items"`
}

type GetProjectsByClientResponse

type GetProjectsByClientResponse struct {
	// contains filtered or unexported fields
}

func (GetProjectsByClientResponse) Output

func (r GetProjectsByClientResponse) Output() (output EsProjectResponse, err error)

type GetServiceStackByProjectResponse

type GetServiceStackByProjectResponse struct {
	// contains filtered or unexported fields
}

func (GetServiceStackByProjectResponse) Output

type Handler

type Handler struct {
	sdk.Handler
	// contains filtered or unexported fields
}

func NewAuthorizedClient

func NewAuthorizedClient(token string, regionUrl string) *Handler

func (*Handler) GetProjectsByClient

func (h *Handler) GetProjectsByClient(
	ctx context.Context,
	clientId uuid.ClientId,
) (GetProjectsByClientResponse, error)

func (*Handler) GetServiceStackByProject

func (h *Handler) GetServiceStackByProject(
	ctx context.Context,
	projectId uuid.ProjectId,
	clientId uuid.ClientId,
) (GetServiceStackByProjectResponse, error)

Jump to

Keyboard shortcuts

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