spadepolicy

package
v0.2.47 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCmd = &cli.Command{
	Name:      "create",
	Usage:     "Create a SPADE policy for self deal proposal",
	ArgsUsage: "DATASET_NAME [...PROVIDER_ID]",
	Flags: []cli.Flag{
		&cli.Float64Flag{
			Name:  "min-delay",
			Usage: "Minimum delay in days for the deal start epoch",
			Value: 3.0,
		},
		&cli.Float64Flag{
			Name:  "max-delay",
			Usage: "Maximum delay in days for the deal start epoch",
			Value: 3.0,
		},
		&cli.Float64Flag{
			Name:  "min-duration",
			Usage: "Minimum duration in days for the deal start epoch",
			Value: 535.0,
		},
		&cli.Float64Flag{
			Name:  "max-duration",
			Usage: "Maximum duration in days for the deal start epoch",
			Value: 535.0,
		},
		&cli.BoolFlag{
			Name:  "verified",
			Usage: "Whether to propose dea as verified",
			Value: true,
		},
		&cli.Float64Flag{
			Name:  "price",
			Usage: "The price of the deal measured by per 32GiB over the whole duration",
			Value: 0.0,
		},
	},
	Action: func(c *cli.Context) error {
		return nil
	},
}
View Source
var ListCmd = &cli.Command{
	Name:      "list",
	Usage:     "List all SPADE policies for self deal proposal",
	ArgsUsage: "DATASET_NAME",
	Action: func(c *cli.Context) error {
		return nil
	},
}
View Source
var RemoveCmd = &cli.Command{
	Name:      "remove",
	Usage:     "Remove a SPADE policy for self deal proposal",
	ArgsUsage: "DATASET_NAME POLICY_ID",
	Action: func(c *cli.Context) error {
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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