v1

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v1_iam_proto protoreflect.FileDescriptor
View Source
var File_v1_meta_proto protoreflect.FileDescriptor
View Source
var File_v1_project_proto protoreflect.FileDescriptor
View Source
var File_v1_quota_proto protoreflect.FileDescriptor
View Source
var File_v1_tenant_proto protoreflect.FileDescriptor

Functions

func CheckErrorCode

func CheckErrorCode(err error, code codes.Code) bool

CheckErrorCode returns true, if the given err is not nil, is of type grpc Status and the code equals the given code.

func IsConflict

func IsConflict(err error) bool

IsConflict checks if the given error is a conflict error. Example: key already exists on create.

func IsInternal

func IsInternal(err error) bool

IsInternal checks if the given error is an internal server error.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound checks if the given error is a notfound error.

func IsOptimistickLockError

func IsOptimistickLockError(err error) bool

IsOptimistickLockError checks if the given error is a Optimistic Lock Error, which indicates that you read an entity and tried to update this entity, but it changed in the datastore by another party in the meantime.

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)

func RegisterTenantServiceServer

func RegisterTenantServiceServer(s *grpc.Server, srv TenantServiceServer)

Types

type ConnectorConfig

type ConnectorConfig struct {

	// the following are all mandatory
	IdmApiUrl      string `protobuf:"bytes,1,opt,name=idm_api_url,json=idmApiUrl,proto3" json:"idm_api_url,omitempty"`
	IdmApiUser     string `protobuf:"bytes,2,opt,name=idm_api_user,json=idmApiUser,proto3" json:"idm_api_user,omitempty"`
	IdmApiPassword string `protobuf:"bytes,3,opt,name=idm_api_password,json=idmApiPassword,proto3" json:"idm_api_password,omitempty"`
	IdmSystemId    string `protobuf:"bytes,4,opt,name=idm_system_id,json=idmSystemId,proto3" json:"idm_system_id,omitempty"`
	IdmAccessCode  string `protobuf:"bytes,5,opt,name=idm_access_code,json=idmAccessCode,proto3" json:"idm_access_code,omitempty"`
	IdmCustomerId  string `protobuf:"bytes,6,opt,name=idm_customer_id,json=idmCustomerId,proto3" json:"idm_customer_id,omitempty"`
	IdmGroupOu     string `protobuf:"bytes,7,opt,name=idm_group_ou,json=idmGroupOu,proto3" json:"idm_group_ou,omitempty"`
	// optional
	IdmGroupnameTemplate *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=idm_groupname_template,json=idmGroupnameTemplate,proto3" json:"idm_groupname_template,omitempty"`
	IdmDomainName        string                  `protobuf:"bytes,9,opt,name=idm_domain_name,json=idmDomainName,proto3" json:"idm_domain_name,omitempty"`
	IdmTenantPrefix      string                  `protobuf:"bytes,10,opt,name=idm_tenant_prefix,json=idmTenantPrefix,proto3" json:"idm_tenant_prefix,omitempty"`
	IdmSubmitter         string                  `protobuf:"bytes,11,opt,name=idm_submitter,json=idmSubmitter,proto3" json:"idm_submitter,omitempty"`
	IdmJobInfo           string                  `protobuf:"bytes,12,opt,name=idm_job_info,json=idmJobInfo,proto3" json:"idm_job_info,omitempty"`
	IdmReqSystem         string                  `protobuf:"bytes,13,opt,name=idm_req_system,json=idmReqSystem,proto3" json:"idm_req_system,omitempty"`
	IdmReqUser           string                  `protobuf:"bytes,14,opt,name=idm_req_user,json=idmReqUser,proto3" json:"idm_req_user,omitempty"`
	IdmReqEmail          string                  `protobuf:"bytes,15,opt,name=idm_req_email,json=idmReqEmail,proto3" json:"idm_req_email,omitempty"`
	// contains filtered or unexported fields
}

optional config if idm webhook is used to automatically create/delete groups/roles in the tenant idm

func (*ConnectorConfig) Descriptor deprecated

func (*ConnectorConfig) Descriptor() ([]byte, []int)

Deprecated: Use ConnectorConfig.ProtoReflect.Descriptor instead.

func (*ConnectorConfig) GetIdmAccessCode

func (x *ConnectorConfig) GetIdmAccessCode() string

func (*ConnectorConfig) GetIdmApiPassword

func (x *ConnectorConfig) GetIdmApiPassword() string

func (*ConnectorConfig) GetIdmApiUrl

func (x *ConnectorConfig) GetIdmApiUrl() string

func (*ConnectorConfig) GetIdmApiUser

func (x *ConnectorConfig) GetIdmApiUser() string

func (*ConnectorConfig) GetIdmCustomerId

func (x *ConnectorConfig) GetIdmCustomerId() string

func (*ConnectorConfig) GetIdmDomainName

func (x *ConnectorConfig) GetIdmDomainName() string

func (*ConnectorConfig) GetIdmGroupOu

func (x *ConnectorConfig) GetIdmGroupOu() string

func (*ConnectorConfig) GetIdmGroupnameTemplate

func (x *ConnectorConfig) GetIdmGroupnameTemplate() *wrapperspb.StringValue

func (*ConnectorConfig) GetIdmJobInfo

func (x *ConnectorConfig) GetIdmJobInfo() string

func (*ConnectorConfig) GetIdmReqEmail

func (x *ConnectorConfig) GetIdmReqEmail() string

func (*ConnectorConfig) GetIdmReqSystem

func (x *ConnectorConfig) GetIdmReqSystem() string

func (*ConnectorConfig) GetIdmReqUser

func (x *ConnectorConfig) GetIdmReqUser() string

func (*ConnectorConfig) GetIdmSubmitter

func (x *ConnectorConfig) GetIdmSubmitter() string

func (*ConnectorConfig) GetIdmSystemId

func (x *ConnectorConfig) GetIdmSystemId() string

func (*ConnectorConfig) GetIdmTenantPrefix

func (x *ConnectorConfig) GetIdmTenantPrefix() string

func (*ConnectorConfig) ProtoMessage

func (*ConnectorConfig) ProtoMessage()

func (*ConnectorConfig) ProtoReflect added in v0.7.2

func (x *ConnectorConfig) ProtoReflect() protoreflect.Message

func (*ConnectorConfig) Reset

func (x *ConnectorConfig) Reset()

func (*ConnectorConfig) String

func (x *ConnectorConfig) String() string

type IAMConfig

type IAMConfig struct {
	IssuerConfig *IssuerConfig         `protobuf:"bytes,1,opt,name=issuer_config,json=issuerConfig,proto3" json:"issuer_config,omitempty"`
	IdmConfig    *IDMConfig            `protobuf:"bytes,2,opt,name=idm_config,json=idmConfig,proto3" json:"idm_config,omitempty"`
	GroupConfig  *NamespaceGroupConfig `protobuf:"bytes,3,opt,name=group_config,json=groupConfig,proto3" json:"group_config,omitempty"`
	// contains filtered or unexported fields
}

func (*IAMConfig) Descriptor deprecated

func (*IAMConfig) Descriptor() ([]byte, []int)

Deprecated: Use IAMConfig.ProtoReflect.Descriptor instead.

func (*IAMConfig) GetGroupConfig

func (x *IAMConfig) GetGroupConfig() *NamespaceGroupConfig

func (*IAMConfig) GetIdmConfig

func (x *IAMConfig) GetIdmConfig() *IDMConfig

func (*IAMConfig) GetIssuerConfig

func (x *IAMConfig) GetIssuerConfig() *IssuerConfig

func (*IAMConfig) ProtoMessage

func (*IAMConfig) ProtoMessage()

func (*IAMConfig) ProtoReflect added in v0.7.2

func (x *IAMConfig) ProtoReflect() protoreflect.Message

func (*IAMConfig) Reset

func (x *IAMConfig) Reset()

func (*IAMConfig) String

func (x *IAMConfig) String() string

type IDMConfig

type IDMConfig struct {
	IdmType string `protobuf:"bytes,1,opt,name=idm_type,json=idmType,proto3" json:"idm_type,omitempty"`
	// optional
	ConnectorConfig *ConnectorConfig `protobuf:"bytes,2,opt,name=connector_config,json=connectorConfig,proto3" json:"connector_config,omitempty"`
	// contains filtered or unexported fields
}

mandatory config

func (*IDMConfig) Descriptor deprecated

func (*IDMConfig) Descriptor() ([]byte, []int)

Deprecated: Use IDMConfig.ProtoReflect.Descriptor instead.

func (*IDMConfig) GetConnectorConfig

func (x *IDMConfig) GetConnectorConfig() *ConnectorConfig

func (*IDMConfig) GetIdmType

func (x *IDMConfig) GetIdmType() string

func (*IDMConfig) ProtoMessage

func (*IDMConfig) ProtoMessage()

func (*IDMConfig) ProtoReflect added in v0.7.2

func (x *IDMConfig) ProtoReflect() protoreflect.Message

func (*IDMConfig) Reset

func (x *IDMConfig) Reset()

func (*IDMConfig) String

func (x *IDMConfig) String() string

type IssuerConfig

type IssuerConfig struct {
	Url      string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IssuerConfig) Descriptor deprecated

func (*IssuerConfig) Descriptor() ([]byte, []int)

Deprecated: Use IssuerConfig.ProtoReflect.Descriptor instead.

func (*IssuerConfig) GetClientId

func (x *IssuerConfig) GetClientId() string

func (*IssuerConfig) GetUrl

func (x *IssuerConfig) GetUrl() string

func (*IssuerConfig) ProtoMessage

func (*IssuerConfig) ProtoMessage()

func (*IssuerConfig) ProtoReflect added in v0.7.2

func (x *IssuerConfig) ProtoReflect() protoreflect.Message

func (*IssuerConfig) Reset

func (x *IssuerConfig) Reset()

func (*IssuerConfig) String

func (x *IssuerConfig) String() string

type Meta

type Meta struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Kind        string                 `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Apiversion  string                 `protobuf:"bytes,3,opt,name=apiversion,proto3" json:"apiversion,omitempty"`
	Version     int64                  `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
	Annotations map[string]string      `` /* 163-byte string literal not displayed */
	Labels      []string               `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

func (*Meta) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetAnnotations added in v0.5.0

func (x *Meta) GetAnnotations() map[string]string

func (*Meta) GetApiversion

func (x *Meta) GetApiversion() string

func (*Meta) GetCreatedTime

func (x *Meta) GetCreatedTime() *timestamppb.Timestamp

func (*Meta) GetId

func (x *Meta) GetId() string

func (*Meta) GetKind

func (x *Meta) GetKind() string

func (*Meta) GetLabels added in v0.5.0

func (x *Meta) GetLabels() []string

func (*Meta) GetUpdatedTime

func (x *Meta) GetUpdatedTime() *timestamppb.Timestamp

func (*Meta) GetVersion

func (x *Meta) GetVersion() int64

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect added in v0.7.2

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) SetAnnotations added in v0.5.0

func (m *Meta) SetAnnotations(annotations map[string]string)

func (*Meta) SetCreatedTime

func (m *Meta) SetCreatedTime(time *timestamppb.Timestamp)

func (*Meta) SetId

func (m *Meta) SetId(id string)

func (*Meta) SetLabels added in v0.5.0

func (m *Meta) SetLabels(labels []string)

func (*Meta) SetUpdatedTime

func (m *Meta) SetUpdatedTime(time *timestamppb.Timestamp)

func (*Meta) SetVersion

func (m *Meta) SetVersion(version int64)

func (*Meta) String

func (x *Meta) String() string

type NamespaceGroupConfig

type NamespaceGroupConfig struct {

	// no action is taken or any namespace in this list
	ExcludedNamespaces string `protobuf:"bytes,1,opt,name=excluded_namespaces,json=excludedNamespaces,proto3" json:"excluded_namespaces,omitempty"`
	// for each element a RoleBinding is created in any Namespace - ClusterRoles are bound with this name
	// admin,edit,view
	ExpectedGroupsList string `protobuf:"bytes,2,opt,name=expected_groups_list,json=expectedGroupsList,proto3" json:"expected_groups_list,omitempty"`
	// Maximum length of namespace-part in clusterGroupname and therefore in the corresponding groupname in the directory.
	// 20 chars für AD, given the naming-conventions
	NamespaceMaxLength int32 `protobuf:"varint,3,opt,name=namespace_max_length,json=namespaceMaxLength,proto3" json:"namespace_max_length,omitempty"`
	// The created RoleBindings will reference this group (from token).
	// oidc:{{ .Namespace }}-{{ .Group }}
	ClusterGroupnameTemplate string `` /* 135-byte string literal not displayed */
	// The RoleBindings will created with this name.
	// oidc-{{ .Namespace }}-{{ .Group }}
	RolebindingNameTemplate string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Config for group-rolebinding-controller

func (*NamespaceGroupConfig) Descriptor deprecated

func (*NamespaceGroupConfig) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceGroupConfig.ProtoReflect.Descriptor instead.

func (*NamespaceGroupConfig) GetClusterGroupnameTemplate

func (x *NamespaceGroupConfig) GetClusterGroupnameTemplate() string

func (*NamespaceGroupConfig) GetExcludedNamespaces

func (x *NamespaceGroupConfig) GetExcludedNamespaces() string

func (*NamespaceGroupConfig) GetExpectedGroupsList

func (x *NamespaceGroupConfig) GetExpectedGroupsList() string

func (*NamespaceGroupConfig) GetNamespaceMaxLength

func (x *NamespaceGroupConfig) GetNamespaceMaxLength() int32

func (*NamespaceGroupConfig) GetRolebindingNameTemplate

func (x *NamespaceGroupConfig) GetRolebindingNameTemplate() string

func (*NamespaceGroupConfig) ProtoMessage

func (*NamespaceGroupConfig) ProtoMessage()

func (*NamespaceGroupConfig) ProtoReflect added in v0.7.2

func (x *NamespaceGroupConfig) ProtoReflect() protoreflect.Message

func (*NamespaceGroupConfig) Reset

func (x *NamespaceGroupConfig) Reset()

func (*NamespaceGroupConfig) String

func (x *NamespaceGroupConfig) String() string

type Project

type Project struct {
	Meta        *Meta     `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Name        string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string    `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	TenantId    string    `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Quotas      *QuotaSet `protobuf:"bytes,5,opt,name=quotas,proto3" json:"quotas,omitempty"`
	// contains filtered or unexported fields
}

Project is the database model

func (*Project) APIVersion added in v0.6.1

func (p *Project) APIVersion() string

func (*Project) Descriptor deprecated

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetDescription

func (x *Project) GetDescription() string

func (*Project) GetMeta

func (x *Project) GetMeta() *Meta

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetQuotas

func (x *Project) GetQuotas() *QuotaSet

func (*Project) GetTenantId

func (x *Project) GetTenantId() string

func (*Project) JSONField

func (p *Project) JSONField() string

func (*Project) Kind added in v0.6.1

func (p *Project) Kind() string

func (*Project) NewProjectResponse

func (m *Project) NewProjectResponse() *ProjectResponse

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect added in v0.7.2

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) Scan

func (p *Project) Scan(value interface{}) error

Scan make the Project struct implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the struct fields.

func (*Project) Schema

func (p *Project) Schema() string

func (*Project) String

func (x *Project) String() string

func (*Project) TableName

func (p *Project) TableName() string

func (*Project) Value

func (p *Project) Value() (driver.Value, error)

Value make the Project struct implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the struct.

type ProjectCreateRequest

type ProjectCreateRequest struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectCreateRequest) Descriptor deprecated

func (*ProjectCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectCreateRequest.ProtoReflect.Descriptor instead.

func (*ProjectCreateRequest) GetProject

func (x *ProjectCreateRequest) GetProject() *Project

func (*ProjectCreateRequest) ProtoMessage

func (*ProjectCreateRequest) ProtoMessage()

func (*ProjectCreateRequest) ProtoReflect added in v0.7.2

func (x *ProjectCreateRequest) ProtoReflect() protoreflect.Message

func (*ProjectCreateRequest) Reset

func (x *ProjectCreateRequest) Reset()

func (*ProjectCreateRequest) String

func (x *ProjectCreateRequest) String() string

type ProjectDeleteRequest

type ProjectDeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectDeleteRequest) Descriptor deprecated

func (*ProjectDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectDeleteRequest.ProtoReflect.Descriptor instead.

func (*ProjectDeleteRequest) GetId

func (x *ProjectDeleteRequest) GetId() string

func (*ProjectDeleteRequest) NewProject

func (m *ProjectDeleteRequest) NewProject() *Project

func (*ProjectDeleteRequest) ProtoMessage

func (*ProjectDeleteRequest) ProtoMessage()

func (*ProjectDeleteRequest) ProtoReflect added in v0.7.2

func (x *ProjectDeleteRequest) ProtoReflect() protoreflect.Message

func (*ProjectDeleteRequest) Reset

func (x *ProjectDeleteRequest) Reset()

func (*ProjectDeleteRequest) String

func (x *ProjectDeleteRequest) String() string

type ProjectFindRequest

type ProjectFindRequest struct {
	Id          *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	TenantId    *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectFindRequest) Descriptor deprecated

func (*ProjectFindRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectFindRequest.ProtoReflect.Descriptor instead.

func (*ProjectFindRequest) GetDescription

func (x *ProjectFindRequest) GetDescription() *wrapperspb.StringValue

func (*ProjectFindRequest) GetId

func (*ProjectFindRequest) GetName

func (*ProjectFindRequest) GetTenantId

func (x *ProjectFindRequest) GetTenantId() *wrapperspb.StringValue

func (*ProjectFindRequest) ProtoMessage

func (*ProjectFindRequest) ProtoMessage()

func (*ProjectFindRequest) ProtoReflect added in v0.7.2

func (x *ProjectFindRequest) ProtoReflect() protoreflect.Message

func (*ProjectFindRequest) Reset

func (x *ProjectFindRequest) Reset()

func (*ProjectFindRequest) String

func (x *ProjectFindRequest) String() string

type ProjectGetHistoryRequest added in v0.7.0

type ProjectGetHistoryRequest struct {
	Id string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	At *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=at,proto3" json:"at,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectGetHistoryRequest) Descriptor deprecated added in v0.7.0

func (*ProjectGetHistoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectGetHistoryRequest.ProtoReflect.Descriptor instead.

func (*ProjectGetHistoryRequest) GetAt added in v0.7.0

func (*ProjectGetHistoryRequest) GetId added in v0.7.0

func (x *ProjectGetHistoryRequest) GetId() string

func (*ProjectGetHistoryRequest) ProtoMessage added in v0.7.0

func (*ProjectGetHistoryRequest) ProtoMessage()

func (*ProjectGetHistoryRequest) ProtoReflect added in v0.7.2

func (x *ProjectGetHistoryRequest) ProtoReflect() protoreflect.Message

func (*ProjectGetHistoryRequest) Reset added in v0.7.0

func (x *ProjectGetHistoryRequest) Reset()

func (*ProjectGetHistoryRequest) String added in v0.7.0

func (x *ProjectGetHistoryRequest) String() string

type ProjectGetRequest

type ProjectGetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectGetRequest) Descriptor deprecated

func (*ProjectGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectGetRequest.ProtoReflect.Descriptor instead.

func (*ProjectGetRequest) GetId

func (x *ProjectGetRequest) GetId() string

func (*ProjectGetRequest) ProtoMessage

func (*ProjectGetRequest) ProtoMessage()

func (*ProjectGetRequest) ProtoReflect added in v0.7.2

func (x *ProjectGetRequest) ProtoReflect() protoreflect.Message

func (*ProjectGetRequest) Reset

func (x *ProjectGetRequest) Reset()

func (*ProjectGetRequest) String

func (x *ProjectGetRequest) String() string

type ProjectListResponse

type ProjectListResponse struct {
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectListResponse) Descriptor deprecated

func (*ProjectListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProjectListResponse.ProtoReflect.Descriptor instead.

func (*ProjectListResponse) GetProjects

func (x *ProjectListResponse) GetProjects() []*Project

func (*ProjectListResponse) ProtoMessage

func (*ProjectListResponse) ProtoMessage()

func (*ProjectListResponse) ProtoReflect added in v0.7.2

func (x *ProjectListResponse) ProtoReflect() protoreflect.Message

func (*ProjectListResponse) Reset

func (x *ProjectListResponse) Reset()

func (*ProjectListResponse) String

func (x *ProjectListResponse) String() string

type ProjectResponse

type ProjectResponse struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectResponse) Descriptor deprecated

func (*ProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProjectResponse.ProtoReflect.Descriptor instead.

func (*ProjectResponse) GetProject

func (x *ProjectResponse) GetProject() *Project

func (*ProjectResponse) ProtoMessage

func (*ProjectResponse) ProtoMessage()

func (*ProjectResponse) ProtoReflect added in v0.7.2

func (x *ProjectResponse) ProtoReflect() protoreflect.Message

func (*ProjectResponse) Reset

func (x *ProjectResponse) Reset()

func (*ProjectResponse) String

func (x *ProjectResponse) String() string

type ProjectServiceClient

ProjectServiceClient is the client API for ProjectService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ProjectUpdateRequest

type ProjectUpdateRequest struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectUpdateRequest) Descriptor deprecated

func (*ProjectUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectUpdateRequest.ProtoReflect.Descriptor instead.

func (*ProjectUpdateRequest) GetProject added in v0.6.0

func (x *ProjectUpdateRequest) GetProject() *Project

func (*ProjectUpdateRequest) ProtoMessage

func (*ProjectUpdateRequest) ProtoMessage()

func (*ProjectUpdateRequest) ProtoReflect added in v0.7.2

func (x *ProjectUpdateRequest) ProtoReflect() protoreflect.Message

func (*ProjectUpdateRequest) Reset

func (x *ProjectUpdateRequest) Reset()

func (*ProjectUpdateRequest) String

func (x *ProjectUpdateRequest) String() string

type Quota

type Quota struct {

	// quota is the maximum amount for the current QuotaSet, can be nil
	Quota *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=quota,proto3" json:"quota,omitempty"`
	// contains filtered or unexported fields
}

Quota is the actual maximum amount

func (*Quota) Descriptor deprecated

func (*Quota) Descriptor() ([]byte, []int)

Deprecated: Use Quota.ProtoReflect.Descriptor instead.

func (*Quota) GetQuota

func (x *Quota) GetQuota() *wrapperspb.Int32Value

func (*Quota) ProtoMessage

func (*Quota) ProtoMessage()

func (*Quota) ProtoReflect added in v0.7.2

func (x *Quota) ProtoReflect() protoreflect.Message

func (*Quota) Reset

func (x *Quota) Reset()

func (*Quota) String

func (x *Quota) String() string

type QuotaSet

type QuotaSet struct {

	// cluster the amount of clusters
	Cluster *Quota `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// machine the amount of machines
	Machine *Quota `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
	// ip the amount of aquired ip´s
	Ip *Quota `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// project the amount of projects of a tenant
	Project *Quota `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

QuotaSet defines the types of possible Quotas might be specified by project or tenant whatever quota is reached first counts it always defines the max amount of this type

func (*QuotaSet) Descriptor deprecated

func (*QuotaSet) Descriptor() ([]byte, []int)

Deprecated: Use QuotaSet.ProtoReflect.Descriptor instead.

func (*QuotaSet) GetCluster

func (x *QuotaSet) GetCluster() *Quota

func (*QuotaSet) GetIp

func (x *QuotaSet) GetIp() *Quota

func (*QuotaSet) GetMachine

func (x *QuotaSet) GetMachine() *Quota

func (*QuotaSet) GetProject

func (x *QuotaSet) GetProject() *Quota

func (*QuotaSet) ProtoMessage

func (*QuotaSet) ProtoMessage()

func (*QuotaSet) ProtoReflect added in v0.7.2

func (x *QuotaSet) ProtoReflect() protoreflect.Message

func (*QuotaSet) Reset

func (x *QuotaSet) Reset()

func (*QuotaSet) String

func (x *QuotaSet) String() string

type Tenant

type Tenant struct {
	Meta          *Meta      `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Name          string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description   string     `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	DefaultQuotas *QuotaSet  `protobuf:"bytes,4,opt,name=default_quotas,json=defaultQuotas,proto3" json:"default_quotas,omitempty"`
	Quotas        *QuotaSet  `protobuf:"bytes,5,opt,name=quotas,proto3" json:"quotas,omitempty"`
	IamConfig     *IAMConfig `protobuf:"bytes,6,opt,name=iam_config,json=iamConfig,proto3" json:"iam_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Tenant) APIVersion added in v0.6.1

func (t *Tenant) APIVersion() string

func (*Tenant) Descriptor deprecated

func (*Tenant) Descriptor() ([]byte, []int)

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetDefaultQuotas

func (x *Tenant) GetDefaultQuotas() *QuotaSet

func (*Tenant) GetDescription

func (x *Tenant) GetDescription() string

func (*Tenant) GetIamConfig

func (x *Tenant) GetIamConfig() *IAMConfig

func (*Tenant) GetMeta

func (x *Tenant) GetMeta() *Meta

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetQuotas

func (x *Tenant) GetQuotas() *QuotaSet

func (*Tenant) JSONField

func (t *Tenant) JSONField() string

func (*Tenant) Kind added in v0.6.1

func (t *Tenant) Kind() string

func (*Tenant) NewTenantResponse

func (m *Tenant) NewTenantResponse() *TenantResponse

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect added in v0.7.2

func (x *Tenant) ProtoReflect() protoreflect.Message

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) Scan

func (t *Tenant) Scan(value interface{}) error

Scan make the Tenant struct implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the struct fields.

func (*Tenant) Schema

func (t *Tenant) Schema() string

func (*Tenant) String

func (x *Tenant) String() string

func (*Tenant) TableName

func (t *Tenant) TableName() string

func (*Tenant) Value

func (t *Tenant) Value() (driver.Value, error)

Value make the Tenant struct implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the struct.

type TenantCreateRequest

type TenantCreateRequest struct {
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantCreateRequest) Descriptor deprecated

func (*TenantCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantCreateRequest.ProtoReflect.Descriptor instead.

func (*TenantCreateRequest) GetTenant

func (x *TenantCreateRequest) GetTenant() *Tenant

func (*TenantCreateRequest) ProtoMessage

func (*TenantCreateRequest) ProtoMessage()

func (*TenantCreateRequest) ProtoReflect added in v0.7.2

func (x *TenantCreateRequest) ProtoReflect() protoreflect.Message

func (*TenantCreateRequest) Reset

func (x *TenantCreateRequest) Reset()

func (*TenantCreateRequest) String

func (x *TenantCreateRequest) String() string

type TenantDeleteRequest

type TenantDeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantDeleteRequest) Descriptor deprecated

func (*TenantDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantDeleteRequest.ProtoReflect.Descriptor instead.

func (*TenantDeleteRequest) GetId

func (x *TenantDeleteRequest) GetId() string

func (*TenantDeleteRequest) NewTenant

func (m *TenantDeleteRequest) NewTenant() *Tenant

func (*TenantDeleteRequest) ProtoMessage

func (*TenantDeleteRequest) ProtoMessage()

func (*TenantDeleteRequest) ProtoReflect added in v0.7.2

func (x *TenantDeleteRequest) ProtoReflect() protoreflect.Message

func (*TenantDeleteRequest) Reset

func (x *TenantDeleteRequest) Reset()

func (*TenantDeleteRequest) String

func (x *TenantDeleteRequest) String() string

type TenantFindRequest

type TenantFindRequest struct {
	Id   *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantFindRequest) Descriptor deprecated

func (*TenantFindRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantFindRequest.ProtoReflect.Descriptor instead.

func (*TenantFindRequest) GetId

func (*TenantFindRequest) GetName

func (*TenantFindRequest) ProtoMessage

func (*TenantFindRequest) ProtoMessage()

func (*TenantFindRequest) ProtoReflect added in v0.7.2

func (x *TenantFindRequest) ProtoReflect() protoreflect.Message

func (*TenantFindRequest) Reset

func (x *TenantFindRequest) Reset()

func (*TenantFindRequest) String

func (x *TenantFindRequest) String() string

type TenantGetHistoryRequest added in v0.7.0

type TenantGetHistoryRequest struct {
	Id string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	At *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=at,proto3" json:"at,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantGetHistoryRequest) Descriptor deprecated added in v0.7.0

func (*TenantGetHistoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantGetHistoryRequest.ProtoReflect.Descriptor instead.

func (*TenantGetHistoryRequest) GetAt added in v0.7.0

func (*TenantGetHistoryRequest) GetId added in v0.7.0

func (x *TenantGetHistoryRequest) GetId() string

func (*TenantGetHistoryRequest) ProtoMessage added in v0.7.0

func (*TenantGetHistoryRequest) ProtoMessage()

func (*TenantGetHistoryRequest) ProtoReflect added in v0.7.2

func (x *TenantGetHistoryRequest) ProtoReflect() protoreflect.Message

func (*TenantGetHistoryRequest) Reset added in v0.7.0

func (x *TenantGetHistoryRequest) Reset()

func (*TenantGetHistoryRequest) String added in v0.7.0

func (x *TenantGetHistoryRequest) String() string

type TenantGetRequest

type TenantGetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantGetRequest) Descriptor deprecated

func (*TenantGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantGetRequest.ProtoReflect.Descriptor instead.

func (*TenantGetRequest) GetId

func (x *TenantGetRequest) GetId() string

func (*TenantGetRequest) ProtoMessage

func (*TenantGetRequest) ProtoMessage()

func (*TenantGetRequest) ProtoReflect added in v0.7.2

func (x *TenantGetRequest) ProtoReflect() protoreflect.Message

func (*TenantGetRequest) Reset

func (x *TenantGetRequest) Reset()

func (*TenantGetRequest) String

func (x *TenantGetRequest) String() string

type TenantListResponse

type TenantListResponse struct {
	Tenants []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantListResponse) Descriptor deprecated

func (*TenantListResponse) Descriptor() ([]byte, []int)

Deprecated: Use TenantListResponse.ProtoReflect.Descriptor instead.

func (*TenantListResponse) GetTenants

func (x *TenantListResponse) GetTenants() []*Tenant

func (*TenantListResponse) ProtoMessage

func (*TenantListResponse) ProtoMessage()

func (*TenantListResponse) ProtoReflect added in v0.7.2

func (x *TenantListResponse) ProtoReflect() protoreflect.Message

func (*TenantListResponse) Reset

func (x *TenantListResponse) Reset()

func (*TenantListResponse) String

func (x *TenantListResponse) String() string

type TenantResponse

type TenantResponse struct {
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantResponse) Descriptor deprecated

func (*TenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use TenantResponse.ProtoReflect.Descriptor instead.

func (*TenantResponse) GetTenant

func (x *TenantResponse) GetTenant() *Tenant

func (*TenantResponse) ProtoMessage

func (*TenantResponse) ProtoMessage()

func (*TenantResponse) ProtoReflect added in v0.7.2

func (x *TenantResponse) ProtoReflect() protoreflect.Message

func (*TenantResponse) Reset

func (x *TenantResponse) Reset()

func (*TenantResponse) String

func (x *TenantResponse) String() string

type TenantServiceClient

TenantServiceClient is the client API for TenantService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type TenantServiceServer

TenantServiceServer is the server API for TenantService service.

type TenantUpdateRequest

type TenantUpdateRequest struct {
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantUpdateRequest) Descriptor deprecated

func (*TenantUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantUpdateRequest.ProtoReflect.Descriptor instead.

func (*TenantUpdateRequest) GetTenant

func (x *TenantUpdateRequest) GetTenant() *Tenant

func (*TenantUpdateRequest) ProtoMessage

func (*TenantUpdateRequest) ProtoMessage()

func (*TenantUpdateRequest) ProtoReflect added in v0.7.2

func (x *TenantUpdateRequest) ProtoReflect() protoreflect.Message

func (*TenantUpdateRequest) Reset

func (x *TenantUpdateRequest) Reset()

func (*TenantUpdateRequest) String

func (x *TenantUpdateRequest) String() string

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectServiceServer) Create

func (*UnimplementedProjectServiceServer) Delete

func (*UnimplementedProjectServiceServer) Find

func (*UnimplementedProjectServiceServer) Get

func (*UnimplementedProjectServiceServer) GetHistory added in v0.7.0

func (*UnimplementedProjectServiceServer) Update

type UnimplementedTenantServiceServer

type UnimplementedTenantServiceServer struct {
}

UnimplementedTenantServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTenantServiceServer) Create

func (*UnimplementedTenantServiceServer) Delete

func (*UnimplementedTenantServiceServer) Find

func (*UnimplementedTenantServiceServer) Get

func (*UnimplementedTenantServiceServer) GetHistory added in v0.7.0

func (*UnimplementedTenantServiceServer) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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