api

package
v0.8.37 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstanceType_name = map[int32]string{
		0: "INSTANCE_TYPE_UNKNOWN",
		1: "INSTANCE_TYPE_HOSTED",
		2: "INSTANCE_TYPE_EDGE_AUTHORIZER",
	}
	InstanceType_value = map[string]int32{
		"INSTANCE_TYPE_UNKNOWN":         0,
		"INSTANCE_TYPE_HOSTED":          1,
		"INSTANCE_TYPE_EDGE_AUTHORIZER": 2,
	}
)

Enum value maps for InstanceType.

View Source
var File_aserto_api_v2_connection_events_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_instance_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_management_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_policy_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_repository_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_source_proto protoreflect.FileDescriptor
View Source
var File_aserto_api_v2_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command added in v0.8.19

type Command struct {

	// Types that are assignable to Data:
	//	*Command_Discovery
	//	*Command_SyncEdgeDirectory
	Data isCommand_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

Command represents a command that may be sent to and then processed by an instance.

func (*Command) Descriptor deprecated added in v0.8.19

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetData added in v0.8.19

func (m *Command) GetData() isCommand_Data

func (*Command) GetDiscovery added in v0.8.19

func (x *Command) GetDiscovery() *DiscoveryCommand

func (*Command) GetSyncEdgeDirectory added in v0.8.24

func (x *Command) GetSyncEdgeDirectory() *SyncEdgeDirectoryCommand

func (*Command) ProtoMessage added in v0.8.19

func (*Command) ProtoMessage()

func (*Command) ProtoReflect added in v0.8.19

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

func (*Command) Reset added in v0.8.19

func (x *Command) Reset()

func (*Command) String added in v0.8.19

func (x *Command) String() string

type Command_Discovery added in v0.8.19

type Command_Discovery struct {
	Discovery *DiscoveryCommand `protobuf:"bytes,1,opt,name=discovery,proto3,oneof"`
}

type Command_SyncEdgeDirectory added in v0.8.24

type Command_SyncEdgeDirectory struct {
	SyncEdgeDirectory *SyncEdgeDirectoryCommand `protobuf:"bytes,2,opt,name=sync_edge_directory,json=syncEdgeDirectory,proto3,oneof"`
}

type ConnectionCreated added in v0.8.34

type ConnectionCreated struct {
	TenantId     string          `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ConnectionId string          `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Kind         v1.ProviderKind `protobuf:"varint,3,opt,name=kind,proto3,enum=aserto.api.v1.ProviderKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionCreated) Descriptor deprecated added in v0.8.34

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

Deprecated: Use ConnectionCreated.ProtoReflect.Descriptor instead.

func (*ConnectionCreated) GetConnectionId added in v0.8.34

func (x *ConnectionCreated) GetConnectionId() string

func (*ConnectionCreated) GetKind added in v0.8.34

func (x *ConnectionCreated) GetKind() v1.ProviderKind

func (*ConnectionCreated) GetTenantId added in v0.8.34

func (x *ConnectionCreated) GetTenantId() string

func (*ConnectionCreated) ProtoMessage added in v0.8.34

func (*ConnectionCreated) ProtoMessage()

func (*ConnectionCreated) ProtoReflect added in v0.8.34

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

func (*ConnectionCreated) Reset added in v0.8.34

func (x *ConnectionCreated) Reset()

func (*ConnectionCreated) String added in v0.8.34

func (x *ConnectionCreated) String() string

type ConnectionDeleted added in v0.8.34

type ConnectionDeleted struct {
	TenantId     string          `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ConnectionId string          `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Kind         v1.ProviderKind `protobuf:"varint,3,opt,name=kind,proto3,enum=aserto.api.v1.ProviderKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionDeleted) Descriptor deprecated added in v0.8.34

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

Deprecated: Use ConnectionDeleted.ProtoReflect.Descriptor instead.

func (*ConnectionDeleted) GetConnectionId added in v0.8.34

func (x *ConnectionDeleted) GetConnectionId() string

func (*ConnectionDeleted) GetKind added in v0.8.34

func (x *ConnectionDeleted) GetKind() v1.ProviderKind

func (*ConnectionDeleted) GetTenantId added in v0.8.34

func (x *ConnectionDeleted) GetTenantId() string

func (*ConnectionDeleted) ProtoMessage added in v0.8.34

func (*ConnectionDeleted) ProtoMessage()

func (*ConnectionDeleted) ProtoReflect added in v0.8.34

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

func (*ConnectionDeleted) Reset added in v0.8.34

func (x *ConnectionDeleted) Reset()

func (*ConnectionDeleted) String added in v0.8.34

func (x *ConnectionDeleted) String() string

type ConnectionUpdated added in v0.8.34

type ConnectionUpdated struct {
	TenantId     string          `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ConnectionId string          `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Kind         v1.ProviderKind `protobuf:"varint,3,opt,name=kind,proto3,enum=aserto.api.v1.ProviderKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionUpdated) Descriptor deprecated added in v0.8.34

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

Deprecated: Use ConnectionUpdated.ProtoReflect.Descriptor instead.

func (*ConnectionUpdated) GetConnectionId added in v0.8.34

func (x *ConnectionUpdated) GetConnectionId() string

func (*ConnectionUpdated) GetKind added in v0.8.34

func (x *ConnectionUpdated) GetKind() v1.ProviderKind

func (*ConnectionUpdated) GetTenantId added in v0.8.34

func (x *ConnectionUpdated) GetTenantId() string

func (*ConnectionUpdated) ProtoMessage added in v0.8.34

func (*ConnectionUpdated) ProtoMessage()

func (*ConnectionUpdated) ProtoReflect added in v0.8.34

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

func (*ConnectionUpdated) Reset added in v0.8.34

func (x *ConnectionUpdated) Reset()

func (*ConnectionUpdated) String added in v0.8.34

func (x *ConnectionUpdated) String() string

type DiscoveryCommand added in v0.8.19

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

Run OPA discovery immediatley

func (*DiscoveryCommand) Descriptor deprecated added in v0.8.19

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

Deprecated: Use DiscoveryCommand.ProtoReflect.Descriptor instead.

func (*DiscoveryCommand) ProtoMessage added in v0.8.19

func (*DiscoveryCommand) ProtoMessage()

func (*DiscoveryCommand) ProtoReflect added in v0.8.19

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

func (*DiscoveryCommand) Reset added in v0.8.19

func (x *DiscoveryCommand) Reset()

func (*DiscoveryCommand) String added in v0.8.19

func (x *DiscoveryCommand) String() string

type Instance

type Instance struct {
	PolicyId     string                 `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`    // Policy ID.
	Label        string                 `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`                          // Unique human-readable label for the instance.
	Tag          string                 `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`                              // Default repository tag to be run by the instance.
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Timestamp of when the instance was created.
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Timestamp of when the instance was last updated.
	InstanceType InstanceType           ``                                                                                         // Type of instance (hosted or edge).
	/* 130-byte string literal not displayed */
	DecisionLogging *bool `protobuf:"varint,7,opt,name=decision_logging,json=decisionLogging,proto3,oneof" json:"decision_logging,omitempty"` // Whether to enable decision logging.
	// contains filtered or unexported fields
}

func (*Instance) Descriptor deprecated

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

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetCreatedAt

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

func (*Instance) GetDecisionLogging added in v0.8.14

func (x *Instance) GetDecisionLogging() bool

func (*Instance) GetInstanceType added in v0.8.14

func (x *Instance) GetInstanceType() InstanceType

func (*Instance) GetLabel

func (x *Instance) GetLabel() string

func (*Instance) GetPolicyId

func (x *Instance) GetPolicyId() string

func (*Instance) GetTag

func (x *Instance) GetTag() string

func (*Instance) GetUpdatedAt

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

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

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

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type InstanceInfo added in v0.8.19

type InstanceInfo struct {
	PolicyId      string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`                // The id of the policy associated with the instance.
	PolicyLabel   string `protobuf:"bytes,2,opt,name=policy_label,json=policyLabel,proto3" json:"policy_label,omitempty"`       // The label of the policy associated with the instance.
	RemoteHost    string `protobuf:"bytes,3,opt,name=remote_host,json=remoteHost,proto3" json:"remote_host,omitempty"`          // The name of the host where the instance is running.
	ConnectionId  string `protobuf:"bytes,4,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`    // The connection an edge authorizer used to connect to the control plane.
	CertificateId string `protobuf:"bytes,5,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` // The id of the certificate used to connect to the control plane.
	// contains filtered or unexported fields
}

InstanceInfo has data about a running aserto instance that is registered with the control plane.

func (*InstanceInfo) Descriptor deprecated added in v0.8.19

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

Deprecated: Use InstanceInfo.ProtoReflect.Descriptor instead.

func (*InstanceInfo) GetCertificateId added in v0.8.37

func (x *InstanceInfo) GetCertificateId() string

func (*InstanceInfo) GetConnectionId added in v0.8.31

func (x *InstanceInfo) GetConnectionId() string

func (*InstanceInfo) GetPolicyId added in v0.8.19

func (x *InstanceInfo) GetPolicyId() string

func (*InstanceInfo) GetPolicyLabel added in v0.8.19

func (x *InstanceInfo) GetPolicyLabel() string

func (*InstanceInfo) GetRemoteHost added in v0.8.19

func (x *InstanceInfo) GetRemoteHost() string

func (*InstanceInfo) ProtoMessage added in v0.8.19

func (*InstanceInfo) ProtoMessage()

func (*InstanceInfo) ProtoReflect added in v0.8.19

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

func (*InstanceInfo) Reset added in v0.8.19

func (x *InstanceInfo) Reset()

func (*InstanceInfo) String added in v0.8.19

func (x *InstanceInfo) String() string

type InstanceRegistration added in v0.8.19

type InstanceRegistration struct {
	Id   string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`     // Unique id of the instance registration, generated by the control plane.
	Info *InstanceInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // Information about the registered instance.
	// contains filtered or unexported fields
}

InstanceRegistration has data about an instance's registration with the control plane.

func (*InstanceRegistration) Descriptor deprecated added in v0.8.19

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

Deprecated: Use InstanceRegistration.ProtoReflect.Descriptor instead.

func (*InstanceRegistration) GetId added in v0.8.19

func (x *InstanceRegistration) GetId() string

func (*InstanceRegistration) GetInfo added in v0.8.19

func (x *InstanceRegistration) GetInfo() *InstanceInfo

func (*InstanceRegistration) ProtoMessage added in v0.8.19

func (*InstanceRegistration) ProtoMessage()

func (*InstanceRegistration) ProtoReflect added in v0.8.19

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

func (*InstanceRegistration) Reset added in v0.8.19

func (x *InstanceRegistration) Reset()

func (*InstanceRegistration) String added in v0.8.19

func (x *InstanceRegistration) String() string

type InstanceType

type InstanceType int32
const (
	InstanceType_INSTANCE_TYPE_UNKNOWN         InstanceType = 0 // Value not set.
	InstanceType_INSTANCE_TYPE_HOSTED          InstanceType = 1 // Instance runs in a hosted environment.
	InstanceType_INSTANCE_TYPE_EDGE_AUTHORIZER InstanceType = 2 // Instance runs in the user's network.
)

func (InstanceType) Descriptor

func (InstanceType) Enum

func (x InstanceType) Enum() *InstanceType

func (InstanceType) EnumDescriptor deprecated

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

Deprecated: Use InstanceType.Descriptor instead.

func (InstanceType) Number

func (InstanceType) String

func (x InstanceType) String() string

func (InstanceType) Type

type Policy

type Policy struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetCreatedAt

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

func (*Policy) GetId

func (x *Policy) GetId() string

func (*Policy) GetName

func (x *Policy) GetName() string

func (*Policy) GetUpdatedAt

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

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 Repository

type Repository struct {
	PolicyId     string                 `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	ConnectionId string                 `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Org          string                 `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"`
	Repo         string                 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Repository) Descriptor deprecated

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

Deprecated: Use Repository.ProtoReflect.Descriptor instead.

func (*Repository) GetConnectionId

func (x *Repository) GetConnectionId() string

func (*Repository) GetCreatedAt

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

func (*Repository) GetOrg

func (x *Repository) GetOrg() string

func (*Repository) GetPolicyId

func (x *Repository) GetPolicyId() string

func (*Repository) GetRepo

func (x *Repository) GetRepo() string

func (*Repository) GetUpdatedAt

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

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) ProtoReflect

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

func (*Repository) Reset

func (x *Repository) Reset()

func (*Repository) String

func (x *Repository) String() string

type Source

type Source struct {
	PolicyId     string                 `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	ConnectionId string                 `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Org          string                 `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"`
	Repo         string                 `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetConnectionId

func (x *Source) GetConnectionId() string

func (*Source) GetCreatedAt

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

func (*Source) GetOrg

func (x *Source) GetOrg() string

func (*Source) GetPolicyId

func (x *Source) GetPolicyId() string

func (*Source) GetRepo

func (x *Source) GetRepo() string

func (*Source) GetUpdatedAt

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

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type SyncEdgeDirectoryCommand added in v0.8.24

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

Sync the edge directory

func (*SyncEdgeDirectoryCommand) Descriptor deprecated added in v0.8.24

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

Deprecated: Use SyncEdgeDirectoryCommand.ProtoReflect.Descriptor instead.

func (*SyncEdgeDirectoryCommand) ProtoMessage added in v0.8.24

func (*SyncEdgeDirectoryCommand) ProtoMessage()

func (*SyncEdgeDirectoryCommand) ProtoReflect added in v0.8.24

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

func (*SyncEdgeDirectoryCommand) Reset added in v0.8.24

func (x *SyncEdgeDirectoryCommand) Reset()

func (*SyncEdgeDirectoryCommand) String added in v0.8.24

func (x *SyncEdgeDirectoryCommand) String() string

type User added in v0.8.15

type User struct {
	Id          string                        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                      // user internal ID
	Enabled     bool                          `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`                           // enabled
	DisplayName string                        `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // display name of user
	Email       string                        `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`                                // main email address of user
	Identities  map[string]*v1.IdentitySource ``                                                                                               // identity source collection of user
	/* 161-byte string literal not displayed */
	Metadata   *v1.Metadata     `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`      // object metadata
	Deleted    bool             `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`      // soft delete markation
	Properties *structpb.Struct `protobuf:"bytes,11,opt,name=properties,proto3" json:"properties,omitempty"` // property bag
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated added in v0.8.15

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDeleted added in v0.8.15

func (x *User) GetDeleted() bool

func (*User) GetDisplayName added in v0.8.15

func (x *User) GetDisplayName() string

func (*User) GetEmail added in v0.8.15

func (x *User) GetEmail() string

func (*User) GetEnabled added in v0.8.15

func (x *User) GetEnabled() bool

func (*User) GetId added in v0.8.15

func (x *User) GetId() string

func (*User) GetIdentities added in v0.8.15

func (x *User) GetIdentities() map[string]*v1.IdentitySource

func (*User) GetMetadata added in v0.8.15

func (x *User) GetMetadata() *v1.Metadata

func (*User) GetProperties added in v0.8.15

func (x *User) GetProperties() *structpb.Struct

func (*User) ProtoMessage added in v0.8.15

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.8.15

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

func (*User) Reset added in v0.8.15

func (x *User) Reset()

func (*User) String added in v0.8.15

func (x *User) String() string

Jump to

Keyboard shortcuts

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