Documentation
¶
Index ¶
- func NewClient(httpClient *http.Client, mtlsClient *http.Client) *client
- type FormationAssignmentNotificationRequest
- func (nr *FormationAssignmentNotificationRequest) Clone() *FormationAssignmentNotificationRequest
- func (nr *FormationAssignmentNotificationRequest) GetCorrelationID() string
- func (nr *FormationAssignmentNotificationRequest) GetObject() webhook.TemplateInput
- func (nr *FormationAssignmentNotificationRequest) GetWebhook() *graphql.Webhook
- type FormationAssignmentNotificationRequestExt
- func (f *FormationAssignmentNotificationRequestExt) GetFormation() *model.Formation
- func (f *FormationAssignmentNotificationRequestExt) GetFormationAssignment() *model.FormationAssignment
- func (f *FormationAssignmentNotificationRequestExt) GetObjectSubtype() string
- func (f *FormationAssignmentNotificationRequestExt) GetObjectType() model.ResourceType
- func (f *FormationAssignmentNotificationRequestExt) GetOperation() model.FormationOperation
- func (f *FormationAssignmentNotificationRequestExt) GetReverseFormationAssignment() *model.FormationAssignment
- type FormationAssignmentNotificationRequestTargetMapping
- type FormationNotificationRequest
- func (fnr *FormationNotificationRequest) GetFormation() *model.Formation
- func (fnr *FormationNotificationRequest) GetFormationAssignment() *model.FormationAssignment
- func (fnr *FormationNotificationRequest) GetObjectSubtype() string
- func (fnr *FormationNotificationRequest) GetObjectType() model.ResourceType
- func (fnr *FormationNotificationRequest) GetOperation() model.FormationOperation
- func (fnr *FormationNotificationRequest) GetReverseFormationAssignment() *model.FormationAssignment
- type PollRequest
- type Request
- type WebhookExtRequest
- type WebhookRequest
- type WebhookStatusGoneErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormationAssignmentNotificationRequest ¶
type FormationAssignmentNotificationRequest struct { Webhook *graphql.Webhook Object webhook.FormationAssignmentTemplateInput CorrelationID string }
FormationAssignmentNotificationRequest represents a formation assignment webhook request to be executed
func (*FormationAssignmentNotificationRequest) Clone ¶
func (nr *FormationAssignmentNotificationRequest) Clone() *FormationAssignmentNotificationRequest
Clone returns a copy of the FormationAssignmentNotificationRequest
func (*FormationAssignmentNotificationRequest) GetCorrelationID ¶
func (nr *FormationAssignmentNotificationRequest) GetCorrelationID() string
GetCorrelationID returns the CorrelationID assigned to the FormationAssignmentNotificationRequest
func (*FormationAssignmentNotificationRequest) GetObject ¶
func (nr *FormationAssignmentNotificationRequest) GetObject() webhook.TemplateInput
GetObject returns the Object associated with the FormationAssignmentNotificationRequest
func (*FormationAssignmentNotificationRequest) GetWebhook ¶
func (nr *FormationAssignmentNotificationRequest) GetWebhook() *graphql.Webhook
GetWebhook returns the Webhook associated with the FormationAssignmentNotificationRequest
type FormationAssignmentNotificationRequestExt ¶
type FormationAssignmentNotificationRequestExt struct { *FormationAssignmentNotificationRequest Operation model.FormationOperation FormationAssignment *model.FormationAssignment ReverseFormationAssignment *model.FormationAssignment Formation *model.Formation TargetSubtype string }
FormationAssignmentNotificationRequestExt is extended FormationAssignmentRequest with Operation, FA, ReverseFA, Formation and Target subtype.
func (*FormationAssignmentNotificationRequestExt) GetFormation ¶
func (f *FormationAssignmentNotificationRequestExt) GetFormation() *model.Formation
GetFormation returns FormationAssignmentNotificationRequestExt formation
func (*FormationAssignmentNotificationRequestExt) GetFormationAssignment ¶
func (f *FormationAssignmentNotificationRequestExt) GetFormationAssignment() *model.FormationAssignment
GetFormationAssignment returns FormationAssignmentNotificationRequestExt formation assignment
func (*FormationAssignmentNotificationRequestExt) GetObjectSubtype ¶
func (f *FormationAssignmentNotificationRequestExt) GetObjectSubtype() string
GetObjectSubtype returns FormationAssignmentNotificationRequestExt object subtype
func (*FormationAssignmentNotificationRequestExt) GetObjectType ¶
func (f *FormationAssignmentNotificationRequestExt) GetObjectType() model.ResourceType
GetObjectType returns FormationAssignmentNotificationRequestExt object type
func (*FormationAssignmentNotificationRequestExt) GetOperation ¶
func (f *FormationAssignmentNotificationRequestExt) GetOperation() model.FormationOperation
GetOperation returns FormationAssignmentNotificationRequestExt operation
func (*FormationAssignmentNotificationRequestExt) GetReverseFormationAssignment ¶
func (f *FormationAssignmentNotificationRequestExt) GetReverseFormationAssignment() *model.FormationAssignment
GetReverseFormationAssignment returns FormationAssignmentNotificationRequestExt reverse formation assignment
type FormationAssignmentNotificationRequestTargetMapping ¶
type FormationAssignmentNotificationRequestTargetMapping struct { *FormationAssignmentNotificationRequest Target string }
FormationAssignmentNotificationRequestTargetMapping represents a formation assignment webhook request to be executed mapped to a target that is to be notified.
type FormationNotificationRequest ¶
type FormationNotificationRequest struct { *Request Operation model.FormationOperation Formation *model.Formation FormationType string }
FormationNotificationRequest represents a formation webhook request to be executed with added Operation, Formation and FormationType
func (*FormationNotificationRequest) GetFormation ¶
func (fnr *FormationNotificationRequest) GetFormation() *model.Formation
GetFormation returns FormationNotificationRequest formation
func (*FormationNotificationRequest) GetFormationAssignment ¶
func (fnr *FormationNotificationRequest) GetFormationAssignment() *model.FormationAssignment
GetFormationAssignment returns FormationNotificationRequest formation assignment
func (*FormationNotificationRequest) GetObjectSubtype ¶
func (fnr *FormationNotificationRequest) GetObjectSubtype() string
GetObjectSubtype returns FormationNotificationRequest object subtype
func (*FormationNotificationRequest) GetObjectType ¶
func (fnr *FormationNotificationRequest) GetObjectType() model.ResourceType
GetObjectType returns FormationNotificationRequest object type
func (*FormationNotificationRequest) GetOperation ¶
func (fnr *FormationNotificationRequest) GetOperation() model.FormationOperation
GetOperation returns FormationNotificationRequest operation
func (*FormationNotificationRequest) GetReverseFormationAssignment ¶
func (fnr *FormationNotificationRequest) GetReverseFormationAssignment() *model.FormationAssignment
GetReverseFormationAssignment returns FormationNotificationRequest reverse formation assignment
type PollRequest ¶
PollRequest represents a webhook poll request to be executed
func NewPollRequest ¶
func NewPollRequest(webhook *graphql.Webhook, requestObject webhook.TemplateInput, correlationID string, pollURL string) *PollRequest
NewPollRequest constructs a webhook Request
type Request ¶
type Request struct { Webhook *graphql.Webhook Object webhook.TemplateInput CorrelationID string }
Request represents a webhook request to be executed
func NewRequest ¶
func NewRequest(webhook *graphql.Webhook, requestObject webhook.TemplateInput, correlationID string) *Request
NewRequest constructs a webhook Request
func (*Request) GetCorrelationID ¶
GetCorrelationID returns the CorrelationID assigned to the Request
func (*Request) GetObject ¶
func (r *Request) GetObject() webhook.TemplateInput
GetObject returns the Object associated with the Request
func (*Request) GetWebhook ¶
GetWebhook return the Webhook associated with the Request
type WebhookExtRequest ¶
type WebhookExtRequest interface { WebhookRequest GetObjectType() model.ResourceType GetObjectSubtype() string GetOperation() model.FormationOperation GetFormationAssignment() *model.FormationAssignment GetReverseFormationAssignment() *model.FormationAssignment GetFormation() *model.Formation }
WebhookExtRequest represent an extended request associated with registered webhook
type WebhookRequest ¶
type WebhookRequest interface { GetWebhook() *graphql.Webhook GetObject() webhook.TemplateInput GetCorrelationID() string }
WebhookRequest represent a request associated with registered webhook
type WebhookStatusGoneErr ¶
type WebhookStatusGoneErr struct {
// contains filtered or unexported fields
}
WebhookStatusGoneErr represents an error type which represents a gone status code returned in response to calling delete webhook.
func NewWebhookStatusGoneErr ¶
func NewWebhookStatusGoneErr(goneStatusCode int) WebhookStatusGoneErr
NewWebhookStatusGoneErr constructs a new WebhookStatusGoneErr with the given error message