Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionOptions ¶
type ActionOptions struct { // Name of the action to be executed. Name string // Dir is the path to your cue module (the parent dir of // the 'cue.mod' dir that contains 'module.cue' file). Dir string // Relative path from `dir` to your plan, which is // expected to begin with `.` (default "."). Plan string // Disable caching when `NoCache` is set to `true`. NoCache bool }
ActionOptions controls the behavior of dagger action.
func NewActionOptions ¶
func NewActionOptions(name, dir, plan string, noCache bool) *ActionOptions
NewActionOptions creates and returns a ActionOptions struct.
type Client ¶
type Client struct { // Path to the executable binary file of dagger. Binary string LogFormat string LogLevel string genericclioptions.IOStreams }
Client maintains dagger binary and executes dagger commands.
func NewClient ¶
func NewClient(logFormat, logLevel string, streams genericclioptions.IOStreams) (*Client, error)
NewClient creates a customized dagger client and returns it
func NewDefaultClient ¶
func NewDefaultClient(streams genericclioptions.IOStreams) (*Client, error)
NewDefaultClient creates a default dagger client and returns it.
func (*Client) CheckAndInstall ¶
CheckAndInstall installs dagger if necessary.
Click to show internal directories.
Click to hide internal directories.