api

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: May 10, 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_SATELLITE",
	}
	InstanceType_value = map[string]int32{
		"INSTANCE_TYPE_UNKNOWN":   0,
		"INSTANCE_TYPE_HOSTED":    1,
		"INSTANCE_TYPE_SATELLITE": 2,
	}
)

Enum value maps for InstanceType.

View Source
var File_aserto_api_v2_instance_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 Instance

type Instance struct {
	PolicyId        string                 `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Label           string                 `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Tag             string                 `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,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"`
	InstanceType    InstanceType           `` /* 130-byte string literal not displayed */
	DecisionLogging *bool                  `protobuf:"varint,7,opt,name=decision_logging,json=decisionLogging,proto3,oneof" json:"decision_logging,omitempty"`
	// 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 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_SATELLITE 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"`
	TenantId  string                 `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,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) GetTenantId

func (x *Policy) GetTenantId() 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 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