Documentation
¶
Index ¶
- Variables
- type ConnectionInfo
- func (*ConnectionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionInfo) GetConnectionId() string
- func (x *ConnectionInfo) GetCredentialsType() CredentialsType
- func (x *ConnectionInfo) GetRunnerId() string
- func (x *ConnectionInfo) GetTokens() []*ConnectionToken
- func (*ConnectionInfo) ProtoMessage()
- func (x *ConnectionInfo) ProtoReflect() protoreflect.Message
- func (x *ConnectionInfo) Reset()
- func (x *ConnectionInfo) String() string
- type ConnectionToken
- func (*ConnectionToken) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionToken) GetFileSecret() *ConnectionToken_FileSecret
- func (x *ConnectionToken) GetNameSegments() []string
- func (x *ConnectionToken) GetPlainText() *ConnectionToken_PlainText
- func (x *ConnectionToken) GetTokenValue() isConnectionToken_TokenValue
- func (x *ConnectionToken) GetYamlFile() *ConnectionToken_YamlFile
- func (*ConnectionToken) ProtoMessage()
- func (x *ConnectionToken) ProtoReflect() protoreflect.Message
- func (x *ConnectionToken) Reset()
- func (x *ConnectionToken) String() string
- type ConnectionToken_FileSecret
- func (*ConnectionToken_FileSecret) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionToken_FileSecret) GetPath() string
- func (*ConnectionToken_FileSecret) ProtoMessage()
- func (x *ConnectionToken_FileSecret) ProtoReflect() protoreflect.Message
- func (x *ConnectionToken_FileSecret) Reset()
- func (x *ConnectionToken_FileSecret) String() string
- type ConnectionToken_FileSecret_
- type ConnectionToken_PlainText
- func (*ConnectionToken_PlainText) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionToken_PlainText) GetValue() string
- func (*ConnectionToken_PlainText) ProtoMessage()
- func (x *ConnectionToken_PlainText) ProtoReflect() protoreflect.Message
- func (x *ConnectionToken_PlainText) Reset()
- func (x *ConnectionToken_PlainText) String() string
- type ConnectionToken_PlainText_
- type ConnectionToken_YamlFile
- func (*ConnectionToken_YamlFile) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionToken_YamlFile) GetPath() string
- func (*ConnectionToken_YamlFile) ProtoMessage()
- func (x *ConnectionToken_YamlFile) ProtoReflect() protoreflect.Message
- func (x *ConnectionToken_YamlFile) Reset()
- func (x *ConnectionToken_YamlFile) String() string
- type ConnectionToken_YamlFile_
- type CredentialsType
- func (CredentialsType) Descriptor() protoreflect.EnumDescriptor
- func (x CredentialsType) Enum() *CredentialsType
- func (CredentialsType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CredentialsType) Number() protoreflect.EnumNumber
- func (x CredentialsType) String() string
- func (CredentialsType) Type() protoreflect.EnumType
- type HashType
- type KeyType
- type PrivateActionTask
- func (*PrivateActionTask) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateActionTask) GetActionName() string
- func (x *PrivateActionTask) GetBundleId() string
- func (x *PrivateActionTask) GetClient() actionsclient.Client
- func (x *PrivateActionTask) GetConnectionInfo() *ConnectionInfo
- func (x *PrivateActionTask) GetExpirationTime() *timestamppb.Timestamp
- func (x *PrivateActionTask) GetInputs() *structpb.Struct
- func (x *PrivateActionTask) GetOrgId() int64
- func (x *PrivateActionTask) GetSecDatadogHeaderValue() string
- func (x *PrivateActionTask) GetTaskId() string
- func (*PrivateActionTask) ProtoMessage()
- func (x *PrivateActionTask) ProtoReflect() protoreflect.Message
- func (x *PrivateActionTask) Reset()
- func (x *PrivateActionTask) String() string
- type RemoteConfigSignatureEnvelope
- func (*RemoteConfigSignatureEnvelope) Descriptor() ([]byte, []int)deprecated
- func (x *RemoteConfigSignatureEnvelope) GetData() []byte
- func (x *RemoteConfigSignatureEnvelope) GetExpirationTime() *timestamppb.Timestamp
- func (x *RemoteConfigSignatureEnvelope) GetHashType() HashType
- func (x *RemoteConfigSignatureEnvelope) GetSignatures() []*Signature
- func (*RemoteConfigSignatureEnvelope) ProtoMessage()
- func (x *RemoteConfigSignatureEnvelope) ProtoReflect() protoreflect.Message
- func (x *RemoteConfigSignatureEnvelope) Reset()
- func (x *RemoteConfigSignatureEnvelope) String() string
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetKeyId() string
- func (x *Signature) GetKeyType() KeyType
- func (x *Signature) GetSignature() []byte
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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 (x *ConnectionToken_FileSecret) ProtoReflect() protoreflect.Message
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 (x *ConnectionToken_PlainText) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x CredentialsType) Number() protoreflect.EnumNumber
func (CredentialsType) String ¶
func (x CredentialsType) String() string
func (CredentialsType) Type ¶
func (CredentialsType) Type() protoreflect.EnumType
type HashType ¶
type HashType int32
func (HashType) Descriptor ¶
func (HashType) Descriptor() protoreflect.EnumDescriptor
func (HashType) EnumDescriptor
deprecated
func (HashType) Number ¶
func (x HashType) Number() protoreflect.EnumNumber
func (HashType) Type ¶
func (HashType) Type() protoreflect.EnumType
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
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 (x *RemoteConfigSignatureEnvelope) ProtoReflect() protoreflect.Message
func (*RemoteConfigSignatureEnvelope) Reset ¶
func (x *RemoteConfigSignatureEnvelope) Reset()
func (*RemoteConfigSignatureEnvelope) String ¶
func (x *RemoteConfigSignatureEnvelope) String() 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) GetKeyType ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message