Documentation ¶
Index ¶
- type CreateSubscriptionInput
- type CreateSubscriptionOutput
- type DeleteSubscriptionInput
- type DeleteSubscriptionOutput
- type ListSubscriptionsInput
- type ListSubscriptionsOutput
- type ReadSubscriptionInput
- type ReadSubscriptionOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) Create(ctx context.Context, input *CreateSubscriptionInput) (*CreateSubscriptionOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteSubscriptionInput) (*DeleteSubscriptionOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListSubscriptionsInput) (*ListSubscriptionsOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadSubscriptionInput) (*ReadSubscriptionOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateSubscriptionInput) (*UpdateSubscriptionOutput, error)
- type Subscription
- func (o Subscription) MarshalJSON() ([]byte, error)
- func (o *Subscription) SetEndpoint(v *string) *Subscription
- func (o *Subscription) SetEventType(v *string) *Subscription
- func (o *Subscription) SetFormat(v map[string]interface{}) *Subscription
- func (o *Subscription) SetId(v *string) *Subscription
- func (o *Subscription) SetProtocol(v *string) *Subscription
- func (o *Subscription) SetResourceId(v *string) *Subscription
- type UpdateSubscriptionInput
- type UpdateSubscriptionOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSubscriptionInput ¶
type CreateSubscriptionInput struct {
Subscription *Subscription `json:"subscription,omitempty"`
}
type CreateSubscriptionOutput ¶
type CreateSubscriptionOutput struct {
Subscription *Subscription `json:"subscription,omitempty"`
}
type DeleteSubscriptionInput ¶
type DeleteSubscriptionInput struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
type DeleteSubscriptionOutput ¶
type DeleteSubscriptionOutput struct{}
type ListSubscriptionsInput ¶
type ListSubscriptionsInput struct{}
type ListSubscriptionsOutput ¶
type ListSubscriptionsOutput struct {
Subscriptions []*Subscription `json:"subscriptions,omitempty"`
}
type ReadSubscriptionInput ¶
type ReadSubscriptionInput struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
type ReadSubscriptionOutput ¶
type ReadSubscriptionOutput struct {
Subscription *Subscription `json:"subscription,omitempty"`
}
type Service ¶
type Service interface { List(context.Context, *ListSubscriptionsInput) (*ListSubscriptionsOutput, error) Create(context.Context, *CreateSubscriptionInput) (*CreateSubscriptionOutput, error) Read(context.Context, *ReadSubscriptionInput) (*ReadSubscriptionOutput, error) Update(context.Context, *UpdateSubscriptionInput) (*UpdateSubscriptionOutput, error) Delete(context.Context, *DeleteSubscriptionInput) (*DeleteSubscriptionOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateSubscriptionInput) (*CreateSubscriptionOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteSubscriptionInput) (*DeleteSubscriptionOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListSubscriptionsInput) (*ListSubscriptionsOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadSubscriptionInput) (*ReadSubscriptionOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateSubscriptionInput) (*UpdateSubscriptionOutput, error)
type Subscription ¶
type Subscription struct { ID *string `json:"id,omitempty"` ResourceID *string `json:"resourceId,omitempty"` EventType *string `json:"eventType,omitempty"` Protocol *string `json:"protocol,omitempty"` Endpoint *string `json:"endpoint,omitempty"` Format map[string]interface{} `json:"eventFormat,omitempty"` // contains filtered or unexported fields }
func (Subscription) MarshalJSON ¶
func (o Subscription) MarshalJSON() ([]byte, error)
func (*Subscription) SetEndpoint ¶
func (o *Subscription) SetEndpoint(v *string) *Subscription
func (*Subscription) SetEventType ¶
func (o *Subscription) SetEventType(v *string) *Subscription
func (*Subscription) SetFormat ¶
func (o *Subscription) SetFormat(v map[string]interface{}) *Subscription
func (*Subscription) SetId ¶
func (o *Subscription) SetId(v *string) *Subscription
func (*Subscription) SetProtocol ¶
func (o *Subscription) SetProtocol(v *string) *Subscription
func (*Subscription) SetResourceId ¶
func (o *Subscription) SetResourceId(v *string) *Subscription
type UpdateSubscriptionInput ¶
type UpdateSubscriptionInput struct {
Subscription *Subscription `json:"subscription,omitempty"`
}
type UpdateSubscriptionOutput ¶
type UpdateSubscriptionOutput struct {
Subscription *Subscription `json:"subscription,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.