provisionerv1alpha1

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_commonfate_access_provisioner_v1alpha1_provisioner_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ProvisionRequest

type ProvisionRequest struct {

	// The ID of the Grant.
	Grant     *v1alpha1.EID    `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"`
	Principal *v1alpha1.Entity `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"`
	// DomainPrincipal is the principal to grant access to,
	// mapped to the identity domain of the system that we're provisioning in.
	//
	// For example, instead of sending a user's email address, we send the
	// ID of the user in AWS IAM Identity Center.
	//
	// This field may be empty if Common Fate fails to map the principal.
	// A well-designed provisioner should attempt to fall back on data from
	// the core principal entity instead to provision access.
	DomainPrincipal *v1alpha1.Entity `protobuf:"bytes,3,opt,name=domain_principal,json=domainPrincipal,proto3" json:"domain_principal,omitempty"`
	Target          *v1alpha1.Entity `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	Role            *v1alpha1.Entity `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
	// The integration config for provisioning access. This will be removed in future,
	// and will be replaced with the 'integration' field.
	IntegrationConfig *v1alpha11.Config `protobuf:"bytes,6,opt,name=integration_config,json=integrationConfig,proto3" json:"integration_config,omitempty"`
	// The ID of the request.
	AccessRequestId *v1alpha1.EID `protobuf:"bytes,7,opt,name=access_request_id,json=accessRequestId,proto3" json:"access_request_id,omitempty"`
	// The integration to use for provisioning access.
	Integration *v1alpha11.Integration `protobuf:"bytes,8,opt,name=integration,proto3" json:"integration,omitempty"`
	// Additional integration configurations. This is used for AWS resource-based access
	// such as our EKS integration, which requires an AWS IAM Identity Center integration.
	AdditionalIntegrations []*v1alpha11.Integration `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProvisionRequest) Descriptor deprecated

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

Deprecated: Use ProvisionRequest.ProtoReflect.Descriptor instead.

func (*ProvisionRequest) GetAccessRequestId added in v1.54.1

func (x *ProvisionRequest) GetAccessRequestId() *v1alpha1.EID

func (*ProvisionRequest) GetAdditionalIntegrations added in v1.61.0

func (x *ProvisionRequest) GetAdditionalIntegrations() []*v1alpha11.Integration

func (*ProvisionRequest) GetDomainPrincipal

func (x *ProvisionRequest) GetDomainPrincipal() *v1alpha1.Entity

func (*ProvisionRequest) GetGrant

func (x *ProvisionRequest) GetGrant() *v1alpha1.EID

func (*ProvisionRequest) GetIntegration added in v1.61.0

func (x *ProvisionRequest) GetIntegration() *v1alpha11.Integration

func (*ProvisionRequest) GetIntegrationConfig

func (x *ProvisionRequest) GetIntegrationConfig() *v1alpha11.Config

func (*ProvisionRequest) GetPrincipal

func (x *ProvisionRequest) GetPrincipal() *v1alpha1.Entity

func (*ProvisionRequest) GetRole

func (x *ProvisionRequest) GetRole() *v1alpha1.Entity

func (*ProvisionRequest) GetTarget

func (x *ProvisionRequest) GetTarget() *v1alpha1.Entity

func (*ProvisionRequest) ProtoMessage

func (*ProvisionRequest) ProtoMessage()

func (*ProvisionRequest) ProtoReflect

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

func (*ProvisionRequest) Reset

func (x *ProvisionRequest) Reset()

func (*ProvisionRequest) String

func (x *ProvisionRequest) String() string

func (*ProvisionRequest) Validate added in v1.42.0

func (m *ProvisionRequest) Validate() error

Validate checks the field values on ProvisionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProvisionRequest) ValidateAll added in v1.42.0

func (m *ProvisionRequest) ValidateAll() error

ValidateAll checks the field values on ProvisionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProvisionRequestMultiError, or nil if none found.

type ProvisionRequestMultiError added in v1.42.0

type ProvisionRequestMultiError []error

ProvisionRequestMultiError is an error wrapping multiple validation errors returned by ProvisionRequest.ValidateAll() if the designated constraints aren't met.

func (ProvisionRequestMultiError) AllErrors added in v1.42.0

func (m ProvisionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProvisionRequestMultiError) Error added in v1.42.0

Error returns a concatenation of all the error messages it wraps.

type ProvisionRequestValidationError added in v1.42.0

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

ProvisionRequestValidationError is the validation error returned by ProvisionRequest.Validate if the designated constraints aren't met.

func (ProvisionRequestValidationError) Cause added in v1.42.0

Cause function returns cause value.

func (ProvisionRequestValidationError) Error added in v1.42.0

Error satisfies the builtin error interface

func (ProvisionRequestValidationError) ErrorName added in v1.42.0

ErrorName returns error name.

func (ProvisionRequestValidationError) Field added in v1.42.0

Field function returns field value.

func (ProvisionRequestValidationError) Key added in v1.42.0

Key function returns key value.

func (ProvisionRequestValidationError) Reason added in v1.42.0

Reason function returns reason value.

type ProvisionResponse

type ProvisionResponse struct {
	Output *v1alpha1.Entity `protobuf:"bytes,3,opt,name=output,proto3,oneof" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionResponse) Descriptor deprecated

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

Deprecated: Use ProvisionResponse.ProtoReflect.Descriptor instead.

func (*ProvisionResponse) GetOutput

func (x *ProvisionResponse) GetOutput() *v1alpha1.Entity

func (*ProvisionResponse) ProtoMessage

func (*ProvisionResponse) ProtoMessage()

func (*ProvisionResponse) ProtoReflect

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

func (*ProvisionResponse) Reset

func (x *ProvisionResponse) Reset()

func (*ProvisionResponse) String

func (x *ProvisionResponse) String() string

func (*ProvisionResponse) Validate added in v1.42.0

func (m *ProvisionResponse) Validate() error

Validate checks the field values on ProvisionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProvisionResponse) ValidateAll added in v1.42.0

func (m *ProvisionResponse) ValidateAll() error

ValidateAll checks the field values on ProvisionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProvisionResponseMultiError, or nil if none found.

type ProvisionResponseMultiError added in v1.42.0

type ProvisionResponseMultiError []error

ProvisionResponseMultiError is an error wrapping multiple validation errors returned by ProvisionResponse.ValidateAll() if the designated constraints aren't met.

func (ProvisionResponseMultiError) AllErrors added in v1.42.0

func (m ProvisionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProvisionResponseMultiError) Error added in v1.42.0

Error returns a concatenation of all the error messages it wraps.

type ProvisionResponseValidationError added in v1.42.0

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

ProvisionResponseValidationError is the validation error returned by ProvisionResponse.Validate if the designated constraints aren't met.

func (ProvisionResponseValidationError) Cause added in v1.42.0

Cause function returns cause value.

func (ProvisionResponseValidationError) Error added in v1.42.0

Error satisfies the builtin error interface

func (ProvisionResponseValidationError) ErrorName added in v1.42.0

ErrorName returns error name.

func (ProvisionResponseValidationError) Field added in v1.42.0

Field function returns field value.

func (ProvisionResponseValidationError) Key added in v1.42.0

Key function returns key value.

func (ProvisionResponseValidationError) Reason added in v1.42.0

Reason function returns reason value.

Jump to

Keyboard shortcuts

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