forked from anchore/kubernetes-admission-controller
/
subscription.go
36 lines (27 loc) · 1021 Bytes
/
subscription.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Anchore Engine API Server
*
* This is the Anchore Engine API. Provides the primary external API for users of the service.
*
* API version: 0.1.9
* Contact: nurmi@anchore.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// Subscription entry
type Subscription struct {
// The key value that the subscription references. E.g. a tag value or a repo name.
SubscriptionKey string `json:"subscription_key,omitempty"`
// The type of the subscription
SubscriptionType string `json:"subscription_type,omitempty"`
// The value of the subscription target
SubscriptionValue string `json:"subscription_value,omitempty"`
// The userId of the subscribed user
UserId string `json:"userId,omitempty"`
// Is the subscription currently active
Active bool `json:"active,omitempty"`
// the unique id for this subscription record
SubscriptionId string `json:"subscription_id,omitempty"`
}
// List of Subscriptions
type SubscriptionList []Subscription