privateactions

package
v0.81.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyType_name = map[int32]string{
		0: "KEY_TYPE_UNKNOWN",
		1: "X509_RSA",
		2: "ED25519",
	}
	KeyType_value = map[string]int32{
		"KEY_TYPE_UNKNOWN": 0,
		"X509_RSA":         1,
		"ED25519":          2,
	}
)

Enum value maps for KeyType.

View Source
var (
	HashType_name = map[int32]string{
		0: "HASH_TYPE_UNKNOWN",
		1: "SHA256",
	}
	HashType_value = map[string]int32{
		"HASH_TYPE_UNKNOWN": 0,
		"SHA256":            1,
	}
)

Enum value maps for HashType.

View Source
var (
	CredentialsType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "TOKEN_AUTH",
		2: "BASIC_AUTH",
		3: "OAUTH2",
	}
	CredentialsType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"TOKEN_AUTH":  1,
		"BASIC_AUTH":  2,
		"OAUTH2":      3,
	}
)

Enum value maps for CredentialsType.

View Source
var File_datadog_privateactionrunner_private_actions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConnectionInfo

type ConnectionInfo struct {
	ConnectionId    string             `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Tokens          []*ConnectionToken `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"`
	CredentialsType CredentialsType    `` /* 171-byte string literal not displayed */
	RunnerId        string             `protobuf:"bytes,4,opt,name=runner_id,json=runnerId,proto3" json:"runner_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionInfo) Descriptor deprecated

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

Deprecated: Use ConnectionInfo.ProtoReflect.Descriptor instead.

func (*ConnectionInfo) GetConnectionId

func (x *ConnectionInfo) GetConnectionId() string

func (*ConnectionInfo) GetCredentialsType

func (x *ConnectionInfo) GetCredentialsType() CredentialsType

func (*ConnectionInfo) GetRunnerId

func (x *ConnectionInfo) GetRunnerId() string

func (*ConnectionInfo) GetTokens

func (x *ConnectionInfo) GetTokens() []*ConnectionToken

func (*ConnectionInfo) ProtoMessage

func (*ConnectionInfo) ProtoMessage()

func (*ConnectionInfo) ProtoReflect

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

func (*ConnectionInfo) Reset

func (x *ConnectionInfo) Reset()

func (*ConnectionInfo) String

func (x *ConnectionInfo) String() string

type ConnectionToken

type ConnectionToken struct {

	// The segments of the token name.
	// Example: ["group", "name"] for a token named "group.name"
	// Example: ["name"] for a token named "name"
	NameSegments []string `protobuf:"bytes,1,rep,name=name_segments,json=nameSegments,proto3" json:"name_segments,omitempty"`
	// Types that are valid to be assigned to TokenValue:
	//
	//	*ConnectionToken_PlainText_
	//	*ConnectionToken_FileSecret_
	//	*ConnectionToken_YamlFile_
	TokenValue isConnectionToken_TokenValue `protobuf_oneof:"token_value"`
	// contains filtered or unexported fields
}

The ConnectionToken is similar to connectionpb.ConnectionToken, but is specifically limited to data pertinent to private actions. As mentioned in the comment at the top of this file, this is designed to constrain the dependencies of private actions and prevent changes to the connections API from directly affecting the PAR task.

func (*ConnectionToken) Descriptor deprecated

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

Deprecated: Use ConnectionToken.ProtoReflect.Descriptor instead.

func (*ConnectionToken) GetFileSecret

func (x *ConnectionToken) GetFileSecret() *ConnectionToken_FileSecret

func (*ConnectionToken) GetNameSegments

func (x *ConnectionToken) GetNameSegments() []string

func (*ConnectionToken) GetPlainText

func (x *ConnectionToken) GetPlainText() *ConnectionToken_PlainText

func (*ConnectionToken) GetTokenValue

func (x *ConnectionToken) GetTokenValue() isConnectionToken_TokenValue

func (*ConnectionToken) GetYamlFile

func (x *ConnectionToken) GetYamlFile() *ConnectionToken_YamlFile

func (*ConnectionToken) ProtoMessage

func (*ConnectionToken) ProtoMessage()

func (*ConnectionToken) ProtoReflect

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

func (*ConnectionToken) Reset

func (x *ConnectionToken) Reset()

func (*ConnectionToken) String

func (x *ConnectionToken) String() string

type ConnectionToken_FileSecret

type ConnectionToken_FileSecret struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionToken_FileSecret) Descriptor deprecated

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

Deprecated: Use ConnectionToken_FileSecret.ProtoReflect.Descriptor instead.

func (*ConnectionToken_FileSecret) GetPath

func (x *ConnectionToken_FileSecret) GetPath() string

func (*ConnectionToken_FileSecret) ProtoMessage

func (*ConnectionToken_FileSecret) ProtoMessage()

func (*ConnectionToken_FileSecret) ProtoReflect

func (*ConnectionToken_FileSecret) Reset

func (x *ConnectionToken_FileSecret) Reset()

func (*ConnectionToken_FileSecret) String

func (x *ConnectionToken_FileSecret) String() string

type ConnectionToken_FileSecret_

type ConnectionToken_FileSecret_ struct {
	FileSecret *ConnectionToken_FileSecret `protobuf:"bytes,3,opt,name=file_secret,json=fileSecret,proto3,oneof"`
}

type ConnectionToken_PlainText

type ConnectionToken_PlainText struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionToken_PlainText) Descriptor deprecated

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

Deprecated: Use ConnectionToken_PlainText.ProtoReflect.Descriptor instead.

func (*ConnectionToken_PlainText) GetValue

func (x *ConnectionToken_PlainText) GetValue() string

func (*ConnectionToken_PlainText) ProtoMessage

func (*ConnectionToken_PlainText) ProtoMessage()

func (*ConnectionToken_PlainText) ProtoReflect

func (*ConnectionToken_PlainText) Reset

func (x *ConnectionToken_PlainText) Reset()

func (*ConnectionToken_PlainText) String

func (x *ConnectionToken_PlainText) String() string

type ConnectionToken_PlainText_

type ConnectionToken_PlainText_ struct {
	PlainText *ConnectionToken_PlainText `protobuf:"bytes,2,opt,name=plain_text,json=plainText,proto3,oneof"`
}

type ConnectionToken_YamlFile

type ConnectionToken_YamlFile struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionToken_YamlFile) Descriptor deprecated

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

Deprecated: Use ConnectionToken_YamlFile.ProtoReflect.Descriptor instead.

func (*ConnectionToken_YamlFile) GetPath

func (x *ConnectionToken_YamlFile) GetPath() string

func (*ConnectionToken_YamlFile) ProtoMessage

func (*ConnectionToken_YamlFile) ProtoMessage()

func (*ConnectionToken_YamlFile) ProtoReflect

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

func (*ConnectionToken_YamlFile) Reset

func (x *ConnectionToken_YamlFile) Reset()

func (*ConnectionToken_YamlFile) String

func (x *ConnectionToken_YamlFile) String() string

type ConnectionToken_YamlFile_

type ConnectionToken_YamlFile_ struct {
	YamlFile *ConnectionToken_YamlFile `protobuf:"bytes,4,opt,name=yaml_file,json=yamlFile,proto3,oneof"`
}

type CredentialsType

type CredentialsType int32
const (
	CredentialsType_UNSPECIFIED CredentialsType = 0
	CredentialsType_TOKEN_AUTH  CredentialsType = 1
	CredentialsType_BASIC_AUTH  CredentialsType = 2
	CredentialsType_OAUTH2      CredentialsType = 3
)

func (CredentialsType) Descriptor

func (CredentialsType) Enum

func (x CredentialsType) Enum() *CredentialsType

func (CredentialsType) EnumDescriptor deprecated

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

Deprecated: Use CredentialsType.Descriptor instead.

func (CredentialsType) Number

func (CredentialsType) String

func (x CredentialsType) String() string

func (CredentialsType) Type

type HashType

type HashType int32
const (
	HashType_HASH_TYPE_UNKNOWN HashType = 0
	HashType_SHA256            HashType = 1
)

func (HashType) Descriptor

func (HashType) Descriptor() protoreflect.EnumDescriptor

func (HashType) Enum

func (x HashType) Enum() *HashType

func (HashType) EnumDescriptor deprecated

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

Deprecated: Use HashType.Descriptor instead.

func (HashType) Number

func (x HashType) Number() protoreflect.EnumNumber

func (HashType) String

func (x HashType) String() string

func (HashType) Type

type KeyType

type KeyType int32
const (
	KeyType_KEY_TYPE_UNKNOWN KeyType = 0
	KeyType_X509_RSA         KeyType = 1
	KeyType_ED25519          KeyType = 2
)

func (KeyType) Descriptor

func (KeyType) Descriptor() protoreflect.EnumDescriptor

func (KeyType) Enum

func (x KeyType) Enum() *KeyType

func (KeyType) EnumDescriptor deprecated

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

Deprecated: Use KeyType.Descriptor instead.

func (KeyType) Number

func (x KeyType) Number() protoreflect.EnumNumber

func (KeyType) String

func (x KeyType) String() string

func (KeyType) Type

func (KeyType) Type() protoreflect.EnumType

type PrivateActionTask

type PrivateActionTask struct {
	ActionName            string                 `protobuf:"bytes,1,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`
	BundleId              string                 `protobuf:"bytes,2,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"`
	OrgId                 int64                  `protobuf:"varint,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	TaskId                string                 `protobuf:"bytes,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	SecDatadogHeaderValue string                 `` /* 128-byte string literal not displayed */
	Inputs                *structpb.Struct       `protobuf:"bytes,6,opt,name=inputs,proto3" json:"inputs,omitempty"`
	ConnectionInfo        *ConnectionInfo        `protobuf:"bytes,10,opt,name=connection_info,json=connectionInfo,proto3" json:"connection_info,omitempty"`
	ExpirationTime        *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
	Client                actionsclient.Client   `protobuf:"varint,12,opt,name=client,proto3,enum=datadog.privateactionrunner.actionsclient.Client" json:"client,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateActionTask) Descriptor deprecated

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

Deprecated: Use PrivateActionTask.ProtoReflect.Descriptor instead.

func (*PrivateActionTask) GetActionName

func (x *PrivateActionTask) GetActionName() string

func (*PrivateActionTask) GetBundleId

func (x *PrivateActionTask) GetBundleId() string

func (*PrivateActionTask) GetClient

func (x *PrivateActionTask) GetClient() actionsclient.Client

func (*PrivateActionTask) GetConnectionInfo

func (x *PrivateActionTask) GetConnectionInfo() *ConnectionInfo

func (*PrivateActionTask) GetExpirationTime

func (x *PrivateActionTask) GetExpirationTime() *timestamppb.Timestamp

func (*PrivateActionTask) GetInputs

func (x *PrivateActionTask) GetInputs() *structpb.Struct

func (*PrivateActionTask) GetOrgId

func (x *PrivateActionTask) GetOrgId() int64

func (*PrivateActionTask) GetSecDatadogHeaderValue

func (x *PrivateActionTask) GetSecDatadogHeaderValue() string

func (*PrivateActionTask) GetTaskId

func (x *PrivateActionTask) GetTaskId() string

func (*PrivateActionTask) ProtoMessage

func (*PrivateActionTask) ProtoMessage()

func (*PrivateActionTask) ProtoReflect

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

func (*PrivateActionTask) Reset

func (x *PrivateActionTask) Reset()

func (*PrivateActionTask) String

func (x *PrivateActionTask) String() string

type RemoteConfigSignatureEnvelope

type RemoteConfigSignatureEnvelope struct {
	Data           []byte                 `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	HashType       HashType               `` /* 143-byte string literal not displayed */
	ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
	// Tasks will be signed by multiple keys in order to support key rotation.
	Signatures []*Signature `protobuf:"bytes,7,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfigSignatureEnvelope) Descriptor deprecated

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

Deprecated: Use RemoteConfigSignatureEnvelope.ProtoReflect.Descriptor instead.

func (*RemoteConfigSignatureEnvelope) GetData

func (x *RemoteConfigSignatureEnvelope) GetData() []byte

func (*RemoteConfigSignatureEnvelope) GetExpirationTime

func (x *RemoteConfigSignatureEnvelope) GetExpirationTime() *timestamppb.Timestamp

func (*RemoteConfigSignatureEnvelope) GetHashType

func (x *RemoteConfigSignatureEnvelope) GetHashType() HashType

func (*RemoteConfigSignatureEnvelope) GetSignatures

func (x *RemoteConfigSignatureEnvelope) GetSignatures() []*Signature

func (*RemoteConfigSignatureEnvelope) ProtoMessage

func (*RemoteConfigSignatureEnvelope) ProtoMessage()

func (*RemoteConfigSignatureEnvelope) ProtoReflect

func (*RemoteConfigSignatureEnvelope) Reset

func (x *RemoteConfigSignatureEnvelope) Reset()

func (*RemoteConfigSignatureEnvelope) String

type Signature

type Signature struct {
	KeyType   KeyType `` /* 139-byte string literal not displayed */
	KeyId     string  `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Signature []byte  `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetKeyId

func (x *Signature) GetKeyId() string

func (*Signature) GetKeyType

func (x *Signature) GetKeyType() KeyType

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

Jump to

Keyboard shortcuts

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