Documentation ¶
Index ¶
- type Client
- func (c *Client) GetPlan(plans []Plan, planID string) (Plan, error)
- func (c *Client) ListImagesTags(ctx context.Context) ([]Tag, error)
- func (c *Client) ListPlans(ctx context.Context, productID string) ([]Plan, error)
- func (c *Client) ListProduct(ctx context.Context) ([]Product, error)
- func (c *Client) SavePlan(ctx context.Context, repo string, project string, productID string, plan Plan, ...) error
- func (c *Client) SubmitForReview(ctx context.Context, productID string, planID string) error
- type ClientOption
- type ImagesTags
- type Plan
- type Price
- type PricingComponent
- type Product
- type Repo
- type Repository
- type Tag
- type Tier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientOption ¶
type ClientOption func(c *Client)
ClientOption allows to configure a Client. It is used in NewClient.
type ImagesTags ¶
type Plan ¶
type Plan struct { ID string `json:"id"` Name string `json:"name"` Price Price `json:"price"` CertificationStatus string `json:"certification_status"` Description string `json:"description"` DownloadAttribute string `json:"download_attribute"` EUSA string `json:"eusa"` EUSAType string `json:"eusa_type"` Instructions string `json:"instructions"` IsDefault bool `json:"is_default"` IsOffline bool `json:"is_offline"` OfficialStatus string `json:"official_status"` PlanType string `json:"plan_type"` Rank int `json:"rank"` ReleaseNotes string `json:"release_notes"` Repositories []Repository `json:"repositories"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` RequestCertification bool `json:"request_certification"` }
type Price ¶
type Price struct { ID string `json:"id"` Name string `json:"name"` Label string `json:"label"` Duration int `json:"duration"` DurationPeriod string `json:"duration_period"` Trial int `json:"trial"` TrialPeriod string `json:"trial_period"` Expires bool `json:"expires"` PricingComponents []PricingComponent `json:"pricing_components"` }
type PricingComponent ¶
type Repository ¶
type Repository struct {
PublishersRepoName Repo `json:"publishers_repo_name"`
}
Click to show internal directories.
Click to hide internal directories.