v1

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 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 IAMConfig added in v0.8.5

type IAMConfig struct {
	IssuerConfig *IssuerConfig `json:"issuer_config,omitempty"`
	IDMConfig    *IDMConfig    `json:"idm_config,omitempty"`
}

type IDMConfig added in v0.8.5

type IDMConfig struct {
	IDMType string `json:"idm_type,omitempty"`
}

type IssuerConfig added in v0.8.5

type IssuerConfig struct {
	URL      string `json:"url,omitempty"`
	ClientID string `json:"client_id,omitempty"`
}

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 Paging added in v0.10.0

type Paging struct {
	Page  *uint64 `json:"page,omitempty"`
	Count *uint64 `json:"count,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"`
	IAMConfig     *IAMConfig `json:"iam_config,omitempty"`
}

type TenantCreateRequest added in v0.10.0

type TenantCreateRequest struct {
	Tenant
}

type TenantFindRequest added in v0.8.12

type TenantFindRequest struct {
	Id          *string           `json:"id,omitempty"`
	Name        *string           `json:"name,omitempty"`
	Paging      *Paging           `json:"paging,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

type TenantListResponse added in v0.8.5

type TenantListResponse struct {
	Tenants []*TenantResponse `json:"tenants,omitempty"`
}

type TenantResponse

type TenantResponse struct {
	Tenant
}

type TenantUpdateRequest

type TenantUpdateRequest struct {
	Tenant
}

Jump to

Keyboard shortcuts

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