v1

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterNameProject

type ClusterNameProject struct {
	ClusterName string `json:"cluster_name,omitempty" description:"cluster name"`
	Project     string `json:"project,omitempty" description:"generated middle-part of gardener shoot namespace, e.g. 'ps5d42'"`
}

cluster-identification e.g. from prometheus-metrics

type MasterdataLookupRequest

type MasterdataLookupRequest struct {
	// search by name and project
	ClusterNameProject *ClusterNameProject `json:"cluster_name_project,omitempty" description:"lookup by clustername and shoot-project"`

	// OR search by ClusterID as returned by cloud-api (e.g. 345abc12-3321-4dbc-8d17-55c6ea4fcb38)
	ClusterID *string `` /* 130-byte string literal not displayed */

	// OR search by ProjectID as returned by cloud-api (e.g. 10241dd7-a8de-4856-8ac0-b55830b22036) at some point in time
	ProjectIDTime *ProjectIDTime `` /* 157-byte string literal not displayed */
}

MasterdataLookupRequest to specify which masterdata tenant and project to return

func (*MasterdataLookupRequest) Validate

func (mlr *MasterdataLookupRequest) Validate() error

Validate validates the request.

type MasterdataLookupResponse

type MasterdataLookupResponse struct {
	Tenant  *Tenant  `json:"tenant,omitempty" description:"tenant to which the project belongs"`
	Project *Project `json:"project,omitempty" description:"project"`
}

MasterdataLookupResponse contains the masterdata tenant and project

type Meta

type Meta struct {
	Id          string            `json:"id,omitempty"`
	Kind        string            `json:"kind,omitempty"`
	Apiversion  string            `json:"apiversion,omitempty"`
	Version     int64             `json:"version,omitempty"`
	CreatedTime *time.Time        `json:"created_time,omitempty"`
	UpdatedTime *time.Time        `json:"updated_time,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
	Labels      []string          `json:"labels,omitempty"`
}

type Project

type Project struct {
	Meta        *Meta     `json:"meta,omitempty"`
	Name        string    `json:"name,omitempty"`
	Description string    `json:"description,omitempty"`
	TenantId    string    `json:"tenant_id,omitempty"`
	Quotas      *QuotaSet `json:"quotas,omitempty"`
}

type ProjectCreateRequest

type ProjectCreateRequest struct {
	Project
}

type ProjectFindRequest

type ProjectFindRequest struct {
	Id          *string `json:"id,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	TenantId    *string `json:"tenant_id,omitempty"`
}

type ProjectIDTime

type ProjectIDTime struct {
	ProjectID string    `json:"project_id,omitempty" description:"projectID as returned by cloud-api (e.g. 10241dd7-a8de-4856-8ac0-b55830b22036)"`
	Time      time.Time `json:"time,omitempty" description:"point in time"`
}

type ProjectListResponse

type ProjectListResponse struct {
	Projects []*ProjectResponse `json:"projects,omitempty"`
}

type ProjectResponse

type ProjectResponse struct {
	Project
}

type ProjectUpdateRequest

type ProjectUpdateRequest struct {
	Project
}

type Quota

type Quota struct {
	Used  *int32 `json:"used,omitempty"`
	Quota *int32 `json:"quota,omitempty"`
}

type QuotaSet

type QuotaSet struct {
	Cluster *Quota `json:"cluster,omitempty"`
	Machine *Quota `json:"machine,omitempty"`
	Ip      *Quota `json:"ip,omitempty"`
	Project *Quota `json:"project,omitempty"`
}

type Tenant

type Tenant struct {
	Meta          *Meta     `json:"meta,omitempty"`
	Name          string    `json:"name,omitempty"`
	Description   string    `json:"description,omitempty"`
	DefaultQuotas *QuotaSet `json:"default_quotas,omitempty"`
	Quotas        *QuotaSet `json:"quotas,omitempty"`
}

type TenantResponse

type TenantResponse struct {
	Tenant *Tenant `json:"tenant,omitempty"`
}

type TenantUpdateRequest

type TenantUpdateRequest struct {
	Tenant *Tenant `json:"tenant,omitempty"`
}

Jump to

Keyboard shortcuts

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