applications

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationResponse

type ApplicationResponse interface {
	GetId() int64
	GetName() string
	GetActive() bool
	GetDebug() bool
	GetLastEditor() string
	GetModules() sdk.ApplicationModules
}

type Client

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

func NewClient

func NewClient(c *http.Client, url string, token string) *Client

func (*Client) Clone

func (c *Client) Clone(ctx context.Context, name string, id int64) error

func (*Client) Create

func (*Client) CreateCacheEdgeApplication

func (c *Client) CreateCacheEdgeApplication(
	ctx context.Context, req *CreateCacheSettingsRequest, edgeApplicationID int64,
) (sdk.CacheSetting, error)

func (*Client) CreateCacheSettingsNextApplication

func (c *Client) CreateCacheSettingsNextApplication(ctx context.Context, req *CreateCacheSettingsRequest, applicationID int64) (sdk.CacheSetting, error)

CreateCacheSettingsNextApplication this function creates the necessary Cache Settings for next applications to work correctly on the edge

func (*Client) CreateFuncInstances

func (c *Client) CreateFuncInstances(ctx context.Context, req *CreateInstanceRequest, applicationID int64) (sdk.FunctionInstance, error)

func (*Client) CreateRulesEngineNextApplication

func (c *Client) CreateRulesEngineNextApplication(ctx context.Context, applicationId int64, typeLang string) error

func (*Client) CreateRulesEngineRequest

func (c *Client) CreateRulesEngineRequest(ctx context.Context, edgeApplicationID int64, phase string, req *CreateRulesEngineRequest) (RulesEngineResponse, error)

func (*Client) CreateRulesEngineResponse

func (c *Client) CreateRulesEngineResponse(ctx context.Context, edgeApplicationID int64, phase string, req *CreateRulesEngineResponse) (RulesEngineResponse, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id int64) error

func (*Client) DeleteFunctionInstance

func (c *Client) DeleteFunctionInstance(ctx context.Context, appID int64, funcID int64) error

func (*Client) DeleteRulesEngineRequest

func (c *Client) DeleteRulesEngineRequest(ctx context.Context, edgeApplicationID int64, phase string, ruleID int64) (int, error)

func (*Client) DeleteRulesEngineResponse

func (c *Client) DeleteRulesEngineResponse(ctx context.Context, edgeApplicationID int64, phase string, ruleID int64) (int, error)

func (*Client) EdgeFuncInstancesList

func (c *Client) EdgeFuncInstancesList(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64) (*sdk.PaginatedFunctionInstanceList, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, id int64) (ApplicationResponse, error)

func (*Client) GetFuncInstance

func (c *Client) GetFuncInstance(ctx context.Context, edgeApplicationID int64, instanceID int64) (FunctionsInstancesResponse, error)

func (*Client) GetRulesDefault

func (c *Client) GetRulesDefault(ctx context.Context, applicationID int64, phase string) (int64, error)

func (*Client) GetRulesEngineRequest

func (c *Client) GetRulesEngineRequest(ctx context.Context, edgeApplicationID, rulesID int64) (RulesEngineResponse, error)

func (*Client) GetRulesEngineResponse

func (c *Client) GetRulesEngineResponse(ctx context.Context, edgeApplicationID, rulesID int64) (RulesEngineResponse, error)

func (*Client) List

func (*Client) ListCacheEdgeApp

func (c *Client) ListCacheEdgeApp(ctx context.Context, edgeApplicationID int64, opts *contracts.ListOptions) ([]sdk.CacheSetting, error)

func (*Client) ListRulesEngineRequest

func (c *Client) ListRulesEngineRequest(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64) (*sdk.PaginatedRequestPhaseRuleList, error)

func (*Client) ListRulesEngineResponse

func (c *Client) ListRulesEngineResponse(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64) (*sdk.PaginatedResponsePhaseRuleList, error)

func (*Client) OrderRulesEngineRequest

func (c *Client) OrderRulesEngineRequest(ctx context.Context, applicationID int64, order []int64) error

func (*Client) OrderRulesEngineResponse

func (c *Client) OrderRulesEngineResponse(ctx context.Context, applicationID int64, order []int64) error

func (*Client) Update

func (*Client) UpdateInstance

func (c *Client) UpdateInstance(ctx context.Context, req *UpdateInstanceRequest, appID int64, instanceID int64) (sdk.FunctionInstance, error)

func (*Client) UpdateRulesEngineRequest

func (c *Client) UpdateRulesEngineRequest(ctx context.Context, req *UpdateRulesEngineRequest) (RulesEngineResponse, error)

func (*Client) UpdateRulesEngineResponse

func (c *Client) UpdateRulesEngineResponse(ctx context.Context, req *UpdateRulesEngineResponse) (RulesEngineResponse, error)

type CreateCacheSettingsRequest

type CreateCacheSettingsRequest struct {
	sdk.CacheSettingRequest
}

type CreateInstanceRequest

type CreateInstanceRequest struct {
	sdk.FunctionInstanceRequest
	ApplicationId int64
}

type CreateRequest

type CreateRequest struct {
	sdk.ApplicationRequest
}

type CreateRulesEngineRequest

type CreateRulesEngineRequest struct {
	sdk.RequestPhaseRuleRequest
}

type CreateRulesEngineResponse

type CreateRulesEngineResponse struct {
	sdk.ResponsePhaseRuleRequest
}

type DeviceGroupsResponse

type DeviceGroupsResponse interface {
	GetId() int64
	GetName() string
	GetUserAgent() string
}

type EdgeApplicationsResponse

type EdgeApplicationsResponse interface {
	GetId() int64
	GetName() string
}

type FunctionsInstancesResponse

type FunctionsInstancesResponse interface {
	GetId() int64
	GetFunction() int64
	GetName() string
	GetArgs() interface{}
}

type ResponseCreate

type ResponseCreate interface {
	GetId() int64
	GetName() string
	GetActive() bool
	GetApplicationAcceleration() bool
	GetCaching() bool
	GetDeliveryProtocol() string
	GetDeviceDetection() bool
	GetEdgeFirewall() bool
	GetEdgeFunctions() bool
	GetHttpPort() interface{}
	GetHttpsPort() interface{}
	GetImageOptimization() bool
	GetL2Caching() bool
	GetLoadBalancer() bool
	GetMinimumTlsVersion() string
	GetRawLogs() bool
	GetWebApplicationFirewall() bool
}

type RulesEngineResponse

type RulesEngineResponse interface {
	GetId() int64
	GetDescription() string
	// GetBehaviors() []sdk.RulesEngineBehaviorEntry
	// GetCriteria() [][]sdk.RulesEngineCriteria
	GetActive() bool
	GetOrder() int64
	GetName() string
}

type UpdateCacheSettingsRequest

type UpdateCacheSettingsRequest struct {
	sdk.ApiPartialUpdateCacheSettingRequest
	Id int64
}

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	// sdk.ApplicationUpdateInstanceRequest
	sdk.PatchedFunctionInstanceRequest
}

type UpdateRequest

type UpdateRequest struct {
	sdk.PatchedApplicationRequest
	Id int64
}

type UpdateRulesEngineRequest

type UpdateRulesEngineRequest struct {
	sdk.PatchedRequestPhaseRule
	IdApplication int64
	Phase         string
	Id            int64
}

type UpdateRulesEngineResponse

type UpdateRulesEngineResponse struct {
	sdk.PatchedResponsePhaseRuleRequest
	IdApplication int64
	Phase         string
	Id            int64
}

Jump to

Keyboard shortcuts

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