Documentation
¶
Index ¶
- type CacheSettingsResponse
- type Client
- func (c *Client) Create(ctx context.Context, req *CreateRequest) (EdgeApplicationsResponse, error)
- func (c *Client) CreateCacheEdgeApplication(ctx context.Context, req *CreateCacheSettingsRequest, edgeApplicationID int64) (CacheSettingsResponse, error)
- func (c *Client) CreateCacheSettingsNextApplication(ctx context.Context, req *CreateCacheSettingsRequest, applicationID int64) (CacheSettingsResponse, error)
- func (c *Client) CreateDeviceGroups(ctx context.Context, req *CreateDeviceGroupsRequest, applicationID int64) (DeviceGroupsResponse, error)
- func (c *Client) CreateFuncInstances(ctx context.Context, req *CreateInstanceRequest, applicationID int64) (FunctionsInstancesResponse, error)
- func (c *Client) CreateRulesEngine(ctx context.Context, edgeApplicationID int64, phase string, ...) (RulesEngineResponse, error)
- func (c *Client) CreateRulesEngineNextApplication(ctx context.Context, applicationId int64, cacheId int64, typeLang string, ...) error
- func (c *Client) Delete(ctx context.Context, id int64) error
- func (c *Client) DeleteDeviceGroup(ctx context.Context, appID int64, groupID int64) error
- func (c *Client) DeleteFunctionInstance(ctx context.Context, appID string, funcID string) error
- func (c *Client) DeleteRulesEngine(ctx context.Context, edgeApplicationID int64, phase string, ruleID int64) error
- func (c *Client) DeviceGroupsList(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64) (*sdk.DeviceGroupsResponse, error)
- func (c *Client) EdgeFuncInstancesList(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64) (*sdk.ApplicationInstancesGetResponse, error)
- func (c *Client) Get(ctx context.Context, id string) (EdgeApplicationResponse, error)
- func (c *Client) GetDeviceGroups(ctx context.Context, edgeApplicationID, groupID int64) (DeviceGroupsResponse, error)
- func (c *Client) GetFuncInstance(ctx context.Context, edgeApplicationID, instanceID int64) (FunctionsInstancesResponse, error)
- func (c *Client) GetRulesDefault(ctx context.Context, applicationID int64, phase string) (int64, error)
- func (c *Client) GetRulesEngine(ctx context.Context, edgeApplicationID, rulesID int64, phase string) (RulesEngineResponse, error)
- func (c *Client) List(ctx context.Context, opts *contracts.ListOptions) (*sdk.GetApplicationsResponse, error)
- func (c *Client) ListCacheEdgeApp(ctx context.Context, edgeApplicationID int64) ([]sdk.ApplicationCacheResults, error)
- func (c *Client) ListRulesEngine(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64, ...) (*sdk.RulesEngineResponse, error)
- func (c *Client) Update(ctx context.Context, req *UpdateRequest) (EdgeApplicationsResponse, error)
- func (c *Client) UpdateDeviceGroup(ctx context.Context, req sdk.PatchDeviceGroupsRequest, appID int64, ...) (DeviceGroupsResponse, error)
- func (c *Client) UpdateInstance(ctx context.Context, req *UpdateInstanceRequest, appID string, ...) (FunctionsInstancesResponse, error)
- func (c *Client) UpdateRulesEngine(ctx context.Context, req *UpdateRulesEngineRequest) (RulesEngineResponse, error)
- func (c *Client) UpdateRulesEnginePublish(ctx context.Context, req *UpdateRulesEngineRequest, idFunc int64) (EdgeApplicationsResponse, error)
- type CreateCacheSettingsRequest
- type CreateDeviceGroupsRequest
- type CreateInstanceRequest
- type CreateRequest
- type CreateRulesEngineRequest
- type DeviceGroupsResponse
- type EdgeApplicationResponse
- type EdgeApplicationsResponse
- type FunctionsInstancesResponse
- type GetCacheSettingsResponse
- type ResponseCreate
- type RulesEngineResponse
- type UpdateCacheSettingsRequest
- type UpdateInstanceRequest
- type UpdateRequest
- type UpdateRulesEngineRequest
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 (*Client) Create ¶
func (c *Client) Create(ctx context.Context, req *CreateRequest, ) (EdgeApplicationsResponse, error)
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 (*Client) DeleteDeviceGroup ¶
func (*Client) DeleteFunctionInstance ¶
func (*Client) DeleteRulesEngine ¶
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) GetDeviceGroups ¶
func (*Client) GetFuncInstance ¶
func (*Client) GetRulesDefault ¶
func (*Client) GetRulesEngine ¶
func (*Client) List ¶
func (c *Client) List(ctx context.Context, opts *contracts.ListOptions) (*sdk.GetApplicationsResponse, error)
func (*Client) ListCacheEdgeApp ¶
func (*Client) ListRulesEngine ¶
func (c *Client) ListRulesEngine(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64, phase string) (*sdk.RulesEngineResponse, error)
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, req *UpdateRequest) (EdgeApplicationsResponse, error)
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 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 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 }
Click to show internal directories.
Click to hide internal directories.