control

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidRequestParameter = fmt.Errorf("invalid request parameter")
	ErrorBindRequestObject       = fmt.Errorf("could not bind request")
	ErrorFailedCast              = fmt.Errorf("failed to cast")
)

Functions

func GetAgentSessionClaims

func GetAgentSessionClaims(ctx echo.Context, tx excute.Preparer, dialect excute.SqlExcutor) (*sessionv3.ClientSessionPayload, error)

func GetContextValue

func GetContextValue(ctx context.Context, key ContextValueKey) interface{}

func GetServiceAuthorizationClaims

func GetServiceAuthorizationClaims(ctx echo.Context) (*auths.TenantAccessTokenClaims, error)

func HttpError

func HttpError(err error, code int) error

HttpError

func IsIncluded

func IsIncluded(a, b []string) bool

Is the slice B included in the A?

func NewService

func NewService(
	tmpl template.Template,
	now_time time.Time, body service.HttpReq_Service_create,

) ([]service.Service, []service.ServiceStatus)

func OK

func OK() interface{}

func ParamLog

func ParamLog(s string, i interface{}) []interface{}

func SHA1

func SHA1(s string) string

func SetContextValue

func SetContextValue(ctx context.Context, key ContextValueKey, v interface{}) context.Context

func TypeName

func TypeName(i interface{}) string

func ValidServiceInput

func ValidServiceInput(
	tmpl template.Template,
	now_time time.Time, body service.HttpReq_Service_create,

) (err error)

Types

type ContextValueKey

type ContextValueKey int
const (
	AgentSession ContextValueKey = iota
	ServiceClaims
)

type ControlVanilla

type ControlVanilla struct {
	*sql.DB
	// contains filtered or unexported fields
}

func NewVanilla

func NewVanilla(db *sql.DB, dialect excute.SqlExcutor) *ControlVanilla

func (ControlVanilla) AliveClusterSession

func (ctl ControlVanilla) AliveClusterSession(ctx echo.Context) error

@Description Alive Cluster Session @Security ServiceAuth @Accept json @Produce json @Tags manager/session @Router /manager/session/cluster/{cluster_uuid}/alive [get] @Param cluster_uuid path string true "Cluster Uuid" @Success 200 {object} sessions.Status

func (ControlVanilla) AuthAgent

func (ctl ControlVanilla) AuthAgent(ctx echo.Context) (err error)

@Description auth agent @Accept json @Produce json @Tags agent/auth @Router /agent/auth [post] @Param body body auths.HttpReqAuth true "HttpReqAuth" @Success 200 {string} ok @Header 200 {string} x-synapse-agent-token

func (ControlVanilla) CreateChannel

func (ctl ControlVanilla) CreateChannel(ctx echo.Context) (err error)

@Description Create a channel @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels [post] @Param object body v3.HttpReq_ManagedChannel_create true "HttpReq_ManagedChannel_create" @Success 200 {object} v3.HttpRsp_ManagedChannel

func (ControlVanilla) CreateChannelStatus

func (ctl ControlVanilla) CreateChannelStatus(ctx echo.Context) (err error)

@@Description Create a channel status @@Accept json @@Produce json @@Tags manager/channels @@Router /manager/channels/{uuid}/status [post] @@Param x_auth_token header string false "client session token" @@Param uuid path string true "channel status 의 Uuid" @@Param message query string true "message" @@Success 200

func (ControlVanilla) CreateCluster

func (ctl ControlVanilla) CreateCluster(ctx echo.Context) (err error)

@Description Create a cluster @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster [post] @Param cluster body v3.HttpReq_Cluster_create true "HttpReq_Cluster_create" @Success 200 {object} v3.HttpRsp_Cluster

func (ControlVanilla) CreateClusterToken

func (ctl ControlVanilla) CreateClusterToken(ctx echo.Context) (err error)

@Description Create a Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token [post] @Param object body cluster_token.HttpReq_ClusterToken_create true "ClusterToken HttpReq_ClusterToken_create" @Success 200 {object} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) CreateService

func (ctl ControlVanilla) CreateService(ctx echo.Context) error

@Description Create a Service @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service [post] @Param service body service.HttpReq_Service_create true "HttpReq_Service_create" @Success 200 {array} service.HttpRsp_Service_create

func (ControlVanilla) DeleteChannel

func (ctl ControlVanilla) DeleteChannel(ctx echo.Context) (err error)

@Description Delete a channel @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid} [delete] @Param uuid path string true "Channel 의 Uuid" @Success 200

func (ControlVanilla) DeleteCluster

func (ctl ControlVanilla) DeleteCluster(ctx echo.Context) (err error)

@Description Delete a cluster @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster/{uuid} [delete] @Param uuid path string true "Cluster Uuid" @Success 200

func (ControlVanilla) DeleteClusterToken

func (ctl ControlVanilla) DeleteClusterToken(ctx echo.Context) (err error)

@Description Delete a Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token/{uuid} [delete] @Param uuid path string true "ClusterToken Uuid" @Success 200

func (ControlVanilla) DeleteSession

func (ctl ControlVanilla) DeleteSession(ctx echo.Context) error

@Description Delete a Session @Security ServiceAuth @Accept json @Produce json @Tags manager/session @Router /manager/session/{uuid} [delete] @Param uuid path string true "Session Uuid" @Success 200

func (ControlVanilla) ExpireClusterToken

func (ctl ControlVanilla) ExpireClusterToken(ctx echo.Context) (err error)

@Description Expire Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token/{uuid}/expire [put] @Param uuid path string true "ClusterToken Uuid" @Success 200 {object} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) FindChannel

func (ctl ControlVanilla) FindChannel(ctx echo.Context) (err error)

@Description Find channel @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} v3.HttpRsp_ManagedChannel

func (ControlVanilla) FindChannelStatus

func (ctl ControlVanilla) FindChannelStatus(ctx echo.Context) error

@Description Find channel status @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/status [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} v3.HttpRsp_ManagedChannel_ChannelStatus

func (ControlVanilla) FindCluster

func (ctl ControlVanilla) FindCluster(ctx echo.Context) (err error)

@Description Find cluster @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} v3.HttpRsp_Cluster

func (ControlVanilla) FindClusterToken

func (ctl ControlVanilla) FindClusterToken(ctx echo.Context) error

@Description Find Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) FindGlobalVariables

func (ctl ControlVanilla) FindGlobalVariables(ctx echo.Context) error

@Description Find GlobalVariables @Security XAuthToken @Accept json @Produce json @Tags manager/global_variables @Router /manager/global_variables [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} v2.GlobalVariables

func (ControlVanilla) FindService

func (ctl ControlVanilla) FindService(ctx echo.Context) (err error)

@Description Find []Service @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} service.HttpRsp_Service

func (ControlVanilla) FindServiceStep

func (ctl ControlVanilla) FindServiceStep(ctx echo.Context) error

@Description Find Service Steps @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service/step [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} service.HttpRsp_ServiceStep

func (ControlVanilla) FindSession

func (ctl ControlVanilla) FindSession(ctx echo.Context) error

@Description Find Session @Security ServiceAuth @Accept json @Produce json @Tags manager/session @Router /manager/session [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} sessions.Session

func (ControlVanilla) FindTemplate

func (ctl ControlVanilla) FindTemplate(ctx echo.Context) error

@Description Find []template (v2) @Security XAuthToken @Accept json @Produce json @Tags manager/template @Router /manager/template [get] @Param q query string false "query github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param o query string false "order github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/jaehoonkim/synapse/pkg/manager/database/vanilla/stmt/README.md" @Success 200 {array} template.HttpRsp_Template

func (ControlVanilla) FindTemplateCommand

func (ctl ControlVanilla) FindTemplateCommand(ctx echo.Context) (err error)

@Description List template command (v2) @Security XAuthToken @Accept json @Produce json @Tags manager/template_command @Router /manager/template_command [get] @Success 200 {array} template.HttpRsp_TemplateCommand

func (ControlVanilla) FindTemplateRecipe

func (ctl ControlVanilla) FindTemplateRecipe(ctx echo.Context) (err error)

@Description Find TemplateRecipe @Security XAuthToken @Produce json @Tags manager/template_recipe @Router /manager/template_recipe [get] @Param method query string false "Template Command Method" @Success 200 {array} v2.HttpRsp_TemplateRecipe

func (ControlVanilla) GetChannel

func (ctl ControlVanilla) GetChannel(ctx echo.Context) (err error)

@Description Get a channel @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid} [get] @Param uuid path string true "Channel 의 Uuid" @Success 200 {object} v3.HttpRsp_ManagedChannel

func (ControlVanilla) GetChannelFormat

func (ctl ControlVanilla) GetChannelFormat(ctx echo.Context) (err error)

@Description Get a channel format @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/format [get] @Param uuid path string true "Channel 의 Uuid" @Success 200 {object} v3.HttpRsq_ManagedChannel_Format

func (ControlVanilla) GetChannelNotifierEdge

func (ctl ControlVanilla) GetChannelNotifierEdge(ctx echo.Context) (err error)

@Description Get a channel notifier edge @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/notifiers/edge [get] @Param uuid path string true "Channel 의 Uuid" @Success 200 {object} v3.HttpRsp_ManagedChannel_NotifierEdge

func (ControlVanilla) GetChannelStatusOption

func (ctl ControlVanilla) GetChannelStatusOption(ctx echo.Context) (err error)

@Description Get a channel status option @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/status/option [get] @Param uuid path string true "Channel 의 Uuid" @Success 200 {object} v3.HttpRsp_ManagedChannel_ChannelStatusOption

func (ControlVanilla) GetCluster

func (ctl ControlVanilla) GetCluster(ctx echo.Context) (err error)

@Description Get a cluster @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster/{uuid} [get] @Param uuid path string true "Cluster Uuid" @Success 200 {object} v3.HttpRsp_Cluster

func (ControlVanilla) GetClusterToken

func (ctl ControlVanilla) GetClusterToken(ctx echo.Context) (err error)

@Description Get a Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token/{uuid} [get] @Param uuid path string true "ClusterToken Uuid" @Success 200 {object} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) GetGlobalVariables

func (ctl ControlVanilla) GetGlobalVariables(ctx echo.Context) error

@Description Get a GlobalVariables @Security XAuthToken @Accept json @Produce json @Tags manager/global_variables @Router /manager/global_variables/{uuid} [get] @Param uuid path string true "GlobalVariables Uuid" @Success 200 {object} v2.GlobalVariables

func (ControlVanilla) GetService

func (ctl ControlVanilla) GetService(ctx echo.Context) (err error)

@Description Get a Service @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service/{uuid} [get] @Param uuid path string true "service's UUID" @Success 200 {object} service.HttpRsp_Service

func (ControlVanilla) GetServiceResult

func (ctl ControlVanilla) GetServiceResult(ctx echo.Context) (err error)

@Description Get a Service Result @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service/{uuid}/result [get] @Param uuid path string true "service's UUID" @Success 200 {object} service.HttpRsp_ServiceResult

func (ControlVanilla) GetServiceStep

func (ctl ControlVanilla) GetServiceStep(ctx echo.Context) (err error)

@Description Get Service Step @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service/{uuid}/step/{sequence} [get] @Param uuid path string true "ServiceStep 의 uuid" @Param sequence path string true "ServiceStep 의 sequence" @Success 200 {object} service.HttpRsp_ServiceStep

func (ControlVanilla) GetServiceSteps

func (ctl ControlVanilla) GetServiceSteps(ctx echo.Context) (err error)

@Description Get Service Steps @Security ServiceAuth @Accept json @Produce json @Tags manager/service @Router /manager/service/{uuid}/step [get] @Param uuid path string true "ServiceStep 의 uuid" @Success 200 {array} service.HttpRsp_ServiceStep

func (ControlVanilla) GetSession

func (ctl ControlVanilla) GetSession(ctx echo.Context) error

@Description Get a Session @Security ServiceAuth @Accept json @Produce json @Tags manager/session @Router /manager/session/{uuid} [get] @Param uuid path string true "Session Uuid" @Success 200 {object} sessions.Session

func (ControlVanilla) GetTemplate

func (ctl ControlVanilla) GetTemplate(ctx echo.Context) (err error)

@Description Get a template (v2) @Security XAuthToken @Accept json @Produce json @Tags manager/template @Router /manager/template/{uuid} [get] @Param uuid path string true "Template Uuid" @Success 200 {object} template.HttpRsp_Template

func (ControlVanilla) GetTemplateCommand

func (ctl ControlVanilla) GetTemplateCommand(ctx echo.Context) (err error)

@Description Get a template command (v2) @Security XAuthToken @Accept json @Produce json @Tags manager/template_command @Router /manager/template_command/{uuid} [get] @Param name path string true "HttpReqTemplateCommand 의 Uuid" @Success 200 {object} template.HttpRsp_TemplateCommand

func (ControlVanilla) ListChannelStatus

func (ctl ControlVanilla) ListChannelStatus(ctx echo.Context) (err error)

@Description List channel status @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/status [get] @Param uuid path string true "channel status 의 Uuid" @Success 200 {array} v3.HttpRsp_ManagedChannel_ChannelStatus

func (ControlVanilla) PollingService

func (ctl ControlVanilla) PollingService(ctx echo.Context) error

@Description get []Service @Security AgentAuth @Accept json @Produce json @Tags agent/service @Router /agent/service [get] @Success 200 {array} servicev4.HttpRsp_AgentServicePolling @Header 200 {string} x-synapse-agent-token

func (ControlVanilla) PurgeChannelStatus

func (ctl ControlVanilla) PurgeChannelStatus(ctx echo.Context) (err error)

@Description Purge channel status @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/status/purge [delete] @Param uuid path string true "channel status 의 Uuid" @Success 200

func (ControlVanilla) RefreshClientSessionToken

func (ctl ControlVanilla) RefreshClientSessionToken(ctx echo.Context) (err error)

func (ControlVanilla) RefreshClusterTokenTime

func (ctl ControlVanilla) RefreshClusterTokenTime(ctx echo.Context) (err error)

@Description Refresh Time of Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token/{uuid}/refresh [put] @Param uuid path string true "ClusterToken Uuid" @Success 200 {object} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) Tenant

func (ctl ControlVanilla) Tenant(ctx echo.Context) (err error)

@Description tenant @Security XAuthToken @Accept json @Produce json @Tags manager/tenant @Router /manager/tenant [post] @Param object body auths.HttpReq_ServiceAccessToken true "auths.HttpReq_ServiceAccessToken" @Success 200 {object} auths.HttpRsp_AccessTokenResponse

func (ControlVanilla) UpdateChannel

func (ctl ControlVanilla) UpdateChannel(ctx echo.Context) (err error)

@Description Update a channel @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid} [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_update true "HttpReq_ManagedChannel_update" @Success 200 {object} v3.ManagedChannel

func (ControlVanilla) UpdateChannelFormat

func (ctl ControlVanilla) UpdateChannelFormat(ctx echo.Context) (err error)

@Description Update a channel format @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/format [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_Format_update true "HttpReq_ManagedChannel_Format_update" @Success 200 {object} v3.HttpRsq_ManagedChannel_Format

func (ControlVanilla) UpdateChannelNotifierConsole

func (ctl ControlVanilla) UpdateChannelNotifierConsole(ctx echo.Context) (err error)

@Description Update a console channel notifier @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/notifiers/console [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_NotifierConsole_update true "HttpReq_ManagedChannel_NotifierConsole_update" @Success 200 {object} v3.HttpRsp_ManagedChannel_NotifierEdge

func (ControlVanilla) UpdateChannelNotifierRabbitMq

func (ctl ControlVanilla) UpdateChannelNotifierRabbitMq(ctx echo.Context) (err error)

@Description Update a rabbitmq channel notifier @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/notifiers/rabbitmq [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_NotifierRabbitMq_update true "HttpReq_ManagedChannel_NotifierRabbitMq_update" @Success 200 {object} v3.HttpRsp_ManagedChannel_NotifierEdge

func (ControlVanilla) UpdateChannelNotifierSlackhook

func (ctl ControlVanilla) UpdateChannelNotifierSlackhook(ctx echo.Context) (err error)

@Description Update a slackhook channel notifier @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/notifiers/slackhook [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_NotifierSlackhook_update true "HttpReq_ManagedChannel_NotifierSlackhook_update" @Success 200 {object} v3.HttpRsp_ManagedChannel_NotifierEdge

func (ControlVanilla) UpdateChannelNotifierWebhook

func (ctl ControlVanilla) UpdateChannelNotifierWebhook(ctx echo.Context) (err error)

@Description Update a webhook channel notifier @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/notifiers/webhook [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_NotifierWebhook_update true "HttpReq_ManagedChannel_NotifierWebhook_update" @Success 200 {object} v3.HttpRsp_ManagedChannel_NotifierEdge

func (ControlVanilla) UpdateChannelStatusOption

func (ctl ControlVanilla) UpdateChannelStatusOption(ctx echo.Context) (err error)

@Description Update a channel status option @Security ServiceAuth @Accept json @Produce json @Tags manager/channels @Router /manager/channels/{uuid}/status/option [put] @Param uuid path string true "Channel 의 Uuid" @Param object body v3.HttpReq_ManagedChannel_ChannelStatusOption_update true "HttpReq_ManagedChannel_ChannelStatusOption_update" @Success 200 {object} v3.HttpRsp_ManagedChannel_ChannelStatusOption

func (ControlVanilla) UpdateCluster

func (ctl ControlVanilla) UpdateCluster(ctx echo.Context) (err error)

@Description Update a cluster @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster/{uuid} [put] @Param uuid path string true "Cluster Uuid" @Param cluster body v3.HttpReq_Cluster_update true "HttpReq_Cluster_update" @Success 200 {object} v3.HttpRsp_Cluster

func (ControlVanilla) UpdateClusterPollingRegular

func (ctl ControlVanilla) UpdateClusterPollingRegular(ctx echo.Context) (err error)

@Description Update a cluster Polling Reguar @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster/{uuid}/polling/regular [put] @Param uuid path string true "Cluster Uuid" @Param polling_option body v3.RegularPollingOption true "RegularPollingOption" @Success 200 {object} v3.HttpRsp_Cluster

func (ControlVanilla) UpdateClusterPollingSmart

func (ctl ControlVanilla) UpdateClusterPollingSmart(ctx echo.Context) (err error)

@Description Update a cluster Polling Smart @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster @Router /manager/cluster/{uuid}/polling/smart [put] @Param uuid path string true "Cluster Uuid" @Param polling_option body v3.SmartPollingOption true "SmartPollingOption" @Success 200 {object} v3.HttpRsp_Cluster

func (ControlVanilla) UpdateClusterTokenLabel

func (ctl ControlVanilla) UpdateClusterTokenLabel(ctx echo.Context) (err error)

@Description Update Label of Cluster Token @Security ServiceAuth @Accept json @Produce json @Tags manager/cluster_token @Router /manager/cluster_token/{uuid}/label [put] @Param uuid path string true "ClusterToken Uuid" @Param object body cluster_token.HttpReq_ClusterToken_update true "ClusterToken HttpReq_ClusterToken_update" @Success 200 {object} cluster_token.HttpRsp_ClusterToken

func (ControlVanilla) UpdateGlobalVariablesValue

func (ctl ControlVanilla) UpdateGlobalVariablesValue(ctx echo.Context) error

@Description Update GlobalVariables Value @Security XAuthToken @Accept json @Produce json @Tags manager/global_variables @Router /manager/global_variables/{uuid} [put] @Param uuid path string true "GlobalVariables Uuid" @Param enviroment body v2.HttpReq_GlobalVariables_update false "HttpReq_GlobalVariables_update" @Success 200 {object} v2.GlobalVariables

func (ControlVanilla) UpdateService

func (ctl ControlVanilla) UpdateService(ctx echo.Context) (err error)

@Description update a service @Security AgentAuth @Accept json @Produce json @Tags agent/service @Router /agent/service [put] @Param body body servicev4.HttpReq_AgentServiceUpdate true "HttpReq_AgentServiceUpdate" @Success 200 @Header 200 {string} x-synapse-agent-token

func (ControlVanilla) VerifyClientSessionToken

func (ctl ControlVanilla) VerifyClientSessionToken(ctx echo.Context) (err error)

type PollingFilter

type PollingFilter = func(service servicev3.Service_polling) bool

type PollingFilter_v2

type PollingFilter_v2 = func(service vault.ServicePolling) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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