Skip to main content

cmd/taisce/formation.go

cmd/taisce · 101 lines · 4 declarations · source

Declarations

type formationArgs

type formationArgs struct {
op string
project string
after int64
limit int
observationID string
}

formationArgs is a formation command, validated before anything is connected to.

source

type unparkResult

type unparkResult struct {
ObservationID string `json:"observation_id"`
Unparked bool `json:"unparked"`
AuditPrincipal string `json:"audit_principal,omitempty"`
}

unparkResult is what both paths print for an unpark. AuditPrincipal is the principal the direct path records in the ledger; over the surface the principal is the operator credential, which the operator already holds, so it is omitted there.

source

func parseFormation

func parseFormation(args []string) (formationArgs, error)

source

func formationCommand

func formationCommand(ctx context.Context, args []string, out io.Writer) error

source