iam

package module
v0.0.0-...-0579e20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_iam_access_token_proto protoreflect.FileDescriptor
View Source
var File_iam_entity_proto protoreflect.FileDescriptor
View Source
var File_iam_policy_proto protoreflect.FileDescriptor
View Source
var File_iam_role_proto protoreflect.FileDescriptor
View Source
var File_iam_service_proto protoreflect.FileDescriptor
View Source
var File_iam_user_proto protoreflect.FileDescriptor

Functions

func RegisterIAMServiceServer

func RegisterIAMServiceServer(s *grpc.Server, srv IAMServiceServer)

Types

type AccessToken

type AccessToken struct {
	AccessTokenId uint32 `protobuf:"varint,1,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	// string token_hash = 2; // Must not show this value.
	Name              string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description       string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	ProjectId         uint32 `protobuf:"varint,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ExpiredAt         int64  `protobuf:"varint,5,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	LastUpdatedUserId uint32 `protobuf:"varint,6,opt,name=last_updated_user_id,json=lastUpdatedUserId,proto3" json:"last_updated_user_id,omitempty"`
	CreatedAt         int64  `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt         int64  `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

AccessToken

func (*AccessToken) Descriptor deprecated

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

Deprecated: Use AccessToken.ProtoReflect.Descriptor instead.

func (*AccessToken) GetAccessTokenId

func (x *AccessToken) GetAccessTokenId() uint32

func (*AccessToken) GetCreatedAt

func (x *AccessToken) GetCreatedAt() int64

func (*AccessToken) GetDescription

func (x *AccessToken) GetDescription() string

func (*AccessToken) GetExpiredAt

func (x *AccessToken) GetExpiredAt() int64

func (*AccessToken) GetLastUpdatedUserId

func (x *AccessToken) GetLastUpdatedUserId() uint32

func (*AccessToken) GetName

func (x *AccessToken) GetName() string

func (*AccessToken) GetProjectId

func (x *AccessToken) GetProjectId() uint32

func (*AccessToken) GetUpdatedAt

func (x *AccessToken) GetUpdatedAt() int64

func (*AccessToken) ProtoMessage

func (*AccessToken) ProtoMessage()

func (*AccessToken) ProtoReflect

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

func (*AccessToken) Reset

func (x *AccessToken) Reset()

func (*AccessToken) String

func (x *AccessToken) String() string

type AccessTokenForUpsert

type AccessTokenForUpsert struct {
	AccessTokenId     uint32 `protobuf:"varint,1,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	PlainTextToken    string `protobuf:"bytes,2,opt,name=plain_text_token,json=plainTextToken,proto3" json:"plain_text_token,omitempty"`
	Name              string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description       string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	ProjectId         uint32 `protobuf:"varint,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ExpiredAt         int64  `protobuf:"varint,6,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	LastUpdatedUserId uint32 `protobuf:"varint,7,opt,name=last_updated_user_id,json=lastUpdatedUserId,proto3" json:"last_updated_user_id,omitempty"`
	// contains filtered or unexported fields
}

AccessTokenForUpsert

func (*AccessTokenForUpsert) Descriptor deprecated

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

Deprecated: Use AccessTokenForUpsert.ProtoReflect.Descriptor instead.

func (*AccessTokenForUpsert) GetAccessTokenId

func (x *AccessTokenForUpsert) GetAccessTokenId() uint32

func (*AccessTokenForUpsert) GetDescription

func (x *AccessTokenForUpsert) GetDescription() string

func (*AccessTokenForUpsert) GetExpiredAt

func (x *AccessTokenForUpsert) GetExpiredAt() int64

func (*AccessTokenForUpsert) GetLastUpdatedUserId

func (x *AccessTokenForUpsert) GetLastUpdatedUserId() uint32

func (*AccessTokenForUpsert) GetName

func (x *AccessTokenForUpsert) GetName() string

func (*AccessTokenForUpsert) GetPlainTextToken

func (x *AccessTokenForUpsert) GetPlainTextToken() string

func (*AccessTokenForUpsert) GetProjectId

func (x *AccessTokenForUpsert) GetProjectId() uint32

func (*AccessTokenForUpsert) ProtoMessage

func (*AccessTokenForUpsert) ProtoMessage()

func (*AccessTokenForUpsert) ProtoReflect

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

func (*AccessTokenForUpsert) Reset

func (x *AccessTokenForUpsert) Reset()

func (*AccessTokenForUpsert) String

func (x *AccessTokenForUpsert) String() string

func (*AccessTokenForUpsert) Validate

func (a *AccessTokenForUpsert) Validate() error

Validate AccessTokenForUpsert

type AccessTokenRole

type AccessTokenRole struct {
	AccessTokenId uint32 `protobuf:"varint,1,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	RoleId        uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	ProjectId     uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt     int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessTokenRole) Descriptor deprecated

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

Deprecated: Use AccessTokenRole.ProtoReflect.Descriptor instead.

func (*AccessTokenRole) GetAccessTokenId

func (x *AccessTokenRole) GetAccessTokenId() uint32

func (*AccessTokenRole) GetCreatedAt

func (x *AccessTokenRole) GetCreatedAt() int64

func (*AccessTokenRole) GetProjectId

func (x *AccessTokenRole) GetProjectId() uint32

func (*AccessTokenRole) GetRoleId

func (x *AccessTokenRole) GetRoleId() uint32

func (*AccessTokenRole) GetUpdatedAt

func (x *AccessTokenRole) GetUpdatedAt() int64

func (*AccessTokenRole) ProtoMessage

func (*AccessTokenRole) ProtoMessage()

func (*AccessTokenRole) ProtoReflect

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

func (*AccessTokenRole) Reset

func (x *AccessTokenRole) Reset()

func (*AccessTokenRole) String

func (x *AccessTokenRole) String() string

type AttachAccessTokenRoleRequest

type AttachAccessTokenRoleRequest struct {
	ProjectId     uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccessTokenId uint32 `protobuf:"varint,2,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	RoleId        uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachAccessTokenRoleRequest) Descriptor deprecated

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

Deprecated: Use AttachAccessTokenRoleRequest.ProtoReflect.Descriptor instead.

func (*AttachAccessTokenRoleRequest) GetAccessTokenId

func (x *AttachAccessTokenRoleRequest) GetAccessTokenId() uint32

func (*AttachAccessTokenRoleRequest) GetProjectId

func (x *AttachAccessTokenRoleRequest) GetProjectId() uint32

func (*AttachAccessTokenRoleRequest) GetRoleId

func (x *AttachAccessTokenRoleRequest) GetRoleId() uint32

func (*AttachAccessTokenRoleRequest) ProtoMessage

func (*AttachAccessTokenRoleRequest) ProtoMessage()

func (*AttachAccessTokenRoleRequest) ProtoReflect

func (*AttachAccessTokenRoleRequest) Reset

func (x *AttachAccessTokenRoleRequest) Reset()

func (*AttachAccessTokenRoleRequest) String

func (*AttachAccessTokenRoleRequest) Validate

func (a *AttachAccessTokenRoleRequest) Validate() error

Validate AttachAccessTokenRoleRequest

type AttachAccessTokenRoleResponse

type AttachAccessTokenRoleResponse struct {
	AccessTokenRole *AccessTokenRole `protobuf:"bytes,1,opt,name=access_token_role,json=accessTokenRole,proto3" json:"access_token_role,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachAccessTokenRoleResponse) Descriptor deprecated

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

Deprecated: Use AttachAccessTokenRoleResponse.ProtoReflect.Descriptor instead.

func (*AttachAccessTokenRoleResponse) GetAccessTokenRole

func (x *AttachAccessTokenRoleResponse) GetAccessTokenRole() *AccessTokenRole

func (*AttachAccessTokenRoleResponse) ProtoMessage

func (*AttachAccessTokenRoleResponse) ProtoMessage()

func (*AttachAccessTokenRoleResponse) ProtoReflect

func (*AttachAccessTokenRoleResponse) Reset

func (x *AttachAccessTokenRoleResponse) Reset()

func (*AttachAccessTokenRoleResponse) String

type AttachPolicyRequest

type AttachPolicyRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	PolicyId  uint32 `protobuf:"varint,3,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachPolicyRequest) Descriptor deprecated

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

Deprecated: Use AttachPolicyRequest.ProtoReflect.Descriptor instead.

func (*AttachPolicyRequest) GetPolicyId

func (x *AttachPolicyRequest) GetPolicyId() uint32

func (*AttachPolicyRequest) GetProjectId

func (x *AttachPolicyRequest) GetProjectId() uint32

func (*AttachPolicyRequest) GetRoleId

func (x *AttachPolicyRequest) GetRoleId() uint32

func (*AttachPolicyRequest) ProtoMessage

func (*AttachPolicyRequest) ProtoMessage()

func (*AttachPolicyRequest) ProtoReflect

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

func (*AttachPolicyRequest) Reset

func (x *AttachPolicyRequest) Reset()

func (*AttachPolicyRequest) String

func (x *AttachPolicyRequest) String() string

func (*AttachPolicyRequest) Validate

func (a *AttachPolicyRequest) Validate() error

Validate AttachPolicyRequest

type AttachPolicyResponse

type AttachPolicyResponse struct {
	RolePolicy *RolePolicy `protobuf:"bytes,1,opt,name=role_policy,json=rolePolicy,proto3" json:"role_policy,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachPolicyResponse) Descriptor deprecated

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

Deprecated: Use AttachPolicyResponse.ProtoReflect.Descriptor instead.

func (*AttachPolicyResponse) GetRolePolicy

func (x *AttachPolicyResponse) GetRolePolicy() *RolePolicy

func (*AttachPolicyResponse) ProtoMessage

func (*AttachPolicyResponse) ProtoMessage()

func (*AttachPolicyResponse) ProtoReflect

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

func (*AttachPolicyResponse) Reset

func (x *AttachPolicyResponse) Reset()

func (*AttachPolicyResponse) String

func (x *AttachPolicyResponse) String() string

type AttachRoleRequest

type AttachRoleRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	UserId    uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachRoleRequest) Descriptor deprecated

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

Deprecated: Use AttachRoleRequest.ProtoReflect.Descriptor instead.

func (*AttachRoleRequest) GetProjectId

func (x *AttachRoleRequest) GetProjectId() uint32

func (*AttachRoleRequest) GetRoleId

func (x *AttachRoleRequest) GetRoleId() uint32

func (*AttachRoleRequest) GetUserId

func (x *AttachRoleRequest) GetUserId() uint32

func (*AttachRoleRequest) ProtoMessage

func (*AttachRoleRequest) ProtoMessage()

func (*AttachRoleRequest) ProtoReflect

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

func (*AttachRoleRequest) Reset

func (x *AttachRoleRequest) Reset()

func (*AttachRoleRequest) String

func (x *AttachRoleRequest) String() string

func (*AttachRoleRequest) Validate

func (a *AttachRoleRequest) Validate() error

Validate AttachRoleRequest

func (*AttachRoleRequest) ValidateForAdmin

func (a *AttachRoleRequest) ValidateForAdmin() error

ValidateForAdmin AttachRoleRequest

type AttachRoleResponse

type AttachRoleResponse struct {
	UserRole *UserRole `protobuf:"bytes,1,opt,name=user_role,json=userRole,proto3" json:"user_role,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachRoleResponse) Descriptor deprecated

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

Deprecated: Use AttachRoleResponse.ProtoReflect.Descriptor instead.

func (*AttachRoleResponse) GetUserRole

func (x *AttachRoleResponse) GetUserRole() *UserRole

func (*AttachRoleResponse) ProtoMessage

func (*AttachRoleResponse) ProtoMessage()

func (*AttachRoleResponse) ProtoReflect

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

func (*AttachRoleResponse) Reset

func (x *AttachRoleResponse) Reset()

func (*AttachRoleResponse) String

func (x *AttachRoleResponse) String() string

type AuthenticateAccessTokenRequest

type AuthenticateAccessTokenRequest struct {
	ProjectId      uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccessTokenId  uint32 `protobuf:"varint,2,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	PlainTextToken string `protobuf:"bytes,3,opt,name=plain_text_token,json=plainTextToken,proto3" json:"plain_text_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use AuthenticateAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateAccessTokenRequest) GetAccessTokenId

func (x *AuthenticateAccessTokenRequest) GetAccessTokenId() uint32

func (*AuthenticateAccessTokenRequest) GetPlainTextToken

func (x *AuthenticateAccessTokenRequest) GetPlainTextToken() string

func (*AuthenticateAccessTokenRequest) GetProjectId

func (x *AuthenticateAccessTokenRequest) GetProjectId() uint32

func (*AuthenticateAccessTokenRequest) ProtoMessage

func (*AuthenticateAccessTokenRequest) ProtoMessage()

func (*AuthenticateAccessTokenRequest) ProtoReflect

func (*AuthenticateAccessTokenRequest) Reset

func (x *AuthenticateAccessTokenRequest) Reset()

func (*AuthenticateAccessTokenRequest) String

func (*AuthenticateAccessTokenRequest) Validate

func (a *AuthenticateAccessTokenRequest) Validate() error

Validate AuthenticateAccessTokenRequest

type AuthenticateAccessTokenResponse

type AuthenticateAccessTokenResponse struct {
	AccessToken *AccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateAccessTokenResponse) Descriptor deprecated

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

Deprecated: Use AuthenticateAccessTokenResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateAccessTokenResponse) GetAccessToken

func (x *AuthenticateAccessTokenResponse) GetAccessToken() *AccessToken

func (*AuthenticateAccessTokenResponse) ProtoMessage

func (*AuthenticateAccessTokenResponse) ProtoMessage()

func (*AuthenticateAccessTokenResponse) ProtoReflect

func (*AuthenticateAccessTokenResponse) Reset

func (*AuthenticateAccessTokenResponse) String

type DeleteAccessTokenRequest

type DeleteAccessTokenRequest struct {
	ProjectId     uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccessTokenId uint32 `protobuf:"varint,2,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use DeleteAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*DeleteAccessTokenRequest) GetAccessTokenId

func (x *DeleteAccessTokenRequest) GetAccessTokenId() uint32

func (*DeleteAccessTokenRequest) GetProjectId

func (x *DeleteAccessTokenRequest) GetProjectId() uint32

func (*DeleteAccessTokenRequest) ProtoMessage

func (*DeleteAccessTokenRequest) ProtoMessage()

func (*DeleteAccessTokenRequest) ProtoReflect

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

func (*DeleteAccessTokenRequest) Reset

func (x *DeleteAccessTokenRequest) Reset()

func (*DeleteAccessTokenRequest) String

func (x *DeleteAccessTokenRequest) String() string

func (*DeleteAccessTokenRequest) Validate

func (d *DeleteAccessTokenRequest) Validate() error

Validate DeleteAccessTokenRequest

type DeletePolicyRequest

type DeletePolicyRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	PolicyId  uint32 `protobuf:"varint,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePolicyRequest) Descriptor deprecated

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

Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead.

func (*DeletePolicyRequest) GetPolicyId

func (x *DeletePolicyRequest) GetPolicyId() uint32

func (*DeletePolicyRequest) GetProjectId

func (x *DeletePolicyRequest) GetProjectId() uint32

func (*DeletePolicyRequest) ProtoMessage

func (*DeletePolicyRequest) ProtoMessage()

func (*DeletePolicyRequest) ProtoReflect

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

func (*DeletePolicyRequest) Reset

func (x *DeletePolicyRequest) Reset()

func (*DeletePolicyRequest) String

func (x *DeletePolicyRequest) String() string

func (*DeletePolicyRequest) Validate

func (d *DeletePolicyRequest) Validate() error

Validate DeletePolicyRequest

type DeleteRoleRequest

type DeleteRoleRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRoleRequest) Descriptor deprecated

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

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetProjectId

func (x *DeleteRoleRequest) GetProjectId() uint32

func (*DeleteRoleRequest) GetRoleId

func (x *DeleteRoleRequest) GetRoleId() uint32

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

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

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Validate

func (d *DeleteRoleRequest) Validate() error

Validate DeleteRoleRequest

type DetachAccessTokenRoleRequest

type DetachAccessTokenRoleRequest struct {
	ProjectId     uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccessTokenId uint32 `protobuf:"varint,2,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	RoleId        uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DetachAccessTokenRoleRequest) Descriptor deprecated

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

Deprecated: Use DetachAccessTokenRoleRequest.ProtoReflect.Descriptor instead.

func (*DetachAccessTokenRoleRequest) GetAccessTokenId

func (x *DetachAccessTokenRoleRequest) GetAccessTokenId() uint32

func (*DetachAccessTokenRoleRequest) GetProjectId

func (x *DetachAccessTokenRoleRequest) GetProjectId() uint32

func (*DetachAccessTokenRoleRequest) GetRoleId

func (x *DetachAccessTokenRoleRequest) GetRoleId() uint32

func (*DetachAccessTokenRoleRequest) ProtoMessage

func (*DetachAccessTokenRoleRequest) ProtoMessage()

func (*DetachAccessTokenRoleRequest) ProtoReflect

func (*DetachAccessTokenRoleRequest) Reset

func (x *DetachAccessTokenRoleRequest) Reset()

func (*DetachAccessTokenRoleRequest) String

func (*DetachAccessTokenRoleRequest) Validate

func (d *DetachAccessTokenRoleRequest) Validate() error

Validate DetachAccessTokenRoleRequest

type DetachPolicyRequest

type DetachPolicyRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	PolicyId  uint32 `protobuf:"varint,3,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DetachPolicyRequest) Descriptor deprecated

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

Deprecated: Use DetachPolicyRequest.ProtoReflect.Descriptor instead.

func (*DetachPolicyRequest) GetPolicyId

func (x *DetachPolicyRequest) GetPolicyId() uint32

func (*DetachPolicyRequest) GetProjectId

func (x *DetachPolicyRequest) GetProjectId() uint32

func (*DetachPolicyRequest) GetRoleId

func (x *DetachPolicyRequest) GetRoleId() uint32

func (*DetachPolicyRequest) ProtoMessage

func (*DetachPolicyRequest) ProtoMessage()

func (*DetachPolicyRequest) ProtoReflect

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

func (*DetachPolicyRequest) Reset

func (x *DetachPolicyRequest) Reset()

func (*DetachPolicyRequest) String

func (x *DetachPolicyRequest) String() string

func (*DetachPolicyRequest) Validate

func (d *DetachPolicyRequest) Validate() error

Validate DetachPolicyRequest

type DetachRoleRequest

type DetachRoleRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	UserId    uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DetachRoleRequest) Descriptor deprecated

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

Deprecated: Use DetachRoleRequest.ProtoReflect.Descriptor instead.

func (*DetachRoleRequest) GetProjectId

func (x *DetachRoleRequest) GetProjectId() uint32

func (*DetachRoleRequest) GetRoleId

func (x *DetachRoleRequest) GetRoleId() uint32

func (*DetachRoleRequest) GetUserId

func (x *DetachRoleRequest) GetUserId() uint32

func (*DetachRoleRequest) ProtoMessage

func (*DetachRoleRequest) ProtoMessage()

func (*DetachRoleRequest) ProtoReflect

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

func (*DetachRoleRequest) Reset

func (x *DetachRoleRequest) Reset()

func (*DetachRoleRequest) String

func (x *DetachRoleRequest) String() string

func (*DetachRoleRequest) Validate

func (d *DetachRoleRequest) Validate() error

Validate DetachRoleRequest

func (*DetachRoleRequest) ValidateForAdmin

func (d *DetachRoleRequest) ValidateForAdmin() error

ValidateForAdmin DetachRoleRequest

type GetPolicyRequest

type GetPolicyRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	PolicyId  uint32 `protobuf:"varint,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyRequest) Descriptor deprecated

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

Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead.

func (*GetPolicyRequest) GetPolicyId

func (x *GetPolicyRequest) GetPolicyId() uint32

func (*GetPolicyRequest) GetProjectId

func (x *GetPolicyRequest) GetProjectId() uint32

func (*GetPolicyRequest) ProtoMessage

func (*GetPolicyRequest) ProtoMessage()

func (*GetPolicyRequest) ProtoReflect

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

func (*GetPolicyRequest) Reset

func (x *GetPolicyRequest) Reset()

func (*GetPolicyRequest) String

func (x *GetPolicyRequest) String() string

func (*GetPolicyRequest) Validate

func (g *GetPolicyRequest) Validate() error

Validate GetPolicyRequest

type GetPolicyResponse

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

func (*GetPolicyResponse) Descriptor deprecated

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

Deprecated: Use GetPolicyResponse.ProtoReflect.Descriptor instead.

func (*GetPolicyResponse) GetPolicy

func (x *GetPolicyResponse) GetPolicy() *Policy

func (*GetPolicyResponse) ProtoMessage

func (*GetPolicyResponse) ProtoMessage()

func (*GetPolicyResponse) ProtoReflect

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

func (*GetPolicyResponse) Reset

func (x *GetPolicyResponse) Reset()

func (*GetPolicyResponse) String

func (x *GetPolicyResponse) String() string

type GetRoleRequest

type GetRoleRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetProjectId

func (x *GetRoleRequest) GetProjectId() uint32

func (*GetRoleRequest) GetRoleId

func (x *GetRoleRequest) GetRoleId() uint32

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

func (*GetRoleRequest) Validate

func (g *GetRoleRequest) Validate() error

Validate GetRoleRequest

func (*GetRoleRequest) ValidateForAdmin

func (g *GetRoleRequest) ValidateForAdmin() error

ValidateForAdmin GetRoleRequest

type GetRoleResponse

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

func (*GetRoleResponse) Descriptor deprecated

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

Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.

func (*GetRoleResponse) GetRole

func (x *GetRoleResponse) GetRole() *Role

func (*GetRoleResponse) ProtoMessage

func (*GetRoleResponse) ProtoMessage()

func (*GetRoleResponse) ProtoReflect

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

func (*GetRoleResponse) Reset

func (x *GetRoleResponse) Reset()

func (*GetRoleResponse) String

func (x *GetRoleResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Sub    string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetSub

func (x *GetUserRequest) GetSub() string

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() uint32

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (g *GetUserRequest) Validate() error

Validate GetUserRequest

type GetUserResponse

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

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type IAMServiceClient

type IAMServiceClient interface {
	// User
	ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	PutUser(ctx context.Context, in *PutUserRequest, opts ...grpc.CallOption) (*PutUserResponse, error)
	// Role
	ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleResponse, error)
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
	PutRole(ctx context.Context, in *PutRoleRequest, opts ...grpc.CallOption) (*PutRoleResponse, error)
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AttachRole(ctx context.Context, in *AttachRoleRequest, opts ...grpc.CallOption) (*AttachRoleResponse, error)
	DetachRole(ctx context.Context, in *DetachRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Policy
	ListPolicy(ctx context.Context, in *ListPolicyRequest, opts ...grpc.CallOption) (*ListPolicyResponse, error)
	GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error)
	PutPolicy(ctx context.Context, in *PutPolicyRequest, opts ...grpc.CallOption) (*PutPolicyResponse, error)
	DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AttachPolicy(ctx context.Context, in *AttachPolicyRequest, opts ...grpc.CallOption) (*AttachPolicyResponse, error)
	DetachPolicy(ctx context.Context, in *DetachPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// AccessToken
	ListAccessToken(ctx context.Context, in *ListAccessTokenRequest, opts ...grpc.CallOption) (*ListAccessTokenResponse, error)
	AuthenticateAccessToken(ctx context.Context, in *AuthenticateAccessTokenRequest, opts ...grpc.CallOption) (*AuthenticateAccessTokenResponse, error)
	PutAccessToken(ctx context.Context, in *PutAccessTokenRequest, opts ...grpc.CallOption) (*PutAccessTokenResponse, error)
	DeleteAccessToken(ctx context.Context, in *DeleteAccessTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AttachAccessTokenRole(ctx context.Context, in *AttachAccessTokenRoleRequest, opts ...grpc.CallOption) (*AttachAccessTokenRoleResponse, error)
	DetachAccessTokenRole(ctx context.Context, in *DetachAccessTokenRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AnalyzeTokenExpiration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ユーザに対しての認可を行います
	IsAuthorized(ctx context.Context, in *IsAuthorizedRequest, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
	// 管理者ユーザに対しての認可を行います
	IsAuthorizedAdmin(ctx context.Context, in *IsAuthorizedAdminRequest, opts ...grpc.CallOption) (*IsAuthorizedAdminResponse, error)
	// アクセストークンに対しての認可を行います
	IsAuthorizedToken(ctx context.Context, in *IsAuthorizedTokenRequest, opts ...grpc.CallOption) (*IsAuthorizedTokenResponse, error)
	// 特定プロジェクトに依存しない管理者権限を持っているかどうかを返します
	IsAdmin(ctx context.Context, in *IsAdminRequest, opts ...grpc.CallOption) (*IsAdminResponse, error)
}

IAMServiceClient is the client API for IAMService service.

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

func NewIAMServiceClient

func NewIAMServiceClient(cc grpc.ClientConnInterface) IAMServiceClient

type IAMServiceServer

type IAMServiceServer interface {
	// User
	ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	PutUser(context.Context, *PutUserRequest) (*PutUserResponse, error)
	// Role
	ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
	GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
	PutRole(context.Context, *PutRoleRequest) (*PutRoleResponse, error)
	DeleteRole(context.Context, *DeleteRoleRequest) (*emptypb.Empty, error)
	AttachRole(context.Context, *AttachRoleRequest) (*AttachRoleResponse, error)
	DetachRole(context.Context, *DetachRoleRequest) (*emptypb.Empty, error)
	// Policy
	ListPolicy(context.Context, *ListPolicyRequest) (*ListPolicyResponse, error)
	GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error)
	PutPolicy(context.Context, *PutPolicyRequest) (*PutPolicyResponse, error)
	DeletePolicy(context.Context, *DeletePolicyRequest) (*emptypb.Empty, error)
	AttachPolicy(context.Context, *AttachPolicyRequest) (*AttachPolicyResponse, error)
	DetachPolicy(context.Context, *DetachPolicyRequest) (*emptypb.Empty, error)
	// AccessToken
	ListAccessToken(context.Context, *ListAccessTokenRequest) (*ListAccessTokenResponse, error)
	AuthenticateAccessToken(context.Context, *AuthenticateAccessTokenRequest) (*AuthenticateAccessTokenResponse, error)
	PutAccessToken(context.Context, *PutAccessTokenRequest) (*PutAccessTokenResponse, error)
	DeleteAccessToken(context.Context, *DeleteAccessTokenRequest) (*emptypb.Empty, error)
	AttachAccessTokenRole(context.Context, *AttachAccessTokenRoleRequest) (*AttachAccessTokenRoleResponse, error)
	DetachAccessTokenRole(context.Context, *DetachAccessTokenRoleRequest) (*emptypb.Empty, error)
	AnalyzeTokenExpiration(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// ユーザに対しての認可を行います
	IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedResponse, error)
	// 管理者ユーザに対しての認可を行います
	IsAuthorizedAdmin(context.Context, *IsAuthorizedAdminRequest) (*IsAuthorizedAdminResponse, error)
	// アクセストークンに対しての認可を行います
	IsAuthorizedToken(context.Context, *IsAuthorizedTokenRequest) (*IsAuthorizedTokenResponse, error)
	// 特定プロジェクトに依存しない管理者権限を持っているかどうかを返します
	IsAdmin(context.Context, *IsAdminRequest) (*IsAdminResponse, error)
}

IAMServiceServer is the server API for IAMService service.

type IsAdminRequest

type IsAdminRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

IsAdminRequest 特定プロジェクトに依存しない管理者権限を持っているかどうかを返します

func (*IsAdminRequest) Descriptor deprecated

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

Deprecated: Use IsAdminRequest.ProtoReflect.Descriptor instead.

func (*IsAdminRequest) GetUserId

func (x *IsAdminRequest) GetUserId() uint32

func (*IsAdminRequest) ProtoMessage

func (*IsAdminRequest) ProtoMessage()

func (*IsAdminRequest) ProtoReflect

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

func (*IsAdminRequest) Reset

func (x *IsAdminRequest) Reset()

func (*IsAdminRequest) String

func (x *IsAdminRequest) String() string

func (*IsAdminRequest) Validate

func (i *IsAdminRequest) Validate() error

Validate IsAdmin

type IsAdminResponse

type IsAdminResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAdminResponse) Descriptor deprecated

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

Deprecated: Use IsAdminResponse.ProtoReflect.Descriptor instead.

func (*IsAdminResponse) GetOk

func (x *IsAdminResponse) GetOk() bool

func (*IsAdminResponse) ProtoMessage

func (*IsAdminResponse) ProtoMessage()

func (*IsAdminResponse) ProtoReflect

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

func (*IsAdminResponse) Reset

func (x *IsAdminResponse) Reset()

func (*IsAdminResponse) String

func (x *IsAdminResponse) String() string

type IsAuthorizedAdminRequest

type IsAuthorizedAdminRequest struct {
	UserId       uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // UserID,(e.g.)111
	ActionName   string `protobuf:"bytes,2,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`       // Service&API_name(<service_name>/<API>format),(e.g.)`finding/get-finding`
	ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // System_resource_name(<prefix>/<resouorce_name>format)
	// contains filtered or unexported fields
}

IsAuthorizedAdminRequest 管理者ユーザからのリクエストに対してアクションやリソース�への認可を行います

func (*IsAuthorizedAdminRequest) Descriptor deprecated

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

Deprecated: Use IsAuthorizedAdminRequest.ProtoReflect.Descriptor instead.

func (*IsAuthorizedAdminRequest) GetActionName

func (x *IsAuthorizedAdminRequest) GetActionName() string

func (*IsAuthorizedAdminRequest) GetResourceName

func (x *IsAuthorizedAdminRequest) GetResourceName() string

func (*IsAuthorizedAdminRequest) GetUserId

func (x *IsAuthorizedAdminRequest) GetUserId() uint32

func (*IsAuthorizedAdminRequest) ProtoMessage

func (*IsAuthorizedAdminRequest) ProtoMessage()

func (*IsAuthorizedAdminRequest) ProtoReflect

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

func (*IsAuthorizedAdminRequest) Reset

func (x *IsAuthorizedAdminRequest) Reset()

func (*IsAuthorizedAdminRequest) String

func (x *IsAuthorizedAdminRequest) String() string

func (*IsAuthorizedAdminRequest) Validate

func (i *IsAuthorizedAdminRequest) Validate() error

Validate IsAuthorizedAdminRequest

type IsAuthorizedAdminResponse

type IsAuthorizedAdminResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedAdminResponse) Descriptor deprecated

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

Deprecated: Use IsAuthorizedAdminResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedAdminResponse) GetOk

func (x *IsAuthorizedAdminResponse) GetOk() bool

func (*IsAuthorizedAdminResponse) ProtoMessage

func (*IsAuthorizedAdminResponse) ProtoMessage()

func (*IsAuthorizedAdminResponse) ProtoReflect

func (*IsAuthorizedAdminResponse) Reset

func (x *IsAuthorizedAdminResponse) Reset()

func (*IsAuthorizedAdminResponse) String

func (x *IsAuthorizedAdminResponse) String() string

type IsAuthorizedRequest

type IsAuthorizedRequest struct {
	UserId       uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // UserID,(e.g.)111
	ProjectId    uint32 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`         // ProjectID,(e.g.)1001
	ActionName   string `protobuf:"bytes,3,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`       // Service&API_name(<service_name>/<API>format),(e.g.)`finding/get-finding`
	ResourceName string `protobuf:"bytes,4,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // System_resource_name(<prefix>/<resouorce_name>format)
	// contains filtered or unexported fields
}

IsAuthorizedRequest ユーザからのリクエストに対してアクションやリソース�への認可を行います

func (*IsAuthorizedRequest) Descriptor deprecated

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

Deprecated: Use IsAuthorizedRequest.ProtoReflect.Descriptor instead.

func (*IsAuthorizedRequest) GetActionName

func (x *IsAuthorizedRequest) GetActionName() string

func (*IsAuthorizedRequest) GetProjectId

func (x *IsAuthorizedRequest) GetProjectId() uint32

func (*IsAuthorizedRequest) GetResourceName

func (x *IsAuthorizedRequest) GetResourceName() string

func (*IsAuthorizedRequest) GetUserId

func (x *IsAuthorizedRequest) GetUserId() uint32

func (*IsAuthorizedRequest) ProtoMessage

func (*IsAuthorizedRequest) ProtoMessage()

func (*IsAuthorizedRequest) ProtoReflect

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

func (*IsAuthorizedRequest) Reset

func (x *IsAuthorizedRequest) Reset()

func (*IsAuthorizedRequest) String

func (x *IsAuthorizedRequest) String() string

func (*IsAuthorizedRequest) Validate

func (i *IsAuthorizedRequest) Validate() error

Validate IsAuthorizedRequest

type IsAuthorizedResponse

type IsAuthorizedResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse) GetOk

func (x *IsAuthorizedResponse) GetOk() bool

func (*IsAuthorizedResponse) ProtoMessage

func (*IsAuthorizedResponse) ProtoMessage()

func (*IsAuthorizedResponse) ProtoReflect

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

func (*IsAuthorizedResponse) Reset

func (x *IsAuthorizedResponse) Reset()

func (*IsAuthorizedResponse) String

func (x *IsAuthorizedResponse) String() string

type IsAuthorizedTokenRequest

type IsAuthorizedTokenRequest struct {
	AccessTokenId uint32 `protobuf:"varint,1,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"` // AccessTokenID,(e.g.)111
	ProjectId     uint32 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`               // ProjectID,(e.g.)1001
	ActionName    string `protobuf:"bytes,3,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`             // Service&API_name(<service_name>/<API>format),(e.g.)`finding/get-finding`
	ResourceName  string `protobuf:"bytes,4,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`       // System_resource_name(<prefix>/<resouorce_name>format)
	// contains filtered or unexported fields
}

IsAuthorizedTokenRequest アクセストークンに対してアクションやリソース�への認可を行います

func (*IsAuthorizedTokenRequest) Descriptor deprecated

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

Deprecated: Use IsAuthorizedTokenRequest.ProtoReflect.Descriptor instead.

func (*IsAuthorizedTokenRequest) GetAccessTokenId

func (x *IsAuthorizedTokenRequest) GetAccessTokenId() uint32

func (*IsAuthorizedTokenRequest) GetActionName

func (x *IsAuthorizedTokenRequest) GetActionName() string

func (*IsAuthorizedTokenRequest) GetProjectId

func (x *IsAuthorizedTokenRequest) GetProjectId() uint32

func (*IsAuthorizedTokenRequest) GetResourceName

func (x *IsAuthorizedTokenRequest) GetResourceName() string

func (*IsAuthorizedTokenRequest) ProtoMessage

func (*IsAuthorizedTokenRequest) ProtoMessage()

func (*IsAuthorizedTokenRequest) ProtoReflect

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

func (*IsAuthorizedTokenRequest) Reset

func (x *IsAuthorizedTokenRequest) Reset()

func (*IsAuthorizedTokenRequest) String

func (x *IsAuthorizedTokenRequest) String() string

func (*IsAuthorizedTokenRequest) Validate

func (i *IsAuthorizedTokenRequest) Validate() error

Validate IsAuthorizedTokenRequest

type IsAuthorizedTokenResponse

type IsAuthorizedTokenResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedTokenResponse) Descriptor deprecated

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

Deprecated: Use IsAuthorizedTokenResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedTokenResponse) GetOk

func (x *IsAuthorizedTokenResponse) GetOk() bool

func (*IsAuthorizedTokenResponse) ProtoMessage

func (*IsAuthorizedTokenResponse) ProtoMessage()

func (*IsAuthorizedTokenResponse) ProtoReflect

func (*IsAuthorizedTokenResponse) Reset

func (x *IsAuthorizedTokenResponse) Reset()

func (*IsAuthorizedTokenResponse) String

func (x *IsAuthorizedTokenResponse) String() string

type ListAccessTokenRequest

type ListAccessTokenRequest struct {
	ProjectId     uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AccessTokenId uint32 `protobuf:"varint,3,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use ListAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*ListAccessTokenRequest) GetAccessTokenId

func (x *ListAccessTokenRequest) GetAccessTokenId() uint32

func (*ListAccessTokenRequest) GetName

func (x *ListAccessTokenRequest) GetName() string

func (*ListAccessTokenRequest) GetProjectId

func (x *ListAccessTokenRequest) GetProjectId() uint32

func (*ListAccessTokenRequest) ProtoMessage

func (*ListAccessTokenRequest) ProtoMessage()

func (*ListAccessTokenRequest) ProtoReflect

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

func (*ListAccessTokenRequest) Reset

func (x *ListAccessTokenRequest) Reset()

func (*ListAccessTokenRequest) String

func (x *ListAccessTokenRequest) String() string

func (*ListAccessTokenRequest) Validate

func (l *ListAccessTokenRequest) Validate() error

Validate ListAccessTokenRequest

type ListAccessTokenResponse

type ListAccessTokenResponse struct {
	AccessToken []*AccessToken `protobuf:"bytes,1,rep,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccessTokenResponse) Descriptor deprecated

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

Deprecated: Use ListAccessTokenResponse.ProtoReflect.Descriptor instead.

func (*ListAccessTokenResponse) GetAccessToken

func (x *ListAccessTokenResponse) GetAccessToken() []*AccessToken

func (*ListAccessTokenResponse) ProtoMessage

func (*ListAccessTokenResponse) ProtoMessage()

func (*ListAccessTokenResponse) ProtoReflect

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

func (*ListAccessTokenResponse) Reset

func (x *ListAccessTokenResponse) Reset()

func (*ListAccessTokenResponse) String

func (x *ListAccessTokenResponse) String() string

type ListPolicyRequest

type ListPolicyRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	RoleId    uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPolicyRequest) Descriptor deprecated

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

Deprecated: Use ListPolicyRequest.ProtoReflect.Descriptor instead.

func (*ListPolicyRequest) GetName

func (x *ListPolicyRequest) GetName() string

func (*ListPolicyRequest) GetProjectId

func (x *ListPolicyRequest) GetProjectId() uint32

func (*ListPolicyRequest) GetRoleId

func (x *ListPolicyRequest) GetRoleId() uint32

func (*ListPolicyRequest) ProtoMessage

func (*ListPolicyRequest) ProtoMessage()

func (*ListPolicyRequest) ProtoReflect

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

func (*ListPolicyRequest) Reset

func (x *ListPolicyRequest) Reset()

func (*ListPolicyRequest) String

func (x *ListPolicyRequest) String() string

func (*ListPolicyRequest) Validate

func (l *ListPolicyRequest) Validate() error

Validate ListPolicyRequest

type ListPolicyResponse

type ListPolicyResponse struct {
	PolicyId []uint32 `protobuf:"varint,1,rep,packed,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPolicyResponse) Descriptor deprecated

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

Deprecated: Use ListPolicyResponse.ProtoReflect.Descriptor instead.

func (*ListPolicyResponse) GetPolicyId

func (x *ListPolicyResponse) GetPolicyId() []uint32

func (*ListPolicyResponse) ProtoMessage

func (*ListPolicyResponse) ProtoMessage()

func (*ListPolicyResponse) ProtoReflect

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

func (*ListPolicyResponse) Reset

func (x *ListPolicyResponse) Reset()

func (*ListPolicyResponse) String

func (x *ListPolicyResponse) String() string

type ListRoleRequest

type ListRoleRequest struct {
	ProjectId     uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	UserId        uint32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AccessTokenId uint32 `protobuf:"varint,4,opt,name=access_token_id,json=accessTokenId,proto3" json:"access_token_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleRequest) Descriptor deprecated

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

Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.

func (*ListRoleRequest) GetAccessTokenId

func (x *ListRoleRequest) GetAccessTokenId() uint32

func (*ListRoleRequest) GetName

func (x *ListRoleRequest) GetName() string

func (*ListRoleRequest) GetProjectId

func (x *ListRoleRequest) GetProjectId() uint32

func (*ListRoleRequest) GetUserId

func (x *ListRoleRequest) GetUserId() uint32

func (*ListRoleRequest) ProtoMessage

func (*ListRoleRequest) ProtoMessage()

func (*ListRoleRequest) ProtoReflect

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

func (*ListRoleRequest) Reset

func (x *ListRoleRequest) Reset()

func (*ListRoleRequest) String

func (x *ListRoleRequest) String() string

func (*ListRoleRequest) Validate

func (l *ListRoleRequest) Validate() error

Validate ListRoleRequest

func (*ListRoleRequest) ValidateForAdmin

func (l *ListRoleRequest) ValidateForAdmin() error

ValidateForAdmin ListRoleRequest

type ListRoleResponse

type ListRoleResponse struct {
	RoleId []uint32 `protobuf:"varint,1,rep,packed,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleResponse) Descriptor deprecated

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

Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.

func (*ListRoleResponse) GetRoleId

func (x *ListRoleResponse) GetRoleId() []uint32

func (*ListRoleResponse) ProtoMessage

func (*ListRoleResponse) ProtoMessage()

func (*ListRoleResponse) ProtoReflect

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

func (*ListRoleResponse) Reset

func (x *ListRoleResponse) Reset()

func (*ListRoleResponse) String

func (x *ListRoleResponse) String() string

type ListUserRequest

type ListUserRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Activated bool   `protobuf:"varint,3,opt,name=activated,proto3" json:"activated,omitempty"`
	UserId    uint32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Admin     bool   `protobuf:"varint,5,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

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

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetActivated

func (x *ListUserRequest) GetActivated() bool

func (*ListUserRequest) GetAdmin

func (x *ListUserRequest) GetAdmin() bool

func (*ListUserRequest) GetName

func (x *ListUserRequest) GetName() string

func (*ListUserRequest) GetProjectId

func (x *ListUserRequest) GetProjectId() uint32

func (*ListUserRequest) GetUserId

func (x *ListUserRequest) GetUserId() uint32

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

func (*ListUserRequest) Validate

func (l *ListUserRequest) Validate() error

Validate ListUserRequest

type ListUserResponse

type ListUserResponse struct {
	UserId []uint32 `protobuf:"varint,1,rep,packed,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserResponse) Descriptor deprecated

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

Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserResponse) GetUserId

func (x *ListUserResponse) GetUserId() []uint32

func (*ListUserResponse) ProtoMessage

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) ProtoReflect

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

func (*ListUserResponse) Reset

func (x *ListUserResponse) Reset()

func (*ListUserResponse) String

func (x *ListUserResponse) String() string

type Policy

type Policy struct {
	PolicyId    uint32 `protobuf:"varint,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId   uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ActionPtn   string `protobuf:"bytes,4,opt,name=action_ptn,json=actionPtn,proto3" json:"action_ptn,omitempty"`
	ResourcePtn string `protobuf:"bytes,5,opt,name=resource_ptn,json=resourcePtn,proto3" json:"resource_ptn,omitempty"`
	CreatedAt   int64  `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   int64  `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Policy

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetActionPtn

func (x *Policy) GetActionPtn() string

func (*Policy) GetCreatedAt

func (x *Policy) GetCreatedAt() int64

func (*Policy) GetName

func (x *Policy) GetName() string

func (*Policy) GetPolicyId

func (x *Policy) GetPolicyId() uint32

func (*Policy) GetProjectId

func (x *Policy) GetProjectId() uint32

func (*Policy) GetResourcePtn

func (x *Policy) GetResourcePtn() string

func (*Policy) GetUpdatedAt

func (x *Policy) GetUpdatedAt() int64

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type PolicyForUpsert

type PolicyForUpsert struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId   uint32 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ActionPtn   string `protobuf:"bytes,3,opt,name=action_ptn,json=actionPtn,proto3" json:"action_ptn,omitempty"`
	ResourcePtn string `protobuf:"bytes,4,opt,name=resource_ptn,json=resourcePtn,proto3" json:"resource_ptn,omitempty"`
	// contains filtered or unexported fields
}

PolicyForUpsert

func (*PolicyForUpsert) Descriptor deprecated

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

Deprecated: Use PolicyForUpsert.ProtoReflect.Descriptor instead.

func (*PolicyForUpsert) GetActionPtn

func (x *PolicyForUpsert) GetActionPtn() string

func (*PolicyForUpsert) GetName

func (x *PolicyForUpsert) GetName() string

func (*PolicyForUpsert) GetProjectId

func (x *PolicyForUpsert) GetProjectId() uint32

func (*PolicyForUpsert) GetResourcePtn

func (x *PolicyForUpsert) GetResourcePtn() string

func (*PolicyForUpsert) ProtoMessage

func (*PolicyForUpsert) ProtoMessage()

func (*PolicyForUpsert) ProtoReflect

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

func (*PolicyForUpsert) Reset

func (x *PolicyForUpsert) Reset()

func (*PolicyForUpsert) String

func (x *PolicyForUpsert) String() string

func (*PolicyForUpsert) Validate

func (r *PolicyForUpsert) Validate() error

Validate PolicyForUpsert

type PutAccessTokenRequest

type PutAccessTokenRequest struct {
	ProjectId   uint32                `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccessToken *AccessTokenForUpsert `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*PutAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use PutAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*PutAccessTokenRequest) GetAccessToken

func (x *PutAccessTokenRequest) GetAccessToken() *AccessTokenForUpsert

func (*PutAccessTokenRequest) GetProjectId

func (x *PutAccessTokenRequest) GetProjectId() uint32

func (*PutAccessTokenRequest) ProtoMessage

func (*PutAccessTokenRequest) ProtoMessage()

func (*PutAccessTokenRequest) ProtoReflect

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

func (*PutAccessTokenRequest) Reset

func (x *PutAccessTokenRequest) Reset()

func (*PutAccessTokenRequest) String

func (x *PutAccessTokenRequest) String() string

func (*PutAccessTokenRequest) Validate

func (p *PutAccessTokenRequest) Validate() error

Validate PutAccessTokenRequest

type PutAccessTokenResponse

type PutAccessTokenResponse struct {
	AccessToken *AccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*PutAccessTokenResponse) Descriptor deprecated

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

Deprecated: Use PutAccessTokenResponse.ProtoReflect.Descriptor instead.

func (*PutAccessTokenResponse) GetAccessToken

func (x *PutAccessTokenResponse) GetAccessToken() *AccessToken

func (*PutAccessTokenResponse) ProtoMessage

func (*PutAccessTokenResponse) ProtoMessage()

func (*PutAccessTokenResponse) ProtoReflect

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

func (*PutAccessTokenResponse) Reset

func (x *PutAccessTokenResponse) Reset()

func (*PutAccessTokenResponse) String

func (x *PutAccessTokenResponse) String() string

type PutPolicyRequest

type PutPolicyRequest struct {
	ProjectId uint32           `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Policy    *PolicyForUpsert `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*PutPolicyRequest) Descriptor deprecated

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

Deprecated: Use PutPolicyRequest.ProtoReflect.Descriptor instead.

func (*PutPolicyRequest) GetPolicy

func (x *PutPolicyRequest) GetPolicy() *PolicyForUpsert

func (*PutPolicyRequest) GetProjectId

func (x *PutPolicyRequest) GetProjectId() uint32

func (*PutPolicyRequest) ProtoMessage

func (*PutPolicyRequest) ProtoMessage()

func (*PutPolicyRequest) ProtoReflect

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

func (*PutPolicyRequest) Reset

func (x *PutPolicyRequest) Reset()

func (*PutPolicyRequest) String

func (x *PutPolicyRequest) String() string

func (*PutPolicyRequest) Validate

func (p *PutPolicyRequest) Validate() error

Validate PutPolicyRequest

type PutPolicyResponse

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

func (*PutPolicyResponse) Descriptor deprecated

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

Deprecated: Use PutPolicyResponse.ProtoReflect.Descriptor instead.

func (*PutPolicyResponse) GetPolicy

func (x *PutPolicyResponse) GetPolicy() *Policy

func (*PutPolicyResponse) ProtoMessage

func (*PutPolicyResponse) ProtoMessage()

func (*PutPolicyResponse) ProtoReflect

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

func (*PutPolicyResponse) Reset

func (x *PutPolicyResponse) Reset()

func (*PutPolicyResponse) String

func (x *PutPolicyResponse) String() string

type PutRoleRequest

type PutRoleRequest struct {
	ProjectId uint32         `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Role      *RoleForUpsert `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*PutRoleRequest) Descriptor deprecated

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

Deprecated: Use PutRoleRequest.ProtoReflect.Descriptor instead.

func (*PutRoleRequest) GetProjectId

func (x *PutRoleRequest) GetProjectId() uint32

func (*PutRoleRequest) GetRole

func (x *PutRoleRequest) GetRole() *RoleForUpsert

func (*PutRoleRequest) ProtoMessage

func (*PutRoleRequest) ProtoMessage()

func (*PutRoleRequest) ProtoReflect

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

func (*PutRoleRequest) Reset

func (x *PutRoleRequest) Reset()

func (*PutRoleRequest) String

func (x *PutRoleRequest) String() string

func (*PutRoleRequest) Validate

func (p *PutRoleRequest) Validate() error

Validate PutRoleRequest

type PutRoleResponse

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

func (*PutRoleResponse) Descriptor deprecated

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

Deprecated: Use PutRoleResponse.ProtoReflect.Descriptor instead.

func (*PutRoleResponse) GetRole

func (x *PutRoleResponse) GetRole() *Role

func (*PutRoleResponse) ProtoMessage

func (*PutRoleResponse) ProtoMessage()

func (*PutRoleResponse) ProtoReflect

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

func (*PutRoleResponse) Reset

func (x *PutRoleResponse) Reset()

func (*PutRoleResponse) String

func (x *PutRoleResponse) String() string

type PutUserRequest

type PutUserRequest struct {
	User *UserForUpsert `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*PutUserRequest) Descriptor deprecated

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

Deprecated: Use PutUserRequest.ProtoReflect.Descriptor instead.

func (*PutUserRequest) GetUser

func (x *PutUserRequest) GetUser() *UserForUpsert

func (*PutUserRequest) ProtoMessage

func (*PutUserRequest) ProtoMessage()

func (*PutUserRequest) ProtoReflect

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

func (*PutUserRequest) Reset

func (x *PutUserRequest) Reset()

func (*PutUserRequest) String

func (x *PutUserRequest) String() string

func (*PutUserRequest) Validate

func (p *PutUserRequest) Validate() error

Validate PutUserRequest

type PutUserResponse

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

func (*PutUserResponse) Descriptor deprecated

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

Deprecated: Use PutUserResponse.ProtoReflect.Descriptor instead.

func (*PutUserResponse) GetUser

func (x *PutUserResponse) GetUser() *User

func (*PutUserResponse) ProtoMessage

func (*PutUserResponse) ProtoMessage()

func (*PutUserResponse) ProtoReflect

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

func (*PutUserResponse) Reset

func (x *PutUserResponse) Reset()

func (*PutUserResponse) String

func (x *PutUserResponse) String() string

type Role

type Role struct {
	RoleId    uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Role

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() int64

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetProjectId

func (x *Role) GetProjectId() uint32

func (*Role) GetRoleId

func (x *Role) GetRoleId() uint32

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() int64

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type RoleForUpsert

type RoleForUpsert struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId uint32 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

RoleForUpsert

func (*RoleForUpsert) Descriptor deprecated

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

Deprecated: Use RoleForUpsert.ProtoReflect.Descriptor instead.

func (*RoleForUpsert) GetName

func (x *RoleForUpsert) GetName() string

func (*RoleForUpsert) GetProjectId

func (x *RoleForUpsert) GetProjectId() uint32

func (*RoleForUpsert) ProtoMessage

func (*RoleForUpsert) ProtoMessage()

func (*RoleForUpsert) ProtoReflect

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

func (*RoleForUpsert) Reset

func (x *RoleForUpsert) Reset()

func (*RoleForUpsert) String

func (x *RoleForUpsert) String() string

func (*RoleForUpsert) Validate

func (r *RoleForUpsert) Validate() error

Validate RoleForUpsert

type RolePolicy

type RolePolicy struct {
	RoleId    uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	PolicyId  uint32 `protobuf:"varint,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	ProjectId uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

RolePolicy

func (*RolePolicy) Descriptor deprecated

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

Deprecated: Use RolePolicy.ProtoReflect.Descriptor instead.

func (*RolePolicy) GetCreatedAt

func (x *RolePolicy) GetCreatedAt() int64

func (*RolePolicy) GetPolicyId

func (x *RolePolicy) GetPolicyId() uint32

func (*RolePolicy) GetProjectId

func (x *RolePolicy) GetProjectId() uint32

func (*RolePolicy) GetRoleId

func (x *RolePolicy) GetRoleId() uint32

func (*RolePolicy) GetUpdatedAt

func (x *RolePolicy) GetUpdatedAt() int64

func (*RolePolicy) ProtoMessage

func (*RolePolicy) ProtoMessage()

func (*RolePolicy) ProtoReflect

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

func (*RolePolicy) Reset

func (x *RolePolicy) Reset()

func (*RolePolicy) String

func (x *RolePolicy) String() string

type UnimplementedIAMServiceServer

type UnimplementedIAMServiceServer struct {
}

UnimplementedIAMServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedIAMServiceServer) AnalyzeTokenExpiration

func (*UnimplementedIAMServiceServer) AttachPolicy

func (*UnimplementedIAMServiceServer) AttachRole

func (*UnimplementedIAMServiceServer) DeleteAccessToken

func (*UnimplementedIAMServiceServer) DeletePolicy

func (*UnimplementedIAMServiceServer) DeleteRole

func (*UnimplementedIAMServiceServer) DetachAccessTokenRole

func (*UnimplementedIAMServiceServer) DetachPolicy

func (*UnimplementedIAMServiceServer) DetachRole

func (*UnimplementedIAMServiceServer) GetPolicy

func (*UnimplementedIAMServiceServer) GetRole

func (*UnimplementedIAMServiceServer) GetUser

func (*UnimplementedIAMServiceServer) IsAdmin

func (*UnimplementedIAMServiceServer) IsAuthorized

func (*UnimplementedIAMServiceServer) IsAuthorizedAdmin

func (*UnimplementedIAMServiceServer) IsAuthorizedToken

func (*UnimplementedIAMServiceServer) ListAccessToken

func (*UnimplementedIAMServiceServer) ListPolicy

func (*UnimplementedIAMServiceServer) ListRole

func (*UnimplementedIAMServiceServer) ListUser

func (*UnimplementedIAMServiceServer) PutAccessToken

func (*UnimplementedIAMServiceServer) PutPolicy

func (*UnimplementedIAMServiceServer) PutRole

func (*UnimplementedIAMServiceServer) PutUser

type User

type User struct {
	UserId    uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Sub       string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Activated bool   `protobuf:"varint,4,opt,name=activated,proto3" json:"activated,omitempty"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

User

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActivated

func (x *User) GetActivated() bool

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() int64

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSub

func (x *User) GetSub() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() int64

func (*User) GetUserId

func (x *User) GetUserId() uint32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserForUpsert

type UserForUpsert struct {
	Sub       string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Activated bool   `protobuf:"varint,3,opt,name=activated,proto3" json:"activated,omitempty"`
	// contains filtered or unexported fields
}

UserForUpsert (Unique keys: sub)

func (*UserForUpsert) Descriptor deprecated

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

Deprecated: Use UserForUpsert.ProtoReflect.Descriptor instead.

func (*UserForUpsert) GetActivated

func (x *UserForUpsert) GetActivated() bool

func (*UserForUpsert) GetName

func (x *UserForUpsert) GetName() string

func (*UserForUpsert) GetSub

func (x *UserForUpsert) GetSub() string

func (*UserForUpsert) ProtoMessage

func (*UserForUpsert) ProtoMessage()

func (*UserForUpsert) ProtoReflect

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

func (*UserForUpsert) Reset

func (x *UserForUpsert) Reset()

func (*UserForUpsert) String

func (x *UserForUpsert) String() string

func (*UserForUpsert) Validate

func (u *UserForUpsert) Validate() error

Validate UserForUpsert

type UserRole

type UserRole struct {
	UserId    uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	RoleId    uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	ProjectId uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

UserRole

func (*UserRole) Descriptor deprecated

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

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetCreatedAt

func (x *UserRole) GetCreatedAt() int64

func (*UserRole) GetProjectId

func (x *UserRole) GetProjectId() uint32

func (*UserRole) GetRoleId

func (x *UserRole) GetRoleId() uint32

func (*UserRole) GetUpdatedAt

func (x *UserRole) GetUpdatedAt() int64

func (*UserRole) GetUserId

func (x *UserRole) GetUserId() uint32

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

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

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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