docker

package
v0.0.0-...-3681401 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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
}

func NewClient

func NewClient(username string, password string, publisherID string, dryRun bool, opts ...ClientOption) (*Client, error)

func (*Client) GetPlan

func (c *Client) GetPlan(plans []Plan, planID string) (Plan, error)

func (*Client) ListImagesTags

func (c *Client) ListImagesTags(ctx context.Context) ([]Tag, error)

func (*Client) ListPlans

func (c *Client) ListPlans(ctx context.Context, productID string) ([]Plan, error)

func (*Client) ListProduct

func (c *Client) ListProduct(ctx context.Context) ([]Product, error)

func (*Client) SavePlan

func (c *Client) SavePlan(ctx context.Context, repo string, project string, productID string, plan Plan, selectedTags []string) error

func (*Client) SubmitForReview

func (c *Client) SubmitForReview(ctx context.Context, productID string, planID string) error

type ClientOption

type ClientOption func(c *Client)

ClientOption allows to configure a Client. It is used in NewClient.

type ImagesTags

type ImagesTags struct {
	Next     string `json:"next"`
	Previous string `json:"previous"`
	Results  []Tag  `json:"results"`
}

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 PricingComponent struct {
	Name            string `json:"name"`
	Label           string `json:"label"`
	UnitOfMeasure   string `json:"unit_of_measure"`
	ChargeType      string `json:"charge_type"`
	ChargeModel     string `json:"charge_model"`
	DefaultQuantity int    `json:"default_quantity"`
	Tiers           []Tier `json:"tiers"`
}

type Product

type Product struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Repo

type Repo struct {
	Namespace string `json:"namespace"`
	RepoName  string `json:"reponame"`
	Tag       string `json:"tag"`
}

type Repository

type Repository struct {
	PublishersRepoName Repo `json:"publishers_repo_name"`
}

type Tag

type Tag struct {
	Name        string    `json:"name"`
	LastUpdated time.Time `json:"last_updated"`
}

type Tier

type Tier struct {
	LowerThreshold int    `json:"lower_threshold"`
	UpperThreshold int    `json:"upper_threshold"`
	PricingType    string `json:"pricing_type"`
	Price          int    `json:"price"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL