shared

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_project_planton_shared_shared_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApiResourceAudit

type ApiResourceAudit struct {

	// spec_audit holds the auditing information related to the resource's desired state or specification.
	SpecAudit *ApiResourceAuditInfo `protobuf:"bytes,1,opt,name=spec_audit,json=specAudit,proto3" json:"spec_audit,omitempty"`
	// status_audit holds the auditing information related to the resource's status.
	StatusAudit *ApiResourceAuditInfo `protobuf:"bytes,2,opt,name=status_audit,json=statusAudit,proto3" json:"status_audit,omitempty"`
	// contains filtered or unexported fields
}

ResourceAudit represents auditing information for a resource, containing both specification-level and status-level audit details.

func (*ApiResourceAudit) Descriptor deprecated

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

Deprecated: Use ApiResourceAudit.ProtoReflect.Descriptor instead.

func (*ApiResourceAudit) GetSpecAudit

func (x *ApiResourceAudit) GetSpecAudit() *ApiResourceAuditInfo

func (*ApiResourceAudit) GetStatusAudit

func (x *ApiResourceAudit) GetStatusAudit() *ApiResourceAuditInfo

func (*ApiResourceAudit) ProtoMessage

func (*ApiResourceAudit) ProtoMessage()

func (*ApiResourceAudit) ProtoReflect

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

func (*ApiResourceAudit) Reset

func (x *ApiResourceAudit) Reset()

func (*ApiResourceAudit) String

func (x *ApiResourceAudit) String() string

type ApiResourceAuditActor

type ApiResourceAuditActor struct {

	// id of the actor
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// avatar url of the actor
	Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

actor in the audit

func (*ApiResourceAuditActor) Descriptor deprecated

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

Deprecated: Use ApiResourceAuditActor.ProtoReflect.Descriptor instead.

func (*ApiResourceAuditActor) GetAvatar

func (x *ApiResourceAuditActor) GetAvatar() string

func (*ApiResourceAuditActor) GetId

func (x *ApiResourceAuditActor) GetId() string

func (*ApiResourceAuditActor) ProtoMessage

func (*ApiResourceAuditActor) ProtoMessage()

func (*ApiResourceAuditActor) ProtoReflect

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

func (*ApiResourceAuditActor) Reset

func (x *ApiResourceAuditActor) Reset()

func (*ApiResourceAuditActor) String

func (x *ApiResourceAuditActor) String() string

type ApiResourceAuditInfo

type ApiResourceAuditInfo struct {

	// created_by is the identifier of the user or system process that created the object.
	CreatedBy *ApiResourceAuditActor `protobuf:"bytes,1,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// created_at is the timestamp indicating when the object was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// updated_by is the identifier of the user or system process that last updated the object.
	UpdatedBy *ApiResourceAuditActor `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	// updated_at is the timestamp indicating when the object was last updated.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// event_type is the type of the last event associated with the object.
	// This is typically a string code representing specific events in the system.
	Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

Audit represents the system-level auditing information for an object. This includes details about the creation and last update of the object, as well as the type of the last event associated with the object.

func (*ApiResourceAuditInfo) Descriptor deprecated

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

Deprecated: Use ApiResourceAuditInfo.ProtoReflect.Descriptor instead.

func (*ApiResourceAuditInfo) GetCreatedAt

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

func (*ApiResourceAuditInfo) GetCreatedBy

func (x *ApiResourceAuditInfo) GetCreatedBy() *ApiResourceAuditActor

func (*ApiResourceAuditInfo) GetEvent

func (x *ApiResourceAuditInfo) GetEvent() string

func (*ApiResourceAuditInfo) GetUpdatedAt

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

func (*ApiResourceAuditInfo) GetUpdatedBy

func (x *ApiResourceAuditInfo) GetUpdatedBy() *ApiResourceAuditActor

func (*ApiResourceAuditInfo) ProtoMessage

func (*ApiResourceAuditInfo) ProtoMessage()

func (*ApiResourceAuditInfo) ProtoReflect

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

func (*ApiResourceAuditInfo) Reset

func (x *ApiResourceAuditInfo) Reset()

func (*ApiResourceAuditInfo) String

func (x *ApiResourceAuditInfo) String() string

type ApiResourceEnvironment

type ApiResourceEnvironment struct {

	// name of the environment
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// id of the environment
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

api-resource environment

func (*ApiResourceEnvironment) Descriptor deprecated

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

Deprecated: Use ApiResourceEnvironment.ProtoReflect.Descriptor instead.

func (*ApiResourceEnvironment) GetId

func (x *ApiResourceEnvironment) GetId() string

func (*ApiResourceEnvironment) GetName

func (x *ApiResourceEnvironment) GetName() string

func (*ApiResourceEnvironment) ProtoMessage

func (*ApiResourceEnvironment) ProtoMessage()

func (*ApiResourceEnvironment) ProtoReflect

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

func (*ApiResourceEnvironment) Reset

func (x *ApiResourceEnvironment) Reset()

func (*ApiResourceEnvironment) String

func (x *ApiResourceEnvironment) String() string

type ApiResourceLifecycle

type ApiResourceLifecycle struct {

	// flag to indicate if the resource is not deleted and is active
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// flag to indicate if the resource is paused
	IsPaused bool `protobuf:"varint,2,opt,name=is_paused,json=isPaused,proto3" json:"is_paused,omitempty"`
	// contains filtered or unexported fields
}

lifecycle

func (*ApiResourceLifecycle) Descriptor deprecated

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

Deprecated: Use ApiResourceLifecycle.ProtoReflect.Descriptor instead.

func (*ApiResourceLifecycle) GetIsActive

func (x *ApiResourceLifecycle) GetIsActive() bool

func (*ApiResourceLifecycle) GetIsPaused

func (x *ApiResourceLifecycle) GetIsPaused() bool

func (*ApiResourceLifecycle) ProtoMessage

func (*ApiResourceLifecycle) ProtoMessage()

func (*ApiResourceLifecycle) ProtoReflect

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

func (*ApiResourceLifecycle) Reset

func (x *ApiResourceLifecycle) Reset()

func (*ApiResourceLifecycle) String

func (x *ApiResourceLifecycle) String() string

type ApiResourceLifecycleAndAuditStatus

type ApiResourceLifecycleAndAuditStatus struct {

	// lifecycle
	Lifecycle *ApiResourceLifecycle `protobuf:"bytes,99,opt,name=lifecycle,proto3" json:"lifecycle,omitempty"`
	// audit info
	Audit *ApiResourceAudit `protobuf:"bytes,98,opt,name=audit,proto3" json:"audit,omitempty"`
	// contains filtered or unexported fields
}

api-resource status containing just the lifecycle and audit messages.

func (*ApiResourceLifecycleAndAuditStatus) Descriptor deprecated

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

Deprecated: Use ApiResourceLifecycleAndAuditStatus.ProtoReflect.Descriptor instead.

func (*ApiResourceLifecycleAndAuditStatus) GetAudit

func (*ApiResourceLifecycleAndAuditStatus) GetLifecycle

func (*ApiResourceLifecycleAndAuditStatus) ProtoMessage

func (*ApiResourceLifecycleAndAuditStatus) ProtoMessage()

func (*ApiResourceLifecycleAndAuditStatus) ProtoReflect

func (*ApiResourceLifecycleAndAuditStatus) Reset

func (*ApiResourceLifecycleAndAuditStatus) String

type ApiResourceMetadata

type ApiResourceMetadata struct {

	// name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// id of the resource
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// id of the organization to which the api-resource belongs to
	Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"`
	// environment to which the resource belongs to
	Env *ApiResourceEnvironment `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`
	// labels for the resource
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// tags for the resource
	Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	// metadata for resource version
	Version *ApiResourceMetadataVersion `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

metadata for all resource objects on planton-cloud

func (*ApiResourceMetadata) Descriptor deprecated

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

Deprecated: Use ApiResourceMetadata.ProtoReflect.Descriptor instead.

func (*ApiResourceMetadata) GetEnv

func (*ApiResourceMetadata) GetId

func (x *ApiResourceMetadata) GetId() string

func (*ApiResourceMetadata) GetLabels

func (x *ApiResourceMetadata) GetLabels() map[string]string

func (*ApiResourceMetadata) GetName

func (x *ApiResourceMetadata) GetName() string

func (*ApiResourceMetadata) GetOrg

func (x *ApiResourceMetadata) GetOrg() string

func (*ApiResourceMetadata) GetTags

func (x *ApiResourceMetadata) GetTags() []string

func (*ApiResourceMetadata) GetVersion

func (*ApiResourceMetadata) ProtoMessage

func (*ApiResourceMetadata) ProtoMessage()

func (*ApiResourceMetadata) ProtoReflect

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

func (*ApiResourceMetadata) Reset

func (x *ApiResourceMetadata) Reset()

func (*ApiResourceMetadata) String

func (x *ApiResourceMetadata) String() string

type ApiResourceMetadataVersion

type ApiResourceMetadataVersion struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

version information for api-resource to be used in api-resource metadata

func (*ApiResourceMetadataVersion) Descriptor deprecated

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

Deprecated: Use ApiResourceMetadataVersion.ProtoReflect.Descriptor instead.

func (*ApiResourceMetadataVersion) GetId

func (*ApiResourceMetadataVersion) GetMessage

func (x *ApiResourceMetadataVersion) GetMessage() string

func (*ApiResourceMetadataVersion) ProtoMessage

func (*ApiResourceMetadataVersion) ProtoMessage()

func (*ApiResourceMetadataVersion) ProtoReflect

func (*ApiResourceMetadataVersion) Reset

func (x *ApiResourceMetadataVersion) Reset()

func (*ApiResourceMetadataVersion) String

func (x *ApiResourceMetadataVersion) String() string

Directories

Path Synopsis
networking

Jump to

Keyboard shortcuts

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