api

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 7 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

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"`
	// 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) 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

Jump to

Keyboard shortcuts

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