apiv1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TenantRole_name = map[int32]string{
		0: "TENANT_ROLE_UNSPECIFIED",
		1: "TENANT_ROLE_ADMIN",
		2: "TENANT_ROLE_EDITOR",
		3: "TENANT_ROLE_VIEWER",
		4: "TENANT_ROLE_GUEST",
	}
	TenantRole_value = map[string]int32{
		"TENANT_ROLE_UNSPECIFIED": 0,
		"TENANT_ROLE_ADMIN":       1,
		"TENANT_ROLE_EDITOR":      2,
		"TENANT_ROLE_VIEWER":      3,
		"TENANT_ROLE_GUEST":       4,
	}
)

Enum value maps for TenantRole.

View Source
var (
	ProjectRole_name = map[int32]string{
		0: "PROJECT_ROLE_UNSPECIFIED",
		1: "PROJECT_ROLE_ADMIN",
		2: "PROJECT_ROLE_EDITOR",
		3: "PROJECT_ROLE_VIEWER",
	}
	ProjectRole_value = map[string]int32{
		"PROJECT_ROLE_UNSPECIFIED": 0,
		"PROJECT_ROLE_ADMIN":       1,
		"PROJECT_ROLE_EDITOR":      2,
		"PROJECT_ROLE_VIEWER":      3,
	}
)

Enum value maps for ProjectRole.

View Source
var (
	OperatorRole_name = map[int32]string{
		0: "OPERATOR_ROLE_UNSPECIFIED",
		1: "OPERATOR_ROLE_EDITOR",
		2: "OPERATOR_ROLE_VIEWER",
	}
	OperatorRole_value = map[string]int32{
		"OPERATOR_ROLE_UNSPECIFIED": 0,
		"OPERATOR_ROLE_EDITOR":      1,
		"OPERATOR_ROLE_VIEWER":      2,
	}
)

Enum value maps for OperatorRole.

View Source
var (
	Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "VISIBILITY_PUBLIC",
		2: "VISIBILITY_SELF",
	}
	Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"VISIBILITY_PUBLIC":      1,
		"VISIBILITY_SELF":        2,
	}
)

Enum value maps for Visibility.

View Source
var (
	Auditing_name = map[int32]string{
		0: "AUDITING_UNSPECIFIED",
		1: "AUDITING_INCLUDED",
		2: "AUDITING_EXCLUDED",
	}
	Auditing_value = map[string]int32{
		"AUDITING_UNSPECIFIED": 0,
		"AUDITING_INCLUDED":    1,
		"AUDITING_EXCLUDED":    2,
	}
)

Enum value maps for Auditing.

View Source
var (
	OptimisticLockingStrategy_name = map[int32]string{
		0: "OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED",
		1: "OPTIMISTIC_LOCKING_STRATEGY_CLIENT",
		2: "OPTIMISTIC_LOCKING_STRATEGY_SERVER",
	}
	OptimisticLockingStrategy_value = map[string]int32{
		"OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED": 0,
		"OPTIMISTIC_LOCKING_STRATEGY_CLIENT":      1,
		"OPTIMISTIC_LOCKING_STRATEGY_SERVER":      2,
	}
)

Enum value maps for OptimisticLockingStrategy.

View Source
var (
	// TenantRoles are used to define which tenant role a logged in user must provide to call this method
	//
	// repeated fits.api.v1.TenantRole tenant_roles = 51000;
	E_TenantRoles = &file_fits_api_v1_common_proto_extTypes[0]
	// ProjectRoles are used to define which project role a logged in user must provide to call this method
	//
	// repeated fits.api.v1.ProjectRole project_roles = 51001;
	E_ProjectRoles = &file_fits_api_v1_common_proto_extTypes[1]
	// OperatorRoles are used to define which operator role a logged in user must provide to call this method
	//
	// repeated fits.api.v1.OperatorRole operator_roles = 51002;
	E_OperatorRoles = &file_fits_api_v1_common_proto_extTypes[2]
	// Visibility defines the visibility of this method, this is used to have public or self visible methods
	//
	// optional fits.api.v1.Visibility visibility = 51003;
	E_Visibility = &file_fits_api_v1_common_proto_extTypes[3]
	// Auditing defines if calls to this method should be audited or not
	//
	// optional fits.api.v1.Auditing auditing = 51004;
	E_Auditing = &file_fits_api_v1_common_proto_extTypes[4]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	ServiceStatus_name = map[int32]string{
		0: "SERVICE_STATUS_UNSPECIFIED",
		1: "SERVICE_STATUS_DEGRADED",
		2: "SERVICE_STATUS_UNHEALTHY",
		3: "SERVICE_STATUS_HEALTHY",
	}
	ServiceStatus_value = map[string]int32{
		"SERVICE_STATUS_UNSPECIFIED": 0,
		"SERVICE_STATUS_DEGRADED":    1,
		"SERVICE_STATUS_UNHEALTHY":   2,
		"SERVICE_STATUS_HEALTHY":     3,
	}
)

Enum value maps for ServiceStatus.

View Source
var (
	Service_name = map[int32]string{
		0: "SERVICE_UNSPECIFIED",
		1: "SERVICE_K8S",
	}
	Service_value = map[string]int32{
		"SERVICE_UNSPECIFIED": 0,
		"SERVICE_K8S":         1,
	}
)

Enum value maps for Service.

View Source
var (
	// Macaddress returns true if the given string is a valid macadress
	//
	// optional bool macaddress = 80048951;
	E_Macaddress = &file_fits_api_v1_predefined_rules_proto_extTypes[0]
	// IsName returns true if name field satisfies our requirements
	//
	// optional bool is_name = 80048952;
	E_IsName = &file_fits_api_v1_predefined_rules_proto_extTypes[1]
	// IsDescription returns true if description field satisfies our requirements
	//
	// optional bool is_description = 80048953;
	E_IsDescription = &file_fits_api_v1_predefined_rules_proto_extTypes[2]
	// IsPartition returns true if partition field satisfies our requirements
	//
	// optional bool is_partition = 80048954;
	E_IsPartition = &file_fits_api_v1_predefined_rules_proto_extTypes[3]
	// IsPrefix validates if the given string is a valid prefix
	//
	// optional bool is_prefix = 80048955;
	E_IsPrefix = &file_fits_api_v1_predefined_rules_proto_extTypes[4]
	// IsUri validates if the given string is a valid URI
	//
	// optional bool is_uri = 80048956;
	E_IsUri = &file_fits_api_v1_predefined_rules_proto_extTypes[5]
	// IsIpOrHostname validates that the given string is either a ip or a hostname
	//
	// optional bool is_ip_or_hostname = 80048957;
	E_IsIpOrHostname = &file_fits_api_v1_predefined_rules_proto_extTypes[6]
	// Trimmed enforces the string to be trimmed, e.g. no whitespaces at the begin and end
	//
	// optional bool trimmed = 80048958;
	E_Trimmed = &file_fits_api_v1_predefined_rules_proto_extTypes[7]
	// IsIpv4Cidr validates if the given string is a valid IPv4 CIDR, e.g. 10.0.0.0/24
	//
	// optional bool is_ipv4_cidr = 80048960;
	E_IsIpv4Cidr = &file_fits_api_v1_predefined_rules_proto_extTypes[8]
	// IsTenantSubjectPermission returns true if name field satisfies our requirements.
	//
	// optional bool is_tenant_subject_permission = 80048962;
	E_IsTenantSubjectPermission = &file_fits_api_v1_predefined_rules_proto_extTypes[9]
	// IsProjectSubjectPermission returns true if name field satisfies our requirements.
	//
	// optional bool is_project_subject_permission = 80048963;
	E_IsProjectSubjectPermission = &file_fits_api_v1_predefined_rules_proto_extTypes[10]
)

Extension fields to validate.StringRules.

View Source
var (
	// Prefixes validates if a slice of prefixes in string form are valid
	//
	// optional bool prefixes = 80058951;
	E_Prefixes = &file_fits_api_v1_predefined_rules_proto_extTypes[11]
	// Ips validates if a slice of ips in string form are valid
	//
	// optional bool ips = 80058952;
	E_Ips = &file_fits_api_v1_predefined_rules_proto_extTypes[12]
	// AreHostAndPort validates if a slice of strings are all in the form of <ip | host>:<port>
	//
	// optional bool are_host_and_port = 80058953;
	E_AreHostAndPort = &file_fits_api_v1_predefined_rules_proto_extTypes[13]
	// All Trimmed enforces all strings to be trimmed, e.g. no whitespaces at the begin and end
	//
	// optional bool all_trimmed = 80058954;
	E_AllTrimmed = &file_fits_api_v1_predefined_rules_proto_extTypes[14]
	// Are Names returns true if all strings given are names
	//
	// optional bool are_names = 80058955;
	E_AreNames = &file_fits_api_v1_predefined_rules_proto_extTypes[15]
)

Extension fields to validate.RepeatedRules.

View Source
var (
	// Keys and Values trimmed enforces all map keys and values to be trimmed, e.g. no whitespaces at the begin and end
	//
	// optional bool keys_and_values_trimmed = 80068951;
	E_KeysAndValuesTrimmed = &file_fits_api_v1_predefined_rules_proto_extTypes[16]
	// Keys trimmed enforces all map keys and values to be trimmed, e.g. no whitespaces at the begin and end
	//
	// optional bool keys_trimmed = 80068952;
	E_KeysTrimmed = &file_fits_api_v1_predefined_rules_proto_extTypes[17]
	// ProjectRolesKeysValid ensures that project roles keys met our requirements.
	//
	// optional bool project_roles_keys_valid = 80068953;
	E_ProjectRolesKeysValid = &file_fits_api_v1_predefined_rules_proto_extTypes[18]
	// TenantRolesKeysValid ensures that tenant roles keys met our requirements.
	//
	// optional bool tenant_roles_keys_valid = 80068954;
	E_TenantRolesKeysValid = &file_fits_api_v1_predefined_rules_proto_extTypes[19]
)

Extension fields to validate.MapRules.

View Source
var (
	TokenType_name = map[int32]string{
		0: "TOKEN_TYPE_UNSPECIFIED",
		1: "TOKEN_TYPE_API",
		2: "TOKEN_TYPE_USER",
	}
	TokenType_value = map[string]int32{
		"TOKEN_TYPE_UNSPECIFIED": 0,
		"TOKEN_TYPE_API":         1,
		"TOKEN_TYPE_USER":        2,
	}
)

Enum value maps for TokenType.

View Source
var (
	// StringValue which can be set to a enum
	//
	// optional string enum_string_value = 52000;
	E_EnumStringValue = &file_fits_api_v1_common_proto_extTypes[5]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_fits_api_v1_common_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_health_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_method_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_predefined_rules_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_project_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_tenant_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_token_proto protoreflect.FileDescriptor
View Source
var File_fits_api_v1_version_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Auditing

type Auditing int32

Auditing option specified per service method by default all service methods are included add the auditing option if you want to exclude a method in auditing

const (
	// AUDITING_UNSPECIFIED is not specified
	Auditing_AUDITING_UNSPECIFIED Auditing = 0
	// AUDITING_INCLUDED if a method is annotated with this, all calls are audited
	Auditing_AUDITING_INCLUDED Auditing = 1
	// AUDITING_EXCLUDED if a method is annotated with this, no calls are audited
	Auditing_AUDITING_EXCLUDED Auditing = 2
)

func (Auditing) Descriptor

func (Auditing) Descriptor() protoreflect.EnumDescriptor

func (Auditing) Enum

func (x Auditing) Enum() *Auditing

func (Auditing) EnumDescriptor deprecated

func (Auditing) EnumDescriptor() ([]byte, []int)

Deprecated: Use Auditing.Descriptor instead.

func (Auditing) Number

func (x Auditing) Number() protoreflect.EnumNumber

func (Auditing) String

func (x Auditing) String() string

func (Auditing) Type

type Health

type Health struct {

	// Services contains the health of all individual services
	Services []*HealthStatus `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

Health reports the health status of all services.

func (*Health) Descriptor deprecated

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

Deprecated: Use Health.ProtoReflect.Descriptor instead.

func (*Health) GetServices

func (x *Health) GetServices() []*HealthStatus

func (*Health) ProtoMessage

func (*Health) ProtoMessage()

func (*Health) ProtoReflect

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

func (*Health) Reset

func (x *Health) Reset()

func (*Health) String

func (x *Health) String() string

type HealthServiceGetRequest

type HealthServiceGetRequest struct {
	// contains filtered or unexported fields
}

HealthServiceGetRequest is the request payload for getting the health of the system.

func (*HealthServiceGetRequest) Descriptor deprecated

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

Deprecated: Use HealthServiceGetRequest.ProtoReflect.Descriptor instead.

func (*HealthServiceGetRequest) ProtoMessage

func (*HealthServiceGetRequest) ProtoMessage()

func (*HealthServiceGetRequest) ProtoReflect

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

func (*HealthServiceGetRequest) Reset

func (x *HealthServiceGetRequest) Reset()

func (*HealthServiceGetRequest) String

func (x *HealthServiceGetRequest) String() string

type HealthServiceGetResponse

type HealthServiceGetResponse struct {

	// Health contains the overall health of the system
	Health *Health `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"`
	// contains filtered or unexported fields
}

HealthServiceGetResponse is the response payload for getting the health of the system.

func (*HealthServiceGetResponse) Descriptor deprecated

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

Deprecated: Use HealthServiceGetResponse.ProtoReflect.Descriptor instead.

func (*HealthServiceGetResponse) GetHealth

func (x *HealthServiceGetResponse) GetHealth() *Health

func (*HealthServiceGetResponse) ProtoMessage

func (*HealthServiceGetResponse) ProtoMessage()

func (*HealthServiceGetResponse) ProtoReflect

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

func (*HealthServiceGetResponse) Reset

func (x *HealthServiceGetResponse) Reset()

func (*HealthServiceGetResponse) String

func (x *HealthServiceGetResponse) String() string

type HealthStatus

type HealthStatus struct {

	// Name is the name of the service
	Name Service `protobuf:"varint,1,opt,name=name,proto3,enum=fits.api.v1.Service" json:"name,omitempty"`
	// Status is the status of this service
	Status ServiceStatus `protobuf:"varint,2,opt,name=status,proto3,enum=fits.api.v1.ServiceStatus" json:"status,omitempty"`
	// Message describes the reason for the unhealthy status if possible
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// Partitions describes the health of the service by partition
	Partitions map[string]*PartitionHealth `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

HealthStatus represents the health status of one service.

func (*HealthStatus) Descriptor deprecated

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

Deprecated: Use HealthStatus.ProtoReflect.Descriptor instead.

func (*HealthStatus) GetMessage

func (x *HealthStatus) GetMessage() string

func (*HealthStatus) GetName

func (x *HealthStatus) GetName() Service

func (*HealthStatus) GetPartitions

func (x *HealthStatus) GetPartitions() map[string]*PartitionHealth

func (*HealthStatus) GetStatus

func (x *HealthStatus) GetStatus() ServiceStatus

func (*HealthStatus) ProtoMessage

func (*HealthStatus) ProtoMessage()

func (*HealthStatus) ProtoReflect

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

func (*HealthStatus) Reset

func (x *HealthStatus) Reset()

func (*HealthStatus) String

func (x *HealthStatus) String() string

type Labels

type Labels struct {

	// Labels consists labels
	Labels map[string]string `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

Labels define additional information to a entity

func (*Labels) Descriptor deprecated

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

Deprecated: Use Labels.ProtoReflect.Descriptor instead.

func (*Labels) GetLabels

func (x *Labels) GetLabels() map[string]string

func (*Labels) ProtoMessage

func (*Labels) ProtoMessage()

func (*Labels) ProtoReflect

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

func (*Labels) Reset

func (x *Labels) Reset()

func (*Labels) String

func (x *Labels) String() string

type Meta

type Meta struct {

	// Tags on this entity
	Labels *Labels `protobuf:"bytes,1,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// CreatedAt is the date when this entity was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// UpdatedAt is the date when this entity was updated
	// must be part of the update request to ensure optimistic locking
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Generation identifies how often this entity was modified since creation.
	Generation uint64 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"`
	// contains filtered or unexported fields
}

Meta of a message

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetCreatedAt

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

func (*Meta) GetGeneration

func (x *Meta) GetGeneration() uint64

func (*Meta) GetLabels

func (x *Meta) GetLabels() *Labels

func (*Meta) GetUpdatedAt

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

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type MethodPermission

type MethodPermission struct {

	// Subject maybe either the project or the tenant
	// for which the methods should be allowed
	//
	// asterisk (*) can be specified to match any subject
	// empty string ("") can be specified for requests that do not require a subject, e.g. partition list
	// otherwise either a projectid or a tenant login should be specified
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// Methods which should be accessible
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

MethodPermission is a mapping from a subject/project to a service method

func (*MethodPermission) Descriptor deprecated

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

Deprecated: Use MethodPermission.ProtoReflect.Descriptor instead.

func (*MethodPermission) GetMethods

func (x *MethodPermission) GetMethods() []string

func (*MethodPermission) GetSubject

func (x *MethodPermission) GetSubject() string

func (*MethodPermission) ProtoMessage

func (*MethodPermission) ProtoMessage()

func (*MethodPermission) ProtoReflect

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

func (*MethodPermission) Reset

func (x *MethodPermission) Reset()

func (*MethodPermission) String

func (x *MethodPermission) String() string

type MethodServiceListRequest

type MethodServiceListRequest struct {
	// contains filtered or unexported fields
}

MethodServiceListRequest is the request payload for listing all public methods.

func (*MethodServiceListRequest) Descriptor deprecated

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

Deprecated: Use MethodServiceListRequest.ProtoReflect.Descriptor instead.

func (*MethodServiceListRequest) ProtoMessage

func (*MethodServiceListRequest) ProtoMessage()

func (*MethodServiceListRequest) ProtoReflect

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

func (*MethodServiceListRequest) Reset

func (x *MethodServiceListRequest) Reset()

func (*MethodServiceListRequest) String

func (x *MethodServiceListRequest) String() string

type MethodServiceListResponse

type MethodServiceListResponse struct {

	// Methods is a list of methods public callable
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

MethodServiceListResponse is the response payload for listing all public methods.

func (*MethodServiceListResponse) Descriptor deprecated

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

Deprecated: Use MethodServiceListResponse.ProtoReflect.Descriptor instead.

func (*MethodServiceListResponse) GetMethods

func (x *MethodServiceListResponse) GetMethods() []string

func (*MethodServiceListResponse) ProtoMessage

func (*MethodServiceListResponse) ProtoMessage()

func (*MethodServiceListResponse) ProtoReflect

func (*MethodServiceListResponse) Reset

func (x *MethodServiceListResponse) Reset()

func (*MethodServiceListResponse) String

func (x *MethodServiceListResponse) String() string

type MethodServiceTokenScopedListRequest

type MethodServiceTokenScopedListRequest struct {
	// contains filtered or unexported fields
}

MethodServiceTokenScopedListRequest is the request payload for listing all methods callable with the token present in the request.

func (*MethodServiceTokenScopedListRequest) Descriptor deprecated

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

Deprecated: Use MethodServiceTokenScopedListRequest.ProtoReflect.Descriptor instead.

func (*MethodServiceTokenScopedListRequest) ProtoMessage

func (*MethodServiceTokenScopedListRequest) ProtoMessage()

func (*MethodServiceTokenScopedListRequest) ProtoReflect

func (*MethodServiceTokenScopedListRequest) Reset

func (*MethodServiceTokenScopedListRequest) String

type MethodServiceTokenScopedListResponse

type MethodServiceTokenScopedListResponse struct {

	// Permissions contains a list of methods which can be called
	Permissions []*MethodPermission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// ProjectRoles associates a project ID with the corresponding role of the token owner
	ProjectRoles map[string]ProjectRole `` /* 201-byte string literal not displayed */
	// TenantRoles associates a tenant ID with the corresponding role of the token owner
	TenantRoles map[string]TenantRole `` /* 197-byte string literal not displayed */
	// OperatorRole defines the operator role of the token owner
	OperatorRole *OperatorRole `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

MethodServiceTokenScopedListResponse is the response payload which contains all methods which are callable with the given token.

func (*MethodServiceTokenScopedListResponse) Descriptor deprecated

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

Deprecated: Use MethodServiceTokenScopedListResponse.ProtoReflect.Descriptor instead.

func (*MethodServiceTokenScopedListResponse) GetOperatorRole added in v0.2.0

func (*MethodServiceTokenScopedListResponse) GetPermissions

func (*MethodServiceTokenScopedListResponse) GetProjectRoles

func (x *MethodServiceTokenScopedListResponse) GetProjectRoles() map[string]ProjectRole

func (*MethodServiceTokenScopedListResponse) GetTenantRoles

func (x *MethodServiceTokenScopedListResponse) GetTenantRoles() map[string]TenantRole

func (*MethodServiceTokenScopedListResponse) ProtoMessage

func (*MethodServiceTokenScopedListResponse) ProtoMessage()

func (*MethodServiceTokenScopedListResponse) ProtoReflect

func (*MethodServiceTokenScopedListResponse) Reset

func (*MethodServiceTokenScopedListResponse) String

type OperatorPermissions added in v0.2.0

type OperatorPermissions struct {

	// Methods which should be accessible.
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

OperatorPermissions carries operator method permissions.

func (*OperatorPermissions) Descriptor deprecated added in v0.2.0

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

Deprecated: Use OperatorPermissions.ProtoReflect.Descriptor instead.

func (*OperatorPermissions) GetMethods added in v0.2.0

func (x *OperatorPermissions) GetMethods() []string

func (*OperatorPermissions) ProtoMessage added in v0.2.0

func (*OperatorPermissions) ProtoMessage()

func (*OperatorPermissions) ProtoReflect added in v0.2.0

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

func (*OperatorPermissions) Reset added in v0.2.0

func (x *OperatorPermissions) Reset()

func (*OperatorPermissions) String added in v0.2.0

func (x *OperatorPermissions) String() string

type OperatorRole added in v0.2.0

type OperatorRole int32

OperatorRole specifies what role a logged in user needs to call this operator service

const (
	// OPERATOR_ROLE_UNSPECIFIED is not specified
	OperatorRole_OPERATOR_ROLE_UNSPECIFIED OperatorRole = 0
	// OPERATOR_ROLE_EDITOR the logged in user needs at least editor role to call this method
	OperatorRole_OPERATOR_ROLE_EDITOR OperatorRole = 1
	// OPERATOR_ROLE_VIEWER the logged in user needs at least viewer role to call this method
	OperatorRole_OPERATOR_ROLE_VIEWER OperatorRole = 2
)

func (OperatorRole) Descriptor added in v0.2.0

func (OperatorRole) Enum added in v0.2.0

func (x OperatorRole) Enum() *OperatorRole

func (OperatorRole) EnumDescriptor deprecated added in v0.2.0

func (OperatorRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use OperatorRole.Descriptor instead.

func (OperatorRole) Number added in v0.2.0

func (OperatorRole) String added in v0.2.0

func (x OperatorRole) String() string

func (OperatorRole) Type added in v0.2.0

type OptimisticLockingStrategy

type OptimisticLockingStrategy int32

OptimisticLockingStrategy defines how optimistic locking should be handled. It defaults to client side, which requires the UpdatedAt timestamp to be provided

const (
	// OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED same as client side
	OptimisticLockingStrategy_OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED OptimisticLockingStrategy = 0
	// OPTIMISTIC_LOCKING_STRATEGY_CLIENT requires UpdatedAt to be specified
	OptimisticLockingStrategy_OPTIMISTIC_LOCKING_STRATEGY_CLIENT OptimisticLockingStrategy = 1
	// OPTIMISTIC_LOCKING_STRATEGY_SERVER allows to omit UpdatedAt
	// and fetches the most recent entity before updating with the given values with the update request
	OptimisticLockingStrategy_OPTIMISTIC_LOCKING_STRATEGY_SERVER OptimisticLockingStrategy = 2
)

func (OptimisticLockingStrategy) Descriptor

func (OptimisticLockingStrategy) Enum

func (OptimisticLockingStrategy) EnumDescriptor deprecated

func (OptimisticLockingStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use OptimisticLockingStrategy.Descriptor instead.

func (OptimisticLockingStrategy) Number

func (OptimisticLockingStrategy) String

func (x OptimisticLockingStrategy) String() string

func (OptimisticLockingStrategy) Type

type Paging

type Paging struct {

	// Page is used for pagination, if unset only the first page is returned,
	// the list response contains then the page number for the next page.
	Page *uint64 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// Count is the number of results returned per page, if not given server side defaults apply
	Count *uint64 `protobuf:"varint,2,opt,name=count,proto3,oneof" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Paging defines paging for methods with a lot of results

func (*Paging) Descriptor deprecated

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

Deprecated: Use Paging.ProtoReflect.Descriptor instead.

func (*Paging) GetCount

func (x *Paging) GetCount() uint64

func (*Paging) GetPage

func (x *Paging) GetPage() uint64

func (*Paging) ProtoMessage

func (*Paging) ProtoMessage()

func (*Paging) ProtoReflect

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

func (*Paging) Reset

func (x *Paging) Reset()

func (*Paging) String

func (x *Paging) String() string

type PartitionHealth

type PartitionHealth struct {

	// Status is the health status of the service in this partition
	Status ServiceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=fits.api.v1.ServiceStatus" json:"status,omitempty"`
	// Message describes the reason for the unhealthy status if possible
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

PartitionHealth represents the status of a specific service in this partition.

func (*PartitionHealth) Descriptor deprecated

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

Deprecated: Use PartitionHealth.ProtoReflect.Descriptor instead.

func (*PartitionHealth) GetMessage

func (x *PartitionHealth) GetMessage() string

func (*PartitionHealth) GetStatus

func (x *PartitionHealth) GetStatus() ServiceStatus

func (*PartitionHealth) ProtoMessage

func (*PartitionHealth) ProtoMessage()

func (*PartitionHealth) ProtoReflect

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

func (*PartitionHealth) Reset

func (x *PartitionHealth) Reset()

func (*PartitionHealth) String

func (x *PartitionHealth) String() string

type PermissionsByVisibility added in v0.0.2

type PermissionsByVisibility struct {

	// Visibility defines the visibility of the requested method permissions.
	//
	// Types that are valid to be assigned to Visibility:
	//
	//	*PermissionsByVisibility_Public
	//	*PermissionsByVisibility_Self
	//	*PermissionsByVisibility_Project
	//	*PermissionsByVisibility_Tenant
	//	*PermissionsByVisibility_Operator
	Visibility isPermissionsByVisibility_Visibility `protobuf_oneof:"visibility"`
	// contains filtered or unexported fields
}

PermissionsByVisibility contains method permissions by visibility.

func (*PermissionsByVisibility) Descriptor deprecated added in v0.0.2

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

Deprecated: Use PermissionsByVisibility.ProtoReflect.Descriptor instead.

func (*PermissionsByVisibility) GetOperator added in v0.2.0

func (x *PermissionsByVisibility) GetOperator() *OperatorPermissions

func (*PermissionsByVisibility) GetProject added in v0.0.2

func (*PermissionsByVisibility) GetPublic added in v0.0.2

func (*PermissionsByVisibility) GetSelf added in v0.0.2

func (*PermissionsByVisibility) GetTenant added in v0.0.2

func (*PermissionsByVisibility) GetVisibility added in v0.0.2

func (x *PermissionsByVisibility) GetVisibility() isPermissionsByVisibility_Visibility

func (*PermissionsByVisibility) ProtoMessage added in v0.0.2

func (*PermissionsByVisibility) ProtoMessage()

func (*PermissionsByVisibility) ProtoReflect added in v0.0.2

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

func (*PermissionsByVisibility) Reset added in v0.0.2

func (x *PermissionsByVisibility) Reset()

func (*PermissionsByVisibility) String added in v0.0.2

func (x *PermissionsByVisibility) String() string

type PermissionsByVisibility_Operator added in v0.2.0

type PermissionsByVisibility_Operator struct {
	// OperatorPermissions carries operator method permissions.
	Operator *OperatorPermissions `protobuf:"bytes,5,opt,name=operator,proto3,oneof"`
}

type PermissionsByVisibility_Project added in v0.0.2

type PermissionsByVisibility_Project struct {
	// ProjectPermissions carries project method permissions.
	Project *ProjectPermissions `protobuf:"bytes,3,opt,name=project,proto3,oneof"`
}

type PermissionsByVisibility_Public added in v0.0.2

type PermissionsByVisibility_Public struct {
	// PublicPermissions carries public method permissions.
	Public *PublicPermissions `protobuf:"bytes,1,opt,name=public,proto3,oneof"`
}

type PermissionsByVisibility_Self added in v0.0.2

type PermissionsByVisibility_Self struct {
	// SelfPermissions carries self method permissions.
	Self *SelfPermissions `protobuf:"bytes,2,opt,name=self,proto3,oneof"`
}

type PermissionsByVisibility_Tenant added in v0.0.2

type PermissionsByVisibility_Tenant struct {
	// TenantPermissions carries tenant method permissions.
	Tenant *TenantPermissions `protobuf:"bytes,4,opt,name=tenant,proto3,oneof"`
}

type Project

type Project struct {

	// Uuid of this project
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Meta for this project
	Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// Name of this project must be unique per tenant
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description of this project
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Tenant this project belongs to
	Tenant string `protobuf:"bytes,5,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// AvatarUrl of the Project
	AvatarUrl *string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

Project defines a group of resources belonging to a tenant a tenant can have multiple projects

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetAvatarUrl

func (x *Project) GetAvatarUrl() string

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) GetTenant

func (x *Project) GetTenant() string

func (*Project) GetUuid

func (x *Project) GetUuid() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectPermissions added in v0.0.2

type ProjectPermissions struct {

	// Project scope for the permissions.
	// Asterisk (*) can be specified to match any subject.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Methods which should be accessible.
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

ProjectPermissions carries project method permissions.

func (*ProjectPermissions) Descriptor deprecated added in v0.0.2

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

Deprecated: Use ProjectPermissions.ProtoReflect.Descriptor instead.

func (*ProjectPermissions) GetMethods added in v0.0.2

func (x *ProjectPermissions) GetMethods() []string

func (*ProjectPermissions) GetProject added in v0.0.2

func (x *ProjectPermissions) GetProject() string

func (*ProjectPermissions) ProtoMessage added in v0.0.2

func (*ProjectPermissions) ProtoMessage()

func (*ProjectPermissions) ProtoReflect added in v0.0.2

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

func (*ProjectPermissions) Reset added in v0.0.2

func (x *ProjectPermissions) Reset()

func (*ProjectPermissions) String added in v0.0.2

func (x *ProjectPermissions) String() string

type ProjectRole

type ProjectRole int32

ProjectRole specifies what role a logged in user needs to call this project scoped service

const (
	// PROJECT_ROLE_UNSPECIFIED is not specified
	ProjectRole_PROJECT_ROLE_UNSPECIFIED ProjectRole = 0
	// PROJECT_ROLE_ADMIN the logged in user needs at least admin role to call this method
	ProjectRole_PROJECT_ROLE_ADMIN ProjectRole = 1
	// PROJECT_ROLE_EDITOR the logged in user needs at least editor role to call this method
	ProjectRole_PROJECT_ROLE_EDITOR ProjectRole = 2
	// PROJECT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
	ProjectRole_PROJECT_ROLE_VIEWER ProjectRole = 3
)

func (ProjectRole) Descriptor

func (ProjectRole) Enum

func (x ProjectRole) Enum() *ProjectRole

func (ProjectRole) EnumDescriptor deprecated

func (ProjectRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProjectRole.Descriptor instead.

func (ProjectRole) Number

func (x ProjectRole) Number() protoreflect.EnumNumber

func (ProjectRole) String

func (x ProjectRole) String() string

func (ProjectRole) Type

type ProjectServiceCreateRequest

type ProjectServiceCreateRequest struct {

	// Tenant is the tenant of this project (the tenant login)
	Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// Name of this project, unique per tenant
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of this project
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Avatar URL of the project
	AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
	// Labels on the project
	Labels *Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceCreateRequest is the request payload to Create a project

func (*ProjectServiceCreateRequest) Descriptor deprecated

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

Deprecated: Use ProjectServiceCreateRequest.ProtoReflect.Descriptor instead.

func (*ProjectServiceCreateRequest) GetAvatarUrl

func (x *ProjectServiceCreateRequest) GetAvatarUrl() string

func (*ProjectServiceCreateRequest) GetDescription

func (x *ProjectServiceCreateRequest) GetDescription() string

func (*ProjectServiceCreateRequest) GetLabels

func (x *ProjectServiceCreateRequest) GetLabels() *Labels

func (*ProjectServiceCreateRequest) GetName

func (x *ProjectServiceCreateRequest) GetName() string

func (*ProjectServiceCreateRequest) GetTenant

func (x *ProjectServiceCreateRequest) GetTenant() string

func (*ProjectServiceCreateRequest) ProtoMessage

func (*ProjectServiceCreateRequest) ProtoMessage()

func (*ProjectServiceCreateRequest) ProtoReflect

func (*ProjectServiceCreateRequest) Reset

func (x *ProjectServiceCreateRequest) Reset()

func (*ProjectServiceCreateRequest) String

func (x *ProjectServiceCreateRequest) String() string

type ProjectServiceCreateResponse

type ProjectServiceCreateResponse struct {

	// Project is the project
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceCreateResponse is the response payload of creation of a project

func (*ProjectServiceCreateResponse) Descriptor deprecated

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

Deprecated: Use ProjectServiceCreateResponse.ProtoReflect.Descriptor instead.

func (*ProjectServiceCreateResponse) GetProject

func (x *ProjectServiceCreateResponse) GetProject() *Project

func (*ProjectServiceCreateResponse) ProtoMessage

func (*ProjectServiceCreateResponse) ProtoMessage()

func (*ProjectServiceCreateResponse) ProtoReflect

func (*ProjectServiceCreateResponse) Reset

func (x *ProjectServiceCreateResponse) Reset()

func (*ProjectServiceCreateResponse) String

type ProjectServiceDeleteRequest

type ProjectServiceDeleteRequest struct {

	// Project is the uuid of the project to get
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceDeleteRequest is the request payload to delete a project

func (*ProjectServiceDeleteRequest) Descriptor deprecated

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

Deprecated: Use ProjectServiceDeleteRequest.ProtoReflect.Descriptor instead.

func (*ProjectServiceDeleteRequest) GetProject

func (x *ProjectServiceDeleteRequest) GetProject() string

func (*ProjectServiceDeleteRequest) ProtoMessage

func (*ProjectServiceDeleteRequest) ProtoMessage()

func (*ProjectServiceDeleteRequest) ProtoReflect

func (*ProjectServiceDeleteRequest) Reset

func (x *ProjectServiceDeleteRequest) Reset()

func (*ProjectServiceDeleteRequest) String

func (x *ProjectServiceDeleteRequest) String() string

type ProjectServiceDeleteResponse

type ProjectServiceDeleteResponse struct {

	// Project is the project
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceDeleteResponse is the response payload to delete a project

func (*ProjectServiceDeleteResponse) Descriptor deprecated

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

Deprecated: Use ProjectServiceDeleteResponse.ProtoReflect.Descriptor instead.

func (*ProjectServiceDeleteResponse) GetProject

func (x *ProjectServiceDeleteResponse) GetProject() *Project

func (*ProjectServiceDeleteResponse) ProtoMessage

func (*ProjectServiceDeleteResponse) ProtoMessage()

func (*ProjectServiceDeleteResponse) ProtoReflect

func (*ProjectServiceDeleteResponse) Reset

func (x *ProjectServiceDeleteResponse) Reset()

func (*ProjectServiceDeleteResponse) String

type ProjectServiceGetRequest

type ProjectServiceGetRequest struct {

	// Project is the uuid of the project to get
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceGetRequest is the request payload to get a project

func (*ProjectServiceGetRequest) Descriptor deprecated

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

Deprecated: Use ProjectServiceGetRequest.ProtoReflect.Descriptor instead.

func (*ProjectServiceGetRequest) GetProject

func (x *ProjectServiceGetRequest) GetProject() string

func (*ProjectServiceGetRequest) ProtoMessage

func (*ProjectServiceGetRequest) ProtoMessage()

func (*ProjectServiceGetRequest) ProtoReflect

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

func (*ProjectServiceGetRequest) Reset

func (x *ProjectServiceGetRequest) Reset()

func (*ProjectServiceGetRequest) String

func (x *ProjectServiceGetRequest) String() string

type ProjectServiceGetResponse

type ProjectServiceGetResponse struct {

	// Project is the project
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceGetResponse is the response payload to get a projects

func (*ProjectServiceGetResponse) Descriptor deprecated

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

Deprecated: Use ProjectServiceGetResponse.ProtoReflect.Descriptor instead.

func (*ProjectServiceGetResponse) GetProject

func (x *ProjectServiceGetResponse) GetProject() *Project

func (*ProjectServiceGetResponse) ProtoMessage

func (*ProjectServiceGetResponse) ProtoMessage()

func (*ProjectServiceGetResponse) ProtoReflect

func (*ProjectServiceGetResponse) Reset

func (x *ProjectServiceGetResponse) Reset()

func (*ProjectServiceGetResponse) String

func (x *ProjectServiceGetResponse) String() string

type ProjectServiceListRequest

type ProjectServiceListRequest struct {

	// Id lists only projects with this id
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// Name lists only projects with this name
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Tenant lists only projects of this tenant
	Tenant *string `protobuf:"bytes,3,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// Labels lists only projects containing the given labels
	Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceListRequest is the request payload to list all projects

func (*ProjectServiceListRequest) Descriptor deprecated

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

Deprecated: Use ProjectServiceListRequest.ProtoReflect.Descriptor instead.

func (*ProjectServiceListRequest) GetId

func (x *ProjectServiceListRequest) GetId() string

func (*ProjectServiceListRequest) GetLabels

func (x *ProjectServiceListRequest) GetLabels() *Labels

func (*ProjectServiceListRequest) GetName

func (x *ProjectServiceListRequest) GetName() string

func (*ProjectServiceListRequest) GetTenant

func (x *ProjectServiceListRequest) GetTenant() string

func (*ProjectServiceListRequest) ProtoMessage

func (*ProjectServiceListRequest) ProtoMessage()

func (*ProjectServiceListRequest) ProtoReflect

func (*ProjectServiceListRequest) Reset

func (x *ProjectServiceListRequest) Reset()

func (*ProjectServiceListRequest) String

func (x *ProjectServiceListRequest) String() string

type ProjectServiceListResponse

type ProjectServiceListResponse struct {

	// Projects is a list of all your projects
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceListResponse is the response payload to list all projects

func (*ProjectServiceListResponse) Descriptor deprecated

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

Deprecated: Use ProjectServiceListResponse.ProtoReflect.Descriptor instead.

func (*ProjectServiceListResponse) GetProjects

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

func (*ProjectServiceListResponse) ProtoMessage

func (*ProjectServiceListResponse) ProtoMessage()

func (*ProjectServiceListResponse) ProtoReflect

func (*ProjectServiceListResponse) Reset

func (x *ProjectServiceListResponse) Reset()

func (*ProjectServiceListResponse) String

func (x *ProjectServiceListResponse) String() string

type ProjectServiceUpdateRequest

type ProjectServiceUpdateRequest struct {

	// Project is the uuid of the project to get
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// UpdateMeta contains the timestamp and strategy to be used in this update request
	UpdateMeta *UpdateMeta `protobuf:"bytes,2,opt,name=update_meta,json=updateMeta,proto3" json:"update_meta,omitempty"`
	// Name of this project unique per tenant
	Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Description of this project
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Avatar URL of the project
	AvatarUrl *string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
	// Labels on this project
	Labels *UpdateLabels `protobuf:"bytes,6,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceUpdateRequest is the request payload to update a project

func (*ProjectServiceUpdateRequest) Descriptor deprecated

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

Deprecated: Use ProjectServiceUpdateRequest.ProtoReflect.Descriptor instead.

func (*ProjectServiceUpdateRequest) GetAvatarUrl

func (x *ProjectServiceUpdateRequest) GetAvatarUrl() string

func (*ProjectServiceUpdateRequest) GetDescription

func (x *ProjectServiceUpdateRequest) GetDescription() string

func (*ProjectServiceUpdateRequest) GetLabels

func (x *ProjectServiceUpdateRequest) GetLabels() *UpdateLabels

func (*ProjectServiceUpdateRequest) GetName

func (x *ProjectServiceUpdateRequest) GetName() string

func (*ProjectServiceUpdateRequest) GetProject

func (x *ProjectServiceUpdateRequest) GetProject() string

func (*ProjectServiceUpdateRequest) GetUpdateMeta

func (x *ProjectServiceUpdateRequest) GetUpdateMeta() *UpdateMeta

func (*ProjectServiceUpdateRequest) ProtoMessage

func (*ProjectServiceUpdateRequest) ProtoMessage()

func (*ProjectServiceUpdateRequest) ProtoReflect

func (*ProjectServiceUpdateRequest) Reset

func (x *ProjectServiceUpdateRequest) Reset()

func (*ProjectServiceUpdateRequest) String

func (x *ProjectServiceUpdateRequest) String() string

type ProjectServiceUpdateResponse

type ProjectServiceUpdateResponse struct {

	// Project is the project
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

ProjectServiceUpdateResponse is the response payload to update a project

func (*ProjectServiceUpdateResponse) Descriptor deprecated

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

Deprecated: Use ProjectServiceUpdateResponse.ProtoReflect.Descriptor instead.

func (*ProjectServiceUpdateResponse) GetProject

func (x *ProjectServiceUpdateResponse) GetProject() *Project

func (*ProjectServiceUpdateResponse) ProtoMessage

func (*ProjectServiceUpdateResponse) ProtoMessage()

func (*ProjectServiceUpdateResponse) ProtoReflect

func (*ProjectServiceUpdateResponse) Reset

func (x *ProjectServiceUpdateResponse) Reset()

func (*ProjectServiceUpdateResponse) String

type PublicPermissions added in v0.0.2

type PublicPermissions struct {

	// Methods which should be accessible.
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

PublicPermissions carries public method permissions.

func (*PublicPermissions) Descriptor deprecated added in v0.0.2

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

Deprecated: Use PublicPermissions.ProtoReflect.Descriptor instead.

func (*PublicPermissions) GetMethods added in v0.0.2

func (x *PublicPermissions) GetMethods() []string

func (*PublicPermissions) ProtoMessage added in v0.0.2

func (*PublicPermissions) ProtoMessage()

func (*PublicPermissions) ProtoReflect added in v0.0.2

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

func (*PublicPermissions) Reset added in v0.0.2

func (x *PublicPermissions) Reset()

func (*PublicPermissions) String added in v0.0.2

func (x *PublicPermissions) String() string

type SelfPermissions added in v0.0.2

type SelfPermissions struct {

	// Methods which should be accessible.
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

SelfPermissions carries self method permissions.

func (*SelfPermissions) Descriptor deprecated added in v0.0.2

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

Deprecated: Use SelfPermissions.ProtoReflect.Descriptor instead.

func (*SelfPermissions) GetMethods added in v0.0.2

func (x *SelfPermissions) GetMethods() []string

func (*SelfPermissions) ProtoMessage added in v0.0.2

func (*SelfPermissions) ProtoMessage()

func (*SelfPermissions) ProtoReflect added in v0.0.2

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

func (*SelfPermissions) Reset added in v0.0.2

func (x *SelfPermissions) Reset()

func (*SelfPermissions) String added in v0.0.2

func (x *SelfPermissions) String() string

type Service

type Service int32

Service defines the service for which the healthiness is reported.

const (
	// SERVICE_UNSPECIFIED is a unknown service
	Service_SERVICE_UNSPECIFIED Service = 0
	// SERVICE_K8S the kubernetes service
	Service_SERVICE_K8S Service = 1
)

func (Service) Descriptor

func (Service) Descriptor() protoreflect.EnumDescriptor

func (Service) Enum

func (x Service) Enum() *Service

func (Service) EnumDescriptor deprecated

func (Service) EnumDescriptor() ([]byte, []int)

Deprecated: Use Service.Descriptor instead.

func (Service) Number

func (x Service) Number() protoreflect.EnumNumber

func (Service) String

func (x Service) String() string

func (Service) Type

func (Service) Type() protoreflect.EnumType

type ServiceStatus

type ServiceStatus int32

ServiceStatus defines the status of a service.

const (
	// SERVICE_STATUS_UNSPECIFIED service status is not known or unspecified
	ServiceStatus_SERVICE_STATUS_UNSPECIFIED ServiceStatus = 0
	// SERVICE_STATUS_DEGRADED the service is in degraded status, not the whole functionality is available
	ServiceStatus_SERVICE_STATUS_DEGRADED ServiceStatus = 1
	// SERVICE_STATUS_UNHEALTHY the service is in unhealthy status, serious impact is expected
	ServiceStatus_SERVICE_STATUS_UNHEALTHY ServiceStatus = 2
	// SERVICE_STATUS_HEALTHY the service is in healthy status, for example fully functional
	ServiceStatus_SERVICE_STATUS_HEALTHY ServiceStatus = 3
)

func (ServiceStatus) Descriptor

func (ServiceStatus) Enum

func (x ServiceStatus) Enum() *ServiceStatus

func (ServiceStatus) EnumDescriptor deprecated

func (ServiceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceStatus.Descriptor instead.

func (ServiceStatus) Number

func (ServiceStatus) String

func (x ServiceStatus) String() string

func (ServiceStatus) Type

type Tenant

type Tenant struct {

	// Login of the tenant
	Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	// Meta for this tenant
	Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// Name of the tenant
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Email of the tenant
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// Description of this tenant
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// AvatarUrl of the tenant
	AvatarUrl string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

Tenant is a customer of the platform

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetAvatarUrl

func (x *Tenant) GetAvatarUrl() string

func (*Tenant) GetDescription

func (x *Tenant) GetDescription() string

func (*Tenant) GetEmail

func (x *Tenant) GetEmail() string

func (*Tenant) GetLogin

func (x *Tenant) GetLogin() string

func (*Tenant) GetMeta

func (x *Tenant) GetMeta() *Meta

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

type TenantPermissions added in v0.0.2

type TenantPermissions struct {

	// Login of the tenant.
	// Asterisk (*) can be specified to match any subject.
	Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	// Methods which should be accessible.
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

TenantPermissions carries tenant method permissions.

func (*TenantPermissions) Descriptor deprecated added in v0.0.2

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

Deprecated: Use TenantPermissions.ProtoReflect.Descriptor instead.

func (*TenantPermissions) GetLogin added in v0.0.2

func (x *TenantPermissions) GetLogin() string

func (*TenantPermissions) GetMethods added in v0.0.2

func (x *TenantPermissions) GetMethods() []string

func (*TenantPermissions) ProtoMessage added in v0.0.2

func (*TenantPermissions) ProtoMessage()

func (*TenantPermissions) ProtoReflect added in v0.0.2

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

func (*TenantPermissions) Reset added in v0.0.2

func (x *TenantPermissions) Reset()

func (*TenantPermissions) String added in v0.0.2

func (x *TenantPermissions) String() string

type TenantRole

type TenantRole int32

TenantRole specifies what role a logged in user needs to call this tenant scoped service

const (
	// TENANT_ROLE_UNSPECIFIED is not specified
	TenantRole_TENANT_ROLE_UNSPECIFIED TenantRole = 0
	// TENANT_ROLE_ADMIN the logged in user needs at least admin role to call this method
	TenantRole_TENANT_ROLE_ADMIN TenantRole = 1
	// TENANT_ROLE_EDITOR the logged in user needs at least editor role to call this method
	TenantRole_TENANT_ROLE_EDITOR TenantRole = 2
	// TENANT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
	TenantRole_TENANT_ROLE_VIEWER TenantRole = 3
	// TENANT_ROLE_GUEST the logged in user needs at least guest role to call this method
	// The guest role is assumed by users who are invited to a tenant's project without them
	// having a direct membership within the tenant.
	TenantRole_TENANT_ROLE_GUEST TenantRole = 4
)

func (TenantRole) Descriptor

func (TenantRole) Descriptor() protoreflect.EnumDescriptor

func (TenantRole) Enum

func (x TenantRole) Enum() *TenantRole

func (TenantRole) EnumDescriptor deprecated

func (TenantRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use TenantRole.Descriptor instead.

func (TenantRole) Number

func (x TenantRole) Number() protoreflect.EnumNumber

func (TenantRole) String

func (x TenantRole) String() string

func (TenantRole) Type

type TenantServiceGetRequest

type TenantServiceGetRequest struct {

	// Tenant is the login of the tenant
	Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceGetRequest is the request payload of the tenant get request

func (*TenantServiceGetRequest) Descriptor deprecated

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

Deprecated: Use TenantServiceGetRequest.ProtoReflect.Descriptor instead.

func (*TenantServiceGetRequest) GetTenant

func (x *TenantServiceGetRequest) GetTenant() string

func (*TenantServiceGetRequest) ProtoMessage

func (*TenantServiceGetRequest) ProtoMessage()

func (*TenantServiceGetRequest) ProtoReflect

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

func (*TenantServiceGetRequest) Reset

func (x *TenantServiceGetRequest) Reset()

func (*TenantServiceGetRequest) String

func (x *TenantServiceGetRequest) String() string

type TenantServiceGetResponse

type TenantServiceGetResponse struct {

	// Tenant is the tenant
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceGetResponse is the response payload of the tenant get request

func (*TenantServiceGetResponse) Descriptor deprecated

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

Deprecated: Use TenantServiceGetResponse.ProtoReflect.Descriptor instead.

func (*TenantServiceGetResponse) GetTenant

func (x *TenantServiceGetResponse) GetTenant() *Tenant

func (*TenantServiceGetResponse) ProtoMessage

func (*TenantServiceGetResponse) ProtoMessage()

func (*TenantServiceGetResponse) ProtoReflect

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

func (*TenantServiceGetResponse) Reset

func (x *TenantServiceGetResponse) Reset()

func (*TenantServiceGetResponse) String

func (x *TenantServiceGetResponse) String() string

type TenantServiceListRequest

type TenantServiceListRequest struct {

	// Id filters tenants by id
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// Name filters tenants by name
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Labels lists only projects containing the given labels
	Labels *Labels `protobuf:"bytes,3,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceListRequest is the request payload of the tenant list request

func (*TenantServiceListRequest) Descriptor deprecated

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

Deprecated: Use TenantServiceListRequest.ProtoReflect.Descriptor instead.

func (*TenantServiceListRequest) GetId

func (x *TenantServiceListRequest) GetId() string

func (*TenantServiceListRequest) GetLabels

func (x *TenantServiceListRequest) GetLabels() *Labels

func (*TenantServiceListRequest) GetName

func (x *TenantServiceListRequest) GetName() string

func (*TenantServiceListRequest) ProtoMessage

func (*TenantServiceListRequest) ProtoMessage()

func (*TenantServiceListRequest) ProtoReflect

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

func (*TenantServiceListRequest) Reset

func (x *TenantServiceListRequest) Reset()

func (*TenantServiceListRequest) String

func (x *TenantServiceListRequest) String() string

type TenantServiceListResponse

type TenantServiceListResponse struct {

	// Tenants is the list of tenants
	Tenants []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceListResponse is the response payload of the tenant list request

func (*TenantServiceListResponse) Descriptor deprecated

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

Deprecated: Use TenantServiceListResponse.ProtoReflect.Descriptor instead.

func (*TenantServiceListResponse) GetTenants

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

func (*TenantServiceListResponse) ProtoMessage

func (*TenantServiceListResponse) ProtoMessage()

func (*TenantServiceListResponse) ProtoReflect

func (*TenantServiceListResponse) Reset

func (x *TenantServiceListResponse) Reset()

func (*TenantServiceListResponse) String

func (x *TenantServiceListResponse) String() string

type TenantServiceUpdateRequest

type TenantServiceUpdateRequest struct {

	// Tenant is the login of the tenant
	Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// UpdateMeta contains the timestamp and strategy to be used in this update request
	UpdateMeta *UpdateMeta `protobuf:"bytes,2,opt,name=update_meta,json=updateMeta,proto3" json:"update_meta,omitempty"`
	// Name of the tenant
	Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Email of the tenant
	Email *string `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"`
	// Description of this tenant
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// AvatarUrl of the tenant
	AvatarUrl *string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
	// Labels on the tenant
	Labels *UpdateLabels `protobuf:"bytes,7,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceUpdateRequest is the request payload of the tenant update request

func (*TenantServiceUpdateRequest) Descriptor deprecated

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

Deprecated: Use TenantServiceUpdateRequest.ProtoReflect.Descriptor instead.

func (*TenantServiceUpdateRequest) GetAvatarUrl

func (x *TenantServiceUpdateRequest) GetAvatarUrl() string

func (*TenantServiceUpdateRequest) GetDescription

func (x *TenantServiceUpdateRequest) GetDescription() string

func (*TenantServiceUpdateRequest) GetEmail

func (x *TenantServiceUpdateRequest) GetEmail() string

func (*TenantServiceUpdateRequest) GetLabels

func (x *TenantServiceUpdateRequest) GetLabels() *UpdateLabels

func (*TenantServiceUpdateRequest) GetName

func (x *TenantServiceUpdateRequest) GetName() string

func (*TenantServiceUpdateRequest) GetTenant

func (x *TenantServiceUpdateRequest) GetTenant() string

func (*TenantServiceUpdateRequest) GetUpdateMeta

func (x *TenantServiceUpdateRequest) GetUpdateMeta() *UpdateMeta

func (*TenantServiceUpdateRequest) ProtoMessage

func (*TenantServiceUpdateRequest) ProtoMessage()

func (*TenantServiceUpdateRequest) ProtoReflect

func (*TenantServiceUpdateRequest) Reset

func (x *TenantServiceUpdateRequest) Reset()

func (*TenantServiceUpdateRequest) String

func (x *TenantServiceUpdateRequest) String() string

type TenantServiceUpdateResponse

type TenantServiceUpdateResponse struct {

	// Tenant is the tenant
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

TenantServiceUpdateResponse is the response payload of the tenant update request

func (*TenantServiceUpdateResponse) Descriptor deprecated

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

Deprecated: Use TenantServiceUpdateResponse.ProtoReflect.Descriptor instead.

func (*TenantServiceUpdateResponse) GetTenant

func (x *TenantServiceUpdateResponse) GetTenant() *Tenant

func (*TenantServiceUpdateResponse) ProtoMessage

func (*TenantServiceUpdateResponse) ProtoMessage()

func (*TenantServiceUpdateResponse) ProtoReflect

func (*TenantServiceUpdateResponse) Reset

func (x *TenantServiceUpdateResponse) Reset()

func (*TenantServiceUpdateResponse) String

func (x *TenantServiceUpdateResponse) String() string

type Token

type Token struct {

	// Uuid of the jwt token, used to reference it by revoke
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// User who created this token
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// Meta for this token
	Meta *Meta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// Description is a user given description of this token.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Permissions is a list of service methods this token can be used for
	Permissions []*PermissionsByVisibility `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// Expires gives the date in the future after which this token can not be used anymore
	Expires *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires,proto3" json:"expires,omitempty"`
	// IssuedAt gives the date when this token was created
	IssuedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// TokenType describes the type of this token
	TokenType TokenType `protobuf:"varint,8,opt,name=token_type,json=tokenType,proto3,enum=fits.api.v1.TokenType" json:"token_type,omitempty"`
	// ProjectRoles associates a project id with the corresponding role of the token owner
	ProjectRoles map[string]ProjectRole `` /* 201-byte string literal not displayed */
	// TenantRoles associates a tenant id with the corresponding role of the token owner.
	TenantRoles map[string]TenantRole `` /* 198-byte string literal not displayed */
	// OperatorRole defines the operator role of the token owner
	OperatorRole *OperatorRole `` /* 135-byte string literal not displayed */
	// RawRoles are the normalized roles transmitted by the OIDC provider.
	RawRoles []string `protobuf:"bytes,12,rep,name=raw_roles,json=rawRoles,proto3" json:"raw_roles,omitempty"`
	// Name is the display name of the user the token was issued for.
	Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"`
	// Email is the email address of the user the token was issued for.
	Email string `protobuf:"bytes,14,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

Token generates a jwt authentication token to access the api

There are two different types of tokens, api- and user- tokens

A user token is used to authenticate end user requests for example from a cli. The configured roles in a user token are expanded in the api server based on the memberships in other projects and tenants based on the role granted there. User tokens will never contain permissions. Permissions are always derived from the tenant and project roles and memberships.

The api token should be used to authenticate services. In contrast to a user token, the api token permissions and roles apply as configured during the token create process.

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetDescription

func (x *Token) GetDescription() string

func (*Token) GetEmail added in v0.0.3

func (x *Token) GetEmail() string

func (*Token) GetExpires

func (x *Token) GetExpires() *timestamppb.Timestamp

func (*Token) GetIssuedAt

func (x *Token) GetIssuedAt() *timestamppb.Timestamp

func (*Token) GetMeta

func (x *Token) GetMeta() *Meta

func (*Token) GetName added in v0.0.3

func (x *Token) GetName() string

func (*Token) GetOperatorRole added in v0.2.0

func (x *Token) GetOperatorRole() OperatorRole

func (*Token) GetPermissions

func (x *Token) GetPermissions() []*PermissionsByVisibility

func (*Token) GetProjectRoles

func (x *Token) GetProjectRoles() map[string]ProjectRole

func (*Token) GetRawRoles added in v0.0.3

func (x *Token) GetRawRoles() []string

func (*Token) GetTenantRoles

func (x *Token) GetTenantRoles() map[string]TenantRole

func (*Token) GetTokenType

func (x *Token) GetTokenType() TokenType

func (*Token) GetUser

func (x *Token) GetUser() string

func (*Token) GetUuid

func (x *Token) GetUuid() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type TokenServiceGetRequest

type TokenServiceGetRequest struct {

	// Uuid of the token to get
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

TokenServiceGetRequest is the request payload of a token get request

func (*TokenServiceGetRequest) Descriptor deprecated

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

Deprecated: Use TokenServiceGetRequest.ProtoReflect.Descriptor instead.

func (*TokenServiceGetRequest) GetUuid

func (x *TokenServiceGetRequest) GetUuid() string

func (*TokenServiceGetRequest) ProtoMessage

func (*TokenServiceGetRequest) ProtoMessage()

func (*TokenServiceGetRequest) ProtoReflect

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

func (*TokenServiceGetRequest) Reset

func (x *TokenServiceGetRequest) Reset()

func (*TokenServiceGetRequest) String

func (x *TokenServiceGetRequest) String() string

type TokenServiceGetResponse

type TokenServiceGetResponse struct {

	// Token is the token
	Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

TokenServiceGetResponse is the response payload of a token get request

func (*TokenServiceGetResponse) Descriptor deprecated

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

Deprecated: Use TokenServiceGetResponse.ProtoReflect.Descriptor instead.

func (*TokenServiceGetResponse) GetToken

func (x *TokenServiceGetResponse) GetToken() *Token

func (*TokenServiceGetResponse) ProtoMessage

func (*TokenServiceGetResponse) ProtoMessage()

func (*TokenServiceGetResponse) ProtoReflect

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

func (*TokenServiceGetResponse) Reset

func (x *TokenServiceGetResponse) Reset()

func (*TokenServiceGetResponse) String

func (x *TokenServiceGetResponse) String() string

type TokenServiceListRequest

type TokenServiceListRequest struct {
	// contains filtered or unexported fields
}

TokenServiceListRequest is the request payload to list tokens

func (*TokenServiceListRequest) Descriptor deprecated

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

Deprecated: Use TokenServiceListRequest.ProtoReflect.Descriptor instead.

func (*TokenServiceListRequest) ProtoMessage

func (*TokenServiceListRequest) ProtoMessage()

func (*TokenServiceListRequest) ProtoReflect

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

func (*TokenServiceListRequest) Reset

func (x *TokenServiceListRequest) Reset()

func (*TokenServiceListRequest) String

func (x *TokenServiceListRequest) String() string

type TokenServiceListResponse

type TokenServiceListResponse struct {

	// Tokens is a list of tokens without the secrets
	Tokens []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

TokenServiceListResponse is the response payload of a token list request

func (*TokenServiceListResponse) Descriptor deprecated

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

Deprecated: Use TokenServiceListResponse.ProtoReflect.Descriptor instead.

func (*TokenServiceListResponse) GetTokens

func (x *TokenServiceListResponse) GetTokens() []*Token

func (*TokenServiceListResponse) ProtoMessage

func (*TokenServiceListResponse) ProtoMessage()

func (*TokenServiceListResponse) ProtoReflect

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

func (*TokenServiceListResponse) Reset

func (x *TokenServiceListResponse) Reset()

func (*TokenServiceListResponse) String

func (x *TokenServiceListResponse) String() string

type TokenServiceRevokeRequest

type TokenServiceRevokeRequest struct {

	// Uuid of the token to revoke
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

TokenServiceRevokeRequest is the request payload of a token revoke request

func (*TokenServiceRevokeRequest) Descriptor deprecated

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

Deprecated: Use TokenServiceRevokeRequest.ProtoReflect.Descriptor instead.

func (*TokenServiceRevokeRequest) GetUuid

func (x *TokenServiceRevokeRequest) GetUuid() string

func (*TokenServiceRevokeRequest) ProtoMessage

func (*TokenServiceRevokeRequest) ProtoMessage()

func (*TokenServiceRevokeRequest) ProtoReflect

func (*TokenServiceRevokeRequest) Reset

func (x *TokenServiceRevokeRequest) Reset()

func (*TokenServiceRevokeRequest) String

func (x *TokenServiceRevokeRequest) String() string

type TokenServiceRevokeResponse

type TokenServiceRevokeResponse struct {
	// contains filtered or unexported fields
}

TokenServiceRevokeResponse is the response payload of a token revoke request

func (*TokenServiceRevokeResponse) Descriptor deprecated

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

Deprecated: Use TokenServiceRevokeResponse.ProtoReflect.Descriptor instead.

func (*TokenServiceRevokeResponse) ProtoMessage

func (*TokenServiceRevokeResponse) ProtoMessage()

func (*TokenServiceRevokeResponse) ProtoReflect

func (*TokenServiceRevokeResponse) Reset

func (x *TokenServiceRevokeResponse) Reset()

func (*TokenServiceRevokeResponse) String

func (x *TokenServiceRevokeResponse) String() string

type TokenType

type TokenType int32

TokenType specifies different use cases of tokens

const (
	// TOKEN_TYPE_UNSPECIFIED is not specified
	TokenType_TOKEN_TYPE_UNSPECIFIED TokenType = 0
	// TOKEN_TYPE_API is a token for api usage
	TokenType_TOKEN_TYPE_API TokenType = 1
	// TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
	TokenType_TOKEN_TYPE_USER TokenType = 2
)

func (TokenType) Descriptor

func (TokenType) Descriptor() protoreflect.EnumDescriptor

func (TokenType) Enum

func (x TokenType) Enum() *TokenType

func (TokenType) EnumDescriptor deprecated

func (TokenType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TokenType.Descriptor instead.

func (TokenType) Number

func (x TokenType) Number() protoreflect.EnumNumber

func (TokenType) String

func (x TokenType) String() string

func (TokenType) Type

type UpdateLabels

type UpdateLabels struct {

	// Update labels. New ones will be added, existing ones overwritten
	Update *Labels `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
	// Remove labels by key
	Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"`
	// contains filtered or unexported fields
}

UpdateLabels is a message to update labels

func (*UpdateLabels) Descriptor deprecated

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

Deprecated: Use UpdateLabels.ProtoReflect.Descriptor instead.

func (*UpdateLabels) GetRemove

func (x *UpdateLabels) GetRemove() []string

func (*UpdateLabels) GetUpdate

func (x *UpdateLabels) GetUpdate() *Labels

func (*UpdateLabels) ProtoMessage

func (*UpdateLabels) ProtoMessage()

func (*UpdateLabels) ProtoReflect

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

func (*UpdateLabels) Reset

func (x *UpdateLabels) Reset()

func (*UpdateLabels) String

func (x *UpdateLabels) String() string

type UpdateMeta

type UpdateMeta struct {

	// UpdatedAt is the date when this entity was updated
	// must be part of the update request to ensure optimistic locking
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// LockingStrategy to be used for this update request
	LockingStrategy OptimisticLockingStrategy `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

UpdateMeta must be provided with every UpdateRequest to define how optimistic locking should be handled

func (*UpdateMeta) Descriptor deprecated

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

Deprecated: Use UpdateMeta.ProtoReflect.Descriptor instead.

func (*UpdateMeta) GetLockingStrategy

func (x *UpdateMeta) GetLockingStrategy() OptimisticLockingStrategy

func (*UpdateMeta) GetUpdatedAt

func (x *UpdateMeta) GetUpdatedAt() *timestamppb.Timestamp

func (*UpdateMeta) ProtoMessage

func (*UpdateMeta) ProtoMessage()

func (*UpdateMeta) ProtoReflect

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

func (*UpdateMeta) Reset

func (x *UpdateMeta) Reset()

func (*UpdateMeta) String

func (x *UpdateMeta) String() string

type Version

type Version struct {

	// Version of the application
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Revision of the application
	Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
	// GitSHA1 of the application
	GitSha1 string `protobuf:"bytes,3,opt,name=git_sha1,json=gitSha1,proto3" json:"git_sha1,omitempty"`
	// BuildDate of the application
	BuildDate string `protobuf:"bytes,4,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"`
	// contains filtered or unexported fields
}

Version represents the version of the application.

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetBuildDate

func (x *Version) GetBuildDate() string

func (*Version) GetGitSha1

func (x *Version) GetGitSha1() string

func (*Version) GetRevision

func (x *Version) GetRevision() string

func (*Version) GetVersion

func (x *Version) GetVersion() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type VersionServiceGetRequest

type VersionServiceGetRequest struct {
	// contains filtered or unexported fields
}

VersionServiceGetRequest is the request payload for getting the version.

func (*VersionServiceGetRequest) Descriptor deprecated

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

Deprecated: Use VersionServiceGetRequest.ProtoReflect.Descriptor instead.

func (*VersionServiceGetRequest) ProtoMessage

func (*VersionServiceGetRequest) ProtoMessage()

func (*VersionServiceGetRequest) ProtoReflect

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

func (*VersionServiceGetRequest) Reset

func (x *VersionServiceGetRequest) Reset()

func (*VersionServiceGetRequest) String

func (x *VersionServiceGetRequest) String() string

type VersionServiceGetResponse

type VersionServiceGetResponse struct {

	// Version contains the version of the application
	Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

VersionServiceGetResponse is the response payload for getting the version.

func (*VersionServiceGetResponse) Descriptor deprecated

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

Deprecated: Use VersionServiceGetResponse.ProtoReflect.Descriptor instead.

func (*VersionServiceGetResponse) GetVersion

func (x *VersionServiceGetResponse) GetVersion() *Version

func (*VersionServiceGetResponse) ProtoMessage

func (*VersionServiceGetResponse) ProtoMessage()

func (*VersionServiceGetResponse) ProtoReflect

func (*VersionServiceGetResponse) Reset

func (x *VersionServiceGetResponse) Reset()

func (*VersionServiceGetResponse) String

func (x *VersionServiceGetResponse) String() string

type Visibility

type Visibility int32

Visibility of a method

const (
	// VISIBILITY_UNSPECIFIED is not defined
	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
	// VISIBILITY_PUBLIC specifies that this service is accessible without authentication
	Visibility_VISIBILITY_PUBLIC Visibility = 1
	// VISIBILITY_SELF enable call this endpoint from the authenticated user only
	Visibility_VISIBILITY_SELF Visibility = 2
)

func (Visibility) Descriptor

func (Visibility) Descriptor() protoreflect.EnumDescriptor

func (Visibility) Enum

func (x Visibility) Enum() *Visibility

func (Visibility) EnumDescriptor deprecated

func (Visibility) EnumDescriptor() ([]byte, []int)

Deprecated: Use Visibility.Descriptor instead.

func (Visibility) Number

func (x Visibility) Number() protoreflect.EnumNumber

func (Visibility) String

func (x Visibility) String() string

func (Visibility) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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