Skip to content

Commit

Permalink
Feature/dron 101 cards 2 (#70)
Browse files Browse the repository at this point in the history
* add cardinput type

* add schema to step
  • Loading branch information
eoinmcafee00 authored Nov 4, 2021
1 parent 6acc5cc commit d3fbcdd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drone/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package drone

import "encoding/json"

type (
// User represents a user account.
User struct {
Expand Down Expand Up @@ -207,6 +209,7 @@ type (
DependsOn []string `json:"depends_on,omitempty"`
Image string `json:"image,omitempty"`
Detached bool `json:"detached,omitempty"`
Schema string `json:"schema,omitempty"`
}

// Registry represents a docker registry with credentials.
Expand Down Expand Up @@ -371,6 +374,11 @@ type (
Login string `json:"login"`
Password string `json:"password"`
}

CardInput struct {
Schema string `json:"schema"`
Data json.RawMessage `json:"data"`
}
)

// Error represents a json-encoded API error.
Expand Down

0 comments on commit d3fbcdd

Please sign in to comment.