Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionTarName = "agent-session.tar.gz" SessionJSONName = "agent-session.json" PatchFileName = "changes.patch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactBuilder ¶
type ArtifactBuilder struct {
// contains filtered or unexported fields
}
func NewAgentRunArtifactBuilder ¶
func NewAgentRunArtifactBuilder(config Config, sessionWriter SessionArchiveWriter, patchGenerator PatchGenerator) *ArtifactBuilder
func (*ArtifactBuilder) Build ¶
func (in *ArtifactBuilder) Build(_ context.Context, opts BuildArtifactsOptions) (*UploadArtifacts, error)
type BuildArtifactsOptions ¶
type BuildArtifactsOptions struct {
Provider string
Source SessionSource
// SessionID is the provider-native session identifier captured during the
// run. The same value must be passed to provider resume flags on follow-up.
SessionID string
}
type Config ¶
type Config struct {
WorkDir string
RepositoryDir string
Run *agentrunv1.AgentRun
}
func (Config) UploadsDir ¶
type GitPatchGenerator ¶
func NewGitPatchGenerator ¶
func NewGitPatchGenerator(repositoryDir string) *GitPatchGenerator
func (*GitPatchGenerator) BuildPatch ¶
func (in *GitPatchGenerator) BuildPatch() (string, error)
type PatchGenerator ¶
type SessionArchiveWriter ¶
type SessionArchiveWriter interface {
Write(path string, manifest *SessionManifest, source *SessionSource) error
}
type SessionManifest ¶
type SessionMetadata ¶
type SessionSource ¶
type TarSessionArchiveWriter ¶
type TarSessionArchiveWriter struct{}
func (*TarSessionArchiveWriter) Write ¶
func (in *TarSessionArchiveWriter) Write(path string, manifest *SessionManifest, source *SessionSource) error
type UploadArtifactBuilder ¶
type UploadArtifactBuilder interface {
Build(ctx context.Context, opts BuildArtifactsOptions) (*UploadArtifacts, error)
}
func NewUploadArtifactBuilder ¶
func NewUploadArtifactBuilder(config Config) UploadArtifactBuilder
type UploadArtifacts ¶
Click to show internal directories.
Click to hide internal directories.