edge_applications

package
v0.0.0-...-de23339 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheSettingsResponse

type CacheSettingsResponse interface {
	GetId() int64
	GetName() string
	GetBrowserCacheSettings() string
	GetBrowserCacheSettingsMaximumTtl() int64
	GetCdnCacheSettingsMaximumTtl() int64
	GetCdnCacheSettings() string
	GetCacheByQueryString() string
	GetQueryStringFields() []string
	GetEnableQueryStringSort() bool
	GetCacheByCookies() string
	GetCookieNames() []string
	GetEnableCachingForPost() bool
	GetL2CachingEnabled() bool
	GetAdaptiveDeliveryAction() string
	GetDeviceGroup() []int32
}

type Client

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

func NewClient

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

func (*Client) Create

func (*Client) CreateCacheEdgeApplication

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

func (*Client) CreateCacheSettingsNextApplication

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

CreateCacheSettingsNextApplication this function creates the necessary cache settings for next applications to work correctly on the edge

func (*Client) CreateDeviceGroups

func (c *Client) CreateDeviceGroups(ctx context.Context, req *CreateDeviceGroupsRequest, applicationID int64) (DeviceGroupsResponse, error)

func (*Client) CreateFuncInstances

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

func (*Client) CreateRulesEngine

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

func (*Client) CreateRulesEngineNextApplication

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

func (*Client) Delete

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

func (*Client) DeleteDeviceGroup

func (c *Client) DeleteDeviceGroup(ctx context.Context, appID int64, groupID int64) error

func (*Client) DeleteFunctionInstance

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

func (*Client) DeleteRulesEngine

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

func (*Client) DeviceGroupsList

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

func (*Client) EdgeFuncInstancesList

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

func (*Client) Get

func (*Client) GetDeviceGroups

func (c *Client) GetDeviceGroups(ctx context.Context, edgeApplicationID, groupID int64) (DeviceGroupsResponse, error)

func (*Client) GetFuncInstance

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

func (*Client) GetRulesDefault

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

func (*Client) GetRulesEngine

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

func (*Client) List

func (*Client) ListRulesEngine

func (c *Client) ListRulesEngine(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64, phase string) (*sdk.RulesEngineResponse, error)

func (*Client) Update

func (*Client) UpdateDeviceGroup

func (c *Client) UpdateDeviceGroup(ctx context.Context, req sdk.PatchDeviceGroupsRequest, appID int64, groupID int64) (DeviceGroupsResponse, error)

func (*Client) UpdateInstance

func (c *Client) UpdateInstance(ctx context.Context, req *UpdateInstanceRequest, appID string, instanceID string) (FunctionsInstancesResponse, error)

func (*Client) UpdateRulesEngine

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

func (*Client) UpdateRulesEnginePublish

func (c *Client) UpdateRulesEnginePublish(ctx context.Context, req *UpdateRulesEngineRequest, idFunc int64) (EdgeApplicationsResponse, error)

type CreateCacheSettingsRequest

type CreateCacheSettingsRequest struct {
	sdk.ApplicationCacheCreateRequest
}

type CreateDeviceGroupsRequest

type CreateDeviceGroupsRequest struct {
	sdk.CreateDeviceGroupsRequest
}

type CreateInstanceRequest

type CreateInstanceRequest struct {
	sdk.ApplicationCreateInstanceRequest
	ApplicationId int64
}

type CreateRequest

type CreateRequest struct {
	sdk.CreateApplicationRequest
}

type CreateRulesEngineRequest

type CreateRulesEngineRequest struct {
	sdk.CreateRulesEngineRequest
}

type DeviceGroupsResponse

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

type EdgeApplicationResponse

type EdgeApplicationResponse 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 EdgeApplicationsResponse

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

type FunctionsInstancesResponse

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

type GetCacheSettingsResponse

type GetCacheSettingsResponse interface {
	GetId() int64
	GetName() string
	GetBrowserCacheSettings() string
	GetBrowserCacheSettingsMaximumTtl() int64
	GetCdnCacheSettingsMaximumTtl() int64
	GetCdnCacheSettings() string
	GetCacheByQueryString() string
	GetQueryStringFields() []string
	GetEnableQueryStringSort() bool
	GetCacheByCookies() string
	GetCookieNames() []*string
	GetEnableCachingForPost() bool
	GetL2CachingEnabled() bool
	GetAdaptiveDeliveryAction() string
	GetDeviceGroup() []int32
}

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
	GetPhase() string
	GetDescription() string
	GetBehaviors() []sdk.RulesEngineBehaviorEntry
	GetCriteria() [][]sdk.RulesEngineCriteria
	GetIsActive() bool
	GetOrder() int64
	GetName() string
}

type UpdateCacheSettingsRequest

type UpdateCacheSettingsRequest struct {
	sdk.ApplicationCachePatchRequest
	Id int64
}

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	sdk.ApplicationUpdateInstanceRequest
}

type UpdateRequest

type UpdateRequest struct {
	sdk.ApplicationUpdateRequest
	Id int64
}

type UpdateRulesEngineRequest

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

Jump to

Keyboard shortcuts

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