github.com/Cloud-Foundations/Dominator@v0.3.4/proto/imaginator/messages.go (about)

     1  package imaginator
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/Cloud-Foundations/Dominator/lib/image"
     7  )
     8  
     9  type BuildImageRequest struct {
    10  	DisableRecursiveBuild bool
    11  	ExpiresIn             time.Duration
    12  	GitBranch             string
    13  	MaxSourceAge          time.Duration
    14  	ReturnImage           bool
    15  	StreamBuildLog        bool
    16  	StreamName            string
    17  	Variables             map[string]string
    18  }
    19  
    20  type BuildImageResponse struct {
    21  	Image                     *image.Image
    22  	ImageName                 string
    23  	BuildLog                  []byte
    24  	ErrorString               string
    25  	NeedSourceImage           bool // True if source image missing/too old.
    26  	SourceImage               string
    27  	SourceImageBuildVariables map[string]string
    28  	SourceImageGitCommitId    string
    29  }
    30  
    31  type DisableAutoBuildsRequest struct {
    32  	DisableFor time.Duration
    33  }
    34  
    35  type DisableAutoBuildsResponse struct {
    36  	DisabledUntil time.Time
    37  	Error         string
    38  }
    39  
    40  type DisableBuildRequestsRequest struct {
    41  	DisableFor time.Duration
    42  }
    43  
    44  type DisableBuildRequestsResponse struct {
    45  	DisabledUntil time.Time
    46  	Error         string
    47  }
    48  
    49  type GetDependenciesRequest struct {
    50  	MaxAge time.Duration
    51  }
    52  
    53  type GetDependenciesResponse struct {
    54  	GetDependenciesResult
    55  	Error string
    56  }
    57  
    58  type GetDependenciesResult struct {
    59  	FetchLog           []byte
    60  	GeneratedAt        time.Time
    61  	LastAttemptAt      time.Time
    62  	LastAttemptError   string
    63  	StreamToSource     map[string]string // K: stream name, V: source stream.
    64  	UnbuildableSources map[string]struct{}
    65  }
    66  
    67  type GetDirectedGraphRequest struct {
    68  	Excludes []string
    69  	Includes []string
    70  	MaxAge   time.Duration
    71  }
    72  
    73  type GetDirectedGraphResponse struct {
    74  	GetDirectedGraphResult
    75  	Error string
    76  }
    77  
    78  type GetDirectedGraphResult struct {
    79  	FetchLog         []byte
    80  	GeneratedAt      time.Time
    81  	GraphvizDot      []byte
    82  	LastAttemptAt    time.Time
    83  	LastAttemptError string
    84  }
    85  
    86  type ReplaceIdleSlavesRequest struct {
    87  	ImmediateGetNew bool
    88  }
    89  
    90  type ReplaceIdleSlavesResponse struct {
    91  	Error string
    92  }