testclient

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationDeleteDocument = `mutation AnnotationDelete ($input: AnnotationDeleteInput!) {
	annotationDelete(input: $input) {
		deletedID
	}
}
`
View Source
const AnnotationNamespaceCreateDocument = `` /* 230-byte string literal not displayed */
View Source
const AnnotationNamespaceDeleteDocument = `` /* 169-byte string literal not displayed */
View Source
const AnnotationNamespaceUpdateDocument = `` /* 249-byte string literal not displayed */
View Source
const AnnotationUpdateDocument = `` /* 259-byte string literal not displayed */
View Source
const GetAnnotationNamespaceDocument = `` /* 243-byte string literal not displayed */
View Source
const GetNodeMetadataDocument = `` /* 271-byte string literal not displayed */
View Source
const GetResourceOwnerAnnotationNamespacesDocument = `` /* 346-byte string literal not displayed */
View Source
const GetResourceProviderStatusNamespacesDocument = `` /* 333-byte string literal not displayed */
View Source
const StatusDeleteDocument = `mutation StatusDelete ($input: StatusDeleteInput!) {
	statusDelete(input: $input) {
		deletedID
	}
}
`
View Source
const StatusNamespaceCreateDocument = `` /* 214-byte string literal not displayed */
View Source
const StatusNamespaceDeleteDocument = `` /* 157-byte string literal not displayed */
View Source
const StatusNamespaceUpdateDocument = `` /* 233-byte string literal not displayed */
View Source
const StatusUpdateDocument = `` /* 253-byte string literal not displayed */

Variables

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	// ID for the annotation.
	ID        gidx.PrefixedID `json:"id"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
	// ID of the metadata of this annotation
	MetadataID gidx.PrefixedID `json:"metadataID"`
	// JSON formatted data of this annotation.
	Data      json.RawMessage     `json:"data"`
	Namespace AnnotationNamespace `json:"namespace"`
	Metadata  Metadata            `json:"metadata"`
}

func (Annotation) GetID

func (this Annotation) GetID() gidx.PrefixedID

The id of the object.

func (Annotation) IsEntity

func (Annotation) IsEntity()

func (Annotation) IsNode

func (Annotation) IsNode()

type AnnotationConnection

type AnnotationConnection struct {
	// A list of edges.
	Edges []*AnnotationEdge `json:"edges,omitempty"`
	// Information to aid in pagination.
	PageInfo PageInfo `json:"pageInfo"`
	// Identifies the total count of items in the connection.
	TotalCount int64 `json:"totalCount"`
}

A connection to a list of items.

type AnnotationDelete

type AnnotationDelete struct {
	AnnotationDelete struct {
		DeletedID gidx.PrefixedID "json:\"deletedID\" graphql:\"deletedID\""
	} "json:\"annotationDelete\" graphql:\"annotationDelete\""
}

type AnnotationDeleteInput

type AnnotationDeleteInput struct {
	// The node ID for this annotation.
	NodeID gidx.PrefixedID `json:"nodeID"`
	// The namespace ID for this annotation.
	NamespaceID gidx.PrefixedID `json:"namespaceID"`
}

Input information to delete an annotation.

type AnnotationDeleteResponse

type AnnotationDeleteResponse struct {
	// The ID of the unset annotation.
	DeletedID gidx.PrefixedID `json:"deletedID"`
}

Return response from annotationDelete

type AnnotationEdge

type AnnotationEdge struct {
	// The item at the end of the edge.
	Node *Annotation `json:"node,omitempty"`
	// A cursor for use in pagination.
	Cursor string `json:"cursor"`
}

An edge in a connection.

type AnnotationNamespace

type AnnotationNamespace struct {
	// The ID for the annotation namespace.
	ID        gidx.PrefixedID `json:"id"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
	// The name of the annotation namespace.
	Name string `json:"name"`
	// Flag for if this namespace is private.
	Private     bool          `json:"private"`
	Annotations []*Annotation `json:"annotations,omitempty"`
	// The owner of the annotation namespace.
	Owner ResourceOwner `json:"owner"`
}

func (AnnotationNamespace) GetID

func (this AnnotationNamespace) GetID() gidx.PrefixedID

The id of the object.

func (AnnotationNamespace) IsEntity

func (AnnotationNamespace) IsEntity()

func (AnnotationNamespace) IsNode

func (AnnotationNamespace) IsNode()

type AnnotationNamespaceConnection

type AnnotationNamespaceConnection struct {
	// A list of edges.
	Edges []*AnnotationNamespaceEdge `json:"edges,omitempty"`
	// Information to aid in pagination.
	PageInfo PageInfo `json:"pageInfo"`
	// Identifies the total count of items in the connection.
	TotalCount int64 `json:"totalCount"`
}

A connection to a list of items.

type AnnotationNamespaceCreate

type AnnotationNamespaceCreate struct {
	AnnotationNamespaceCreate struct {
		AnnotationNamespace struct {
			ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Name      string          "json:\"name\" graphql:\"name\""
			Private   bool            "json:\"private\" graphql:\"private\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
			Owner     struct {
				ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
			} "json:\"owner\" graphql:\"owner\""
		} "json:\"annotationNamespace\" graphql:\"annotationNamespace\""
	} "json:\"annotationNamespaceCreate\" graphql:\"annotationNamespaceCreate\""
}

type AnnotationNamespaceCreatePayload

type AnnotationNamespaceCreatePayload struct {
	// The created annotation namespace.
	AnnotationNamespace AnnotationNamespace `json:"annotationNamespace"`
}

Return response from annotationNamespaceCreate

type AnnotationNamespaceDelete

type AnnotationNamespaceDelete struct {
	AnnotationNamespaceDelete struct {
		DeletedID              gidx.PrefixedID "json:\"deletedID\" graphql:\"deletedID\""
		AnnotationDeletedCount int64           "json:\"annotationDeletedCount\" graphql:\"annotationDeletedCount\""
	} "json:\"annotationNamespaceDelete\" graphql:\"annotationNamespaceDelete\""
}

type AnnotationNamespaceDeletePayload

type AnnotationNamespaceDeletePayload struct {
	// The ID of the deleted annotation namespace.
	DeletedID gidx.PrefixedID `json:"deletedID"`
	// The count of annotations deleted
	AnnotationDeletedCount int64 `json:"annotationDeletedCount"`
}

Return response from annotationNamespaceDelete

type AnnotationNamespaceEdge

type AnnotationNamespaceEdge struct {
	// The item at the end of the edge.
	Node *AnnotationNamespace `json:"node,omitempty"`
	// A cursor for use in pagination.
	Cursor string `json:"cursor"`
}

An edge in a connection.

type AnnotationNamespaceOrder

type AnnotationNamespaceOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field by which to order AnnotationNamespaces.
	Field AnnotationNamespaceOrderField `json:"field"`
}

Ordering options for AnnotationNamespace connections

type AnnotationNamespaceOrderField

type AnnotationNamespaceOrderField string

Properties by which AnnotationNamespace connections can be ordered.

const (
	AnnotationNamespaceOrderFieldID        AnnotationNamespaceOrderField = "ID"
	AnnotationNamespaceOrderFieldCreatedAt AnnotationNamespaceOrderField = "CREATED_AT"
	AnnotationNamespaceOrderFieldUpdatedAt AnnotationNamespaceOrderField = "UPDATED_AT"
	AnnotationNamespaceOrderFieldName      AnnotationNamespaceOrderField = "NAME"
	AnnotationNamespaceOrderFieldOwner     AnnotationNamespaceOrderField = "OWNER"
	AnnotationNamespaceOrderFieldPrivate   AnnotationNamespaceOrderField = "PRIVATE"
)

func (AnnotationNamespaceOrderField) IsValid

func (e AnnotationNamespaceOrderField) IsValid() bool

func (AnnotationNamespaceOrderField) MarshalGQL

func (e AnnotationNamespaceOrderField) MarshalGQL(w io.Writer)

func (AnnotationNamespaceOrderField) String

func (*AnnotationNamespaceOrderField) UnmarshalGQL

func (e *AnnotationNamespaceOrderField) UnmarshalGQL(v interface{}) error

type AnnotationNamespaceUpdate

type AnnotationNamespaceUpdate struct {
	AnnotationNamespaceUpdate struct {
		AnnotationNamespace struct {
			ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Name      string          "json:\"name\" graphql:\"name\""
			Private   bool            "json:\"private\" graphql:\"private\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
			Owner     struct {
				ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
			} "json:\"owner\" graphql:\"owner\""
		} "json:\"annotationNamespace\" graphql:\"annotationNamespace\""
	} "json:\"annotationNamespaceUpdate\" graphql:\"annotationNamespaceUpdate\""
}

type AnnotationNamespaceUpdatePayload

type AnnotationNamespaceUpdatePayload struct {
	// The updated annotation namespace.
	AnnotationNamespace AnnotationNamespace `json:"annotationNamespace"`
}

Return response from annotationNamespaceUpdate

type AnnotationNamespaceWhereInput

type AnnotationNamespaceWhereInput struct {
	Not *AnnotationNamespaceWhereInput   `json:"not,omitempty"`
	And []*AnnotationNamespaceWhereInput `json:"and,omitempty"`
	Or  []*AnnotationNamespaceWhereInput `json:"or,omitempty"`
	// id field predicates
	ID      *gidx.PrefixedID  `json:"id,omitempty"`
	IDNeq   *gidx.PrefixedID  `json:"idNEQ,omitempty"`
	IDIn    []gidx.PrefixedID `json:"idIn,omitempty"`
	IDNotIn []gidx.PrefixedID `json:"idNotIn,omitempty"`
	IDGt    *gidx.PrefixedID  `json:"idGT,omitempty"`
	IDGte   *gidx.PrefixedID  `json:"idGTE,omitempty"`
	IDLt    *gidx.PrefixedID  `json:"idLT,omitempty"`
	IDLte   *gidx.PrefixedID  `json:"idLTE,omitempty"`
	// created_at field predicates
	CreatedAt      *time.Time   `json:"createdAt,omitempty"`
	CreatedAtNeq   *time.Time   `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []*time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGt    *time.Time   `json:"createdAtGT,omitempty"`
	CreatedAtGte   *time.Time   `json:"createdAtGTE,omitempty"`
	CreatedAtLt    *time.Time   `json:"createdAtLT,omitempty"`
	CreatedAtLte   *time.Time   `json:"createdAtLTE,omitempty"`
	// updated_at field predicates
	UpdatedAt      *time.Time   `json:"updatedAt,omitempty"`
	UpdatedAtNeq   *time.Time   `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []*time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGt    *time.Time   `json:"updatedAtGT,omitempty"`
	UpdatedAtGte   *time.Time   `json:"updatedAtGTE,omitempty"`
	UpdatedAtLt    *time.Time   `json:"updatedAtLT,omitempty"`
	UpdatedAtLte   *time.Time   `json:"updatedAtLTE,omitempty"`
	// name field predicates
	Name             *string  `json:"name,omitempty"`
	NameNeq          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGt           *string  `json:"nameGT,omitempty"`
	NameGte          *string  `json:"nameGTE,omitempty"`
	NameLt           *string  `json:"nameLT,omitempty"`
	NameLte          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`
	// annotations edge predicates
	HasAnnotations     *bool                   `json:"hasAnnotations,omitempty"`
	HasAnnotationsWith []*AnnotationWhereInput `json:"hasAnnotationsWith,omitempty"`
}

AnnotationNamespaceWhereInput is used for filtering AnnotationNamespace objects. Input was generated by ent.

type AnnotationOrder

type AnnotationOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field by which to order Annotations.
	Field AnnotationOrderField `json:"field"`
}

Ordering options for Annotation connections

type AnnotationOrderField

type AnnotationOrderField string

Properties by which Annotation connections can be ordered.

const (
	AnnotationOrderFieldCreatedAt AnnotationOrderField = "CREATED_AT"
	AnnotationOrderFieldUpdatedAt AnnotationOrderField = "UPDATED_AT"
)

func (AnnotationOrderField) IsValid

func (e AnnotationOrderField) IsValid() bool

func (AnnotationOrderField) MarshalGQL

func (e AnnotationOrderField) MarshalGQL(w io.Writer)

func (AnnotationOrderField) String

func (e AnnotationOrderField) String() string

func (*AnnotationOrderField) UnmarshalGQL

func (e *AnnotationOrderField) UnmarshalGQL(v interface{}) error

type AnnotationUpdate

type AnnotationUpdate struct {
	AnnotationUpdate struct {
		Annotation struct {
			ID       gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Metadata struct {
				ID   gidx.PrefixedID "json:\"id\" graphql:\"id\""
				Node struct {
					ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
				} "json:\"node\" graphql:\"node\""
			} "json:\"metadata\" graphql:\"metadata\""
			Namespace struct {
				ID      gidx.PrefixedID "json:\"id\" graphql:\"id\""
				Name    string          "json:\"name\" graphql:\"name\""
				Private bool            "json:\"private\" graphql:\"private\""
			} "json:\"namespace\" graphql:\"namespace\""
			Data      json.RawMessage "json:\"data\" graphql:\"data\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
		} "json:\"annotation\" graphql:\"annotation\""
	} "json:\"annotationUpdate\" graphql:\"annotationUpdate\""
}

type AnnotationUpdateInput

type AnnotationUpdateInput struct {
	// The node ID for this annotation.
	NodeID gidx.PrefixedID `json:"nodeID"`
	// The namespace ID for this annotation.
	NamespaceID gidx.PrefixedID `json:"namespaceID"`
	// The data to save in this annotation.
	Data json.RawMessage `json:"data"`
}

Input information to update an annotation.

type AnnotationUpdateResponse

type AnnotationUpdateResponse struct {
	// The set annotation.
	Annotation Annotation `json:"annotation"`
}

Return response from annotationUpdate

type AnnotationWhereInput

type AnnotationWhereInput struct {
	Not *AnnotationWhereInput   `json:"not,omitempty"`
	And []*AnnotationWhereInput `json:"and,omitempty"`
	Or  []*AnnotationWhereInput `json:"or,omitempty"`
	// id field predicates
	ID      *gidx.PrefixedID  `json:"id,omitempty"`
	IDNeq   *gidx.PrefixedID  `json:"idNEQ,omitempty"`
	IDIn    []gidx.PrefixedID `json:"idIn,omitempty"`
	IDNotIn []gidx.PrefixedID `json:"idNotIn,omitempty"`
	IDGt    *gidx.PrefixedID  `json:"idGT,omitempty"`
	IDGte   *gidx.PrefixedID  `json:"idGTE,omitempty"`
	IDLt    *gidx.PrefixedID  `json:"idLT,omitempty"`
	IDLte   *gidx.PrefixedID  `json:"idLTE,omitempty"`
	// created_at field predicates
	CreatedAt      *time.Time   `json:"createdAt,omitempty"`
	CreatedAtNeq   *time.Time   `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []*time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGt    *time.Time   `json:"createdAtGT,omitempty"`
	CreatedAtGte   *time.Time   `json:"createdAtGTE,omitempty"`
	CreatedAtLt    *time.Time   `json:"createdAtLT,omitempty"`
	CreatedAtLte   *time.Time   `json:"createdAtLTE,omitempty"`
	// updated_at field predicates
	UpdatedAt      *time.Time   `json:"updatedAt,omitempty"`
	UpdatedAtNeq   *time.Time   `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []*time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGt    *time.Time   `json:"updatedAtGT,omitempty"`
	UpdatedAtGte   *time.Time   `json:"updatedAtGTE,omitempty"`
	UpdatedAtLt    *time.Time   `json:"updatedAtLT,omitempty"`
	UpdatedAtLte   *time.Time   `json:"updatedAtLTE,omitempty"`
	// namespace edge predicates
	HasNamespace     *bool                            `json:"hasNamespace,omitempty"`
	HasNamespaceWith []*AnnotationNamespaceWhereInput `json:"hasNamespaceWith,omitempty"`
	// metadata edge predicates
	HasMetadata     *bool                 `json:"hasMetadata,omitempty"`
	HasMetadataWith []*MetadataWhereInput `json:"hasMetadataWith,omitempty"`
}

AnnotationWhereInput is used for filtering Annotation objects. Input was generated by ent.

type Client

type Client struct {
	Client *client.Client
}

func (*Client) AnnotationDelete

func (c *Client) AnnotationDelete(ctx context.Context, input AnnotationDeleteInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationDelete, error)

func (*Client) AnnotationNamespaceCreate

func (c *Client) AnnotationNamespaceCreate(ctx context.Context, input CreateAnnotationNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceCreate, error)

func (*Client) AnnotationNamespaceDelete

func (c *Client) AnnotationNamespaceDelete(ctx context.Context, id gidx.PrefixedID, force bool, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceDelete, error)

func (*Client) AnnotationNamespaceUpdate

func (c *Client) AnnotationNamespaceUpdate(ctx context.Context, id gidx.PrefixedID, input UpdateAnnotationNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceUpdate, error)

func (*Client) AnnotationUpdate

func (c *Client) AnnotationUpdate(ctx context.Context, input AnnotationUpdateInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationUpdate, error)

func (*Client) GetAnnotationNamespace added in v0.0.2

func (c *Client) GetAnnotationNamespace(ctx context.Context, annotationNamespaceID gidx.PrefixedID, httpRequestOptions ...client.HTTPRequestOption) (*GetAnnotationNamespace, error)

func (*Client) GetNodeMetadata

func (c *Client) GetNodeMetadata(ctx context.Context, id gidx.PrefixedID, httpRequestOptions ...client.HTTPRequestOption) (*GetNodeMetadata, error)

func (*Client) GetResourceOwnerAnnotationNamespaces

func (c *Client) GetResourceOwnerAnnotationNamespaces(ctx context.Context, id gidx.PrefixedID, orderBy *AnnotationNamespaceOrder, httpRequestOptions ...client.HTTPRequestOption) (*GetResourceOwnerAnnotationNamespaces, error)

func (*Client) GetResourceProviderStatusNamespaces

func (c *Client) GetResourceProviderStatusNamespaces(ctx context.Context, id gidx.PrefixedID, orderBy *StatusNamespaceOrder, httpRequestOptions ...client.HTTPRequestOption) (*GetResourceProviderStatusNamespaces, error)

func (*Client) StatusDelete

func (c *Client) StatusDelete(ctx context.Context, input StatusDeleteInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusDelete, error)

func (*Client) StatusNamespaceCreate

func (c *Client) StatusNamespaceCreate(ctx context.Context, input CreateStatusNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceCreate, error)

func (*Client) StatusNamespaceDelete

func (c *Client) StatusNamespaceDelete(ctx context.Context, id gidx.PrefixedID, force bool, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceDelete, error)

func (*Client) StatusNamespaceUpdate

func (c *Client) StatusNamespaceUpdate(ctx context.Context, id gidx.PrefixedID, input UpdateStatusNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceUpdate, error)

func (*Client) StatusUpdate

func (c *Client) StatusUpdate(ctx context.Context, input StatusUpdateInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusUpdate, error)

type CreateAnnotationNamespaceInput

type CreateAnnotationNamespaceInput struct {
	// The name of the annotation namespace.
	Name string `json:"name"`
	// The ID for the owner for this annotation namespace.
	OwnerID gidx.PrefixedID `json:"ownerID"`
	// Flag for if this namespace is private.
	Private *bool `json:"private,omitempty"`
}

Input information to create an annotation namespace.

type CreateStatusInput

type CreateStatusInput struct {
	Source string `json:"source"`
	// JSON formatted data of this annotation.
	Data        json.RawMessage `json:"data"`
	NamespaceID gidx.PrefixedID `json:"namespaceID"`
	MetadataID  gidx.PrefixedID `json:"metadataID"`
}

Input information to create a status namespace.

type CreateStatusNamespaceInput

type CreateStatusNamespaceInput struct {
	// The name of the status namespace.
	Name string `json:"name"`
	// The ID of the resource provider for this status namespace.
	ResourceProviderID gidx.PrefixedID `json:"resourceProviderID"`
	// Flag for if this namespace is private.
	Private *bool `json:"private,omitempty"`
}

Input information to create a status namespace.

type Entity

type Entity interface {
	IsEntity()
}

type GetAnnotationNamespace added in v0.0.2

type GetAnnotationNamespace struct {
	AnnotationNamespace struct {
		ID      gidx.PrefixedID "json:\"id\" graphql:\"id\""
		Name    string          "json:\"name\" graphql:\"name\""
		Private bool            "json:\"private\" graphql:\"private\""
		Owner   struct {
			ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
		} "json:\"owner\" graphql:\"owner\""
		Annotations []*struct {
			ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Data      json.RawMessage "json:\"data\" graphql:\"data\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
		} "json:\"annotations\" graphql:\"annotations\""
		CreatedAt time.Time "json:\"createdAt\" graphql:\"createdAt\""
		UpdatedAt time.Time "json:\"updatedAt\" graphql:\"updatedAt\""
	} "json:\"annotationNamespace\" graphql:\"annotationNamespace\""
}

type GetNodeMetadata

type GetNodeMetadata struct {
	Entities []*struct {
		Metadata *struct {
			Annotations struct {
				Edges []*struct {
					Node *struct {
						Namespace struct {
							Name string "json:\"name\" graphql:\"name\""
						} "json:\"namespace\" graphql:\"namespace\""
						Data json.RawMessage "json:\"data\" graphql:\"data\""
					} "json:\"node\" graphql:\"node\""
				} "json:\"edges\" graphql:\"edges\""
			} "json:\"annotations\" graphql:\"annotations\""
		} "json:\"metadata\" graphql:\"metadata\""
	} "json:\"_entities\" graphql:\"_entities\""
}

type GetResourceOwnerAnnotationNamespaces

type GetResourceOwnerAnnotationNamespaces struct {
	Entities []*struct {
		AnnotationNamespaces struct {
			Edges []*struct {
				Node *struct {
					ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
					Name      string          "json:\"name\" graphql:\"name\""
					Private   bool            "json:\"private\" graphql:\"private\""
					CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
					UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
				} "json:\"node\" graphql:\"node\""
			} "json:\"edges\" graphql:\"edges\""
		} "json:\"annotationNamespaces\" graphql:\"annotationNamespaces\""
	} "json:\"_entities\" graphql:\"_entities\""
}

type GetResourceProviderStatusNamespaces

type GetResourceProviderStatusNamespaces struct {
	Entities []*struct {
		StatusNamespaces struct {
			Edges []*struct {
				Node *struct {
					ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
					Name      string          "json:\"name\" graphql:\"name\""
					Private   bool            "json:\"private\" graphql:\"private\""
					CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
					UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
				} "json:\"node\" graphql:\"node\""
			} "json:\"edges\" graphql:\"edges\""
		} "json:\"statusNamespaces\" graphql:\"statusNamespaces\""
	} "json:\"_entities\" graphql:\"_entities\""
}

type Metadata

type Metadata struct {
	// ID for the metadata.
	ID        gidx.PrefixedID `json:"id"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
	// ID of the node for this metadata
	NodeID      gidx.PrefixedID      `json:"nodeID"`
	Annotations AnnotationConnection `json:"annotations"`
	Statuses    StatusConnection     `json:"statuses"`
	// Node that this metadata is assigned to.
	Node MetadataNode `json:"node"`
}

func (Metadata) GetID

func (this Metadata) GetID() gidx.PrefixedID

The id of the object.

func (Metadata) IsEntity

func (Metadata) IsEntity()

func (Metadata) IsNode

func (Metadata) IsNode()

type MetadataConnection

type MetadataConnection struct {
	// A list of edges.
	Edges []*MetadataEdge `json:"edges,omitempty"`
	// Information to aid in pagination.
	PageInfo PageInfo `json:"pageInfo"`
	// Identifies the total count of items in the connection.
	TotalCount int64 `json:"totalCount"`
}

A connection to a list of items.

type MetadataEdge

type MetadataEdge struct {
	// The item at the end of the edge.
	Node *Metadata `json:"node,omitempty"`
	// A cursor for use in pagination.
	Cursor string `json:"cursor"`
}

An edge in a connection.

type MetadataNode

type MetadataNode struct {
	ID gidx.PrefixedID `json:"id"`
	// Metadata about this node, including annotations and statuses.
	Metadata *Metadata `json:"metadata,omitempty"`
}

MetadataNode provides an interface for any Node in the graph that can store metadata.

func (MetadataNode) IsEntity

func (MetadataNode) IsEntity()

type MetadataOrder

type MetadataOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field by which to order MetadataSlice.
	Field MetadataOrderField `json:"field"`
}

Ordering options for Metadata connections

type MetadataOrderField

type MetadataOrderField string

Properties by which Metadata connections can be ordered.

const (
	MetadataOrderFieldCreatedAt MetadataOrderField = "CREATED_AT"
	MetadataOrderFieldUpdatedAt MetadataOrderField = "UPDATED_AT"
)

func (MetadataOrderField) IsValid

func (e MetadataOrderField) IsValid() bool

func (MetadataOrderField) MarshalGQL

func (e MetadataOrderField) MarshalGQL(w io.Writer)

func (MetadataOrderField) String

func (e MetadataOrderField) String() string

func (*MetadataOrderField) UnmarshalGQL

func (e *MetadataOrderField) UnmarshalGQL(v interface{}) error

type MetadataWhereInput

type MetadataWhereInput struct {
	Not *MetadataWhereInput   `json:"not,omitempty"`
	And []*MetadataWhereInput `json:"and,omitempty"`
	Or  []*MetadataWhereInput `json:"or,omitempty"`
	// id field predicates
	ID      *gidx.PrefixedID  `json:"id,omitempty"`
	IDNeq   *gidx.PrefixedID  `json:"idNEQ,omitempty"`
	IDIn    []gidx.PrefixedID `json:"idIn,omitempty"`
	IDNotIn []gidx.PrefixedID `json:"idNotIn,omitempty"`
	IDGt    *gidx.PrefixedID  `json:"idGT,omitempty"`
	IDGte   *gidx.PrefixedID  `json:"idGTE,omitempty"`
	IDLt    *gidx.PrefixedID  `json:"idLT,omitempty"`
	IDLte   *gidx.PrefixedID  `json:"idLTE,omitempty"`
	// created_at field predicates
	CreatedAt      *time.Time   `json:"createdAt,omitempty"`
	CreatedAtNeq   *time.Time   `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []*time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGt    *time.Time   `json:"createdAtGT,omitempty"`
	CreatedAtGte   *time.Time   `json:"createdAtGTE,omitempty"`
	CreatedAtLt    *time.Time   `json:"createdAtLT,omitempty"`
	CreatedAtLte   *time.Time   `json:"createdAtLTE,omitempty"`
	// updated_at field predicates
	UpdatedAt      *time.Time   `json:"updatedAt,omitempty"`
	UpdatedAtNeq   *time.Time   `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []*time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGt    *time.Time   `json:"updatedAtGT,omitempty"`
	UpdatedAtGte   *time.Time   `json:"updatedAtGTE,omitempty"`
	UpdatedAtLt    *time.Time   `json:"updatedAtLT,omitempty"`
	UpdatedAtLte   *time.Time   `json:"updatedAtLTE,omitempty"`
	// annotations edge predicates
	HasAnnotations     *bool                   `json:"hasAnnotations,omitempty"`
	HasAnnotationsWith []*AnnotationWhereInput `json:"hasAnnotationsWith,omitempty"`
	// statuses edge predicates
	HasStatuses     *bool               `json:"hasStatuses,omitempty"`
	HasStatusesWith []*StatusWhereInput `json:"hasStatusesWith,omitempty"`
}

MetadataWhereInput is used for filtering Metadata objects. Input was generated by ent.

type Mutation

type Mutation struct {
	AnnotationUpdate          AnnotationUpdateResponse         "json:\"annotationUpdate\" graphql:\"annotationUpdate\""
	AnnotationDelete          AnnotationDeleteResponse         "json:\"annotationDelete\" graphql:\"annotationDelete\""
	AnnotationNamespaceCreate AnnotationNamespaceCreatePayload "json:\"annotationNamespaceCreate\" graphql:\"annotationNamespaceCreate\""
	AnnotationNamespaceDelete AnnotationNamespaceDeletePayload "json:\"annotationNamespaceDelete\" graphql:\"annotationNamespaceDelete\""
	AnnotationNamespaceUpdate AnnotationNamespaceUpdatePayload "json:\"annotationNamespaceUpdate\" graphql:\"annotationNamespaceUpdate\""
	StatusUpdate              StatusUpdateResponse             "json:\"statusUpdate\" graphql:\"statusUpdate\""
	StatusDelete              StatusDeleteResponse             "json:\"statusDelete\" graphql:\"statusDelete\""
	StatusNamespaceCreate     StatusNamespaceCreatePayload     "json:\"statusNamespaceCreate\" graphql:\"statusNamespaceCreate\""
	StatusNamespaceDelete     StatusNamespaceDeletePayload     "json:\"statusNamespaceDelete\" graphql:\"statusNamespaceDelete\""
	StatusNamespaceUpdate     StatusNamespaceUpdatePayload     "json:\"statusNamespaceUpdate\" graphql:\"statusNamespaceUpdate\""
}

type Node

type Node interface {
	IsNode()
	// The id of the object.
	GetID() gidx.PrefixedID
}

An object with an ID. Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm)

type OrderDirection

type OrderDirection string

Possible directions in which to order a list of items when provided an `orderBy` argument.

const (
	// Specifies an ascending order for a given `orderBy` argument.
	OrderDirectionAsc OrderDirection = "ASC"
	// Specifies a descending order for a given `orderBy` argument.
	OrderDirectionDesc OrderDirection = "DESC"
)

func (OrderDirection) IsValid

func (e OrderDirection) IsValid() bool

func (OrderDirection) MarshalGQL

func (e OrderDirection) MarshalGQL(w io.Writer)

func (OrderDirection) String

func (e OrderDirection) String() string

func (*OrderDirection) UnmarshalGQL

func (e *OrderDirection) UnmarshalGQL(v interface{}) error

type PageInfo

type PageInfo struct {
	// When paginating forwards, are there more items?
	HasNextPage bool `json:"hasNextPage"`
	// When paginating backwards, are there more items?
	HasPreviousPage bool `json:"hasPreviousPage"`
	// When paginating backwards, the cursor to continue.
	StartCursor *string `json:"startCursor,omitempty"`
	// When paginating forwards, the cursor to continue.
	EndCursor *string `json:"endCursor,omitempty"`
}

Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo

type Query

type Query struct {
	AnnotationNamespace AnnotationNamespace "json:\"annotationNamespace\" graphql:\"annotationNamespace\""
	Entities            []Entity            "json:\"_entities\" graphql:\"_entities\""
	Service             Service             "json:\"_service\" graphql:\"_service\""
}

type ResourceOwner

type ResourceOwner struct {
	ID                   gidx.PrefixedID               `json:"id"`
	AnnotationNamespaces AnnotationNamespaceConnection `json:"annotationNamespaces"`
	// Metadata about this node, including annotations and statuses.
	Metadata *Metadata `json:"metadata,omitempty"`
}

func (ResourceOwner) IsEntity

func (ResourceOwner) IsEntity()

type Service

type Service struct {
	Sdl *string `json:"sdl,omitempty"`
}

type Status

type Status struct {
	ID        gidx.PrefixedID `json:"id"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
	// ID of the metadata of this status
	MetadataID        gidx.PrefixedID `json:"metadataID"`
	StatusNamespaceID gidx.PrefixedID `json:"statusNamespaceID"`
	Source            string          `json:"source"`
	// JSON formatted data of this annotation.
	Data      json.RawMessage `json:"data"`
	Namespace StatusNamespace `json:"namespace"`
	Metadata  Metadata        `json:"metadata"`
}

func (Status) GetID

func (this Status) GetID() gidx.PrefixedID

The id of the object.

func (Status) IsEntity

func (Status) IsEntity()

func (Status) IsNode

func (Status) IsNode()

type StatusConnection

type StatusConnection struct {
	// A list of edges.
	Edges []*StatusEdge `json:"edges,omitempty"`
	// Information to aid in pagination.
	PageInfo PageInfo `json:"pageInfo"`
	// Identifies the total count of items in the connection.
	TotalCount int64 `json:"totalCount"`
}

A connection to a list of items.

type StatusDelete

type StatusDelete struct {
	StatusDelete struct {
		DeletedID gidx.PrefixedID "json:\"deletedID\" graphql:\"deletedID\""
	} "json:\"statusDelete\" graphql:\"statusDelete\""
}

type StatusDeleteInput

type StatusDeleteInput struct {
	// The node ID for this status.
	NodeID gidx.PrefixedID `json:"nodeID"`
	// The namespace ID for this status.
	NamespaceID gidx.PrefixedID `json:"namespaceID"`
	// The source for this status.
	Source string `json:"source"`
}

Input information to delete an status.

type StatusDeleteResponse

type StatusDeleteResponse struct {
	// The ID of the unset status.
	DeletedID gidx.PrefixedID `json:"deletedID"`
}

Return response from statusDelete

type StatusEdge

type StatusEdge struct {
	// The item at the end of the edge.
	Node *Status `json:"node,omitempty"`
	// A cursor for use in pagination.
	Cursor string `json:"cursor"`
}

An edge in a connection.

type StatusNamespace

type StatusNamespace struct {
	// The ID for the status namespace.
	ID        gidx.PrefixedID `json:"id"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
	// The name of the status namespace.
	Name string `json:"name"`
	// Flag for if this namespace is private.
	Private bool `json:"private"`
	// The owner of the status namespace.
	Owner StatusOwner `json:"owner"`
}

func (StatusNamespace) GetID

func (this StatusNamespace) GetID() gidx.PrefixedID

The id of the object.

func (StatusNamespace) IsEntity

func (StatusNamespace) IsEntity()

func (StatusNamespace) IsNode

func (StatusNamespace) IsNode()

type StatusNamespaceConnection

type StatusNamespaceConnection struct {
	// A list of edges.
	Edges []*StatusNamespaceEdge `json:"edges,omitempty"`
	// Information to aid in pagination.
	PageInfo PageInfo `json:"pageInfo"`
	// Identifies the total count of items in the connection.
	TotalCount int64 `json:"totalCount"`
}

A connection to a list of items.

type StatusNamespaceCreate

type StatusNamespaceCreate struct {
	StatusNamespaceCreate struct {
		StatusNamespace struct {
			ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Name      string          "json:\"name\" graphql:\"name\""
			Private   bool            "json:\"private\" graphql:\"private\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
			Owner     struct {
				ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
			} "json:\"owner\" graphql:\"owner\""
		} "json:\"statusNamespace\" graphql:\"statusNamespace\""
	} "json:\"statusNamespaceCreate\" graphql:\"statusNamespaceCreate\""
}

type StatusNamespaceCreatePayload

type StatusNamespaceCreatePayload struct {
	// The created status namespace.
	StatusNamespace StatusNamespace `json:"statusNamespace"`
}

Return response from statusNamespaceCreate

type StatusNamespaceDelete

type StatusNamespaceDelete struct {
	StatusNamespaceDelete struct {
		DeletedID          gidx.PrefixedID "json:\"deletedID\" graphql:\"deletedID\""
		StatusDeletedCount int64           "json:\"statusDeletedCount\" graphql:\"statusDeletedCount\""
	} "json:\"statusNamespaceDelete\" graphql:\"statusNamespaceDelete\""
}

type StatusNamespaceDeletePayload

type StatusNamespaceDeletePayload struct {
	// The ID of the deleted status namespace.
	DeletedID gidx.PrefixedID `json:"deletedID"`
	// The count of statuss deleted
	StatusDeletedCount int64 `json:"statusDeletedCount"`
}

Return response from statusNamespaceDelete

type StatusNamespaceEdge

type StatusNamespaceEdge struct {
	// The item at the end of the edge.
	Node *StatusNamespace `json:"node,omitempty"`
	// A cursor for use in pagination.
	Cursor string `json:"cursor"`
}

An edge in a connection.

type StatusNamespaceOrder

type StatusNamespaceOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field by which to order StatusNamespaces.
	Field StatusNamespaceOrderField `json:"field"`
}

Ordering options for StatusNamespace connections

type StatusNamespaceOrderField

type StatusNamespaceOrderField string

Properties by which StatusNamespace connections can be ordered.

const (
	StatusNamespaceOrderFieldID               StatusNamespaceOrderField = "ID"
	StatusNamespaceOrderFieldCreatedAt        StatusNamespaceOrderField = "CREATED_AT"
	StatusNamespaceOrderFieldUpdatedAt        StatusNamespaceOrderField = "UPDATED_AT"
	StatusNamespaceOrderFieldName             StatusNamespaceOrderField = "NAME"
	StatusNamespaceOrderFieldResourceprovider StatusNamespaceOrderField = "RESOURCEPROVIDER"
	StatusNamespaceOrderFieldPrivate          StatusNamespaceOrderField = "PRIVATE"
)

func (StatusNamespaceOrderField) IsValid

func (e StatusNamespaceOrderField) IsValid() bool

func (StatusNamespaceOrderField) MarshalGQL

func (e StatusNamespaceOrderField) MarshalGQL(w io.Writer)

func (StatusNamespaceOrderField) String

func (e StatusNamespaceOrderField) String() string

func (*StatusNamespaceOrderField) UnmarshalGQL

func (e *StatusNamespaceOrderField) UnmarshalGQL(v interface{}) error

type StatusNamespaceUpdate

type StatusNamespaceUpdate struct {
	StatusNamespaceUpdate struct {
		StatusNamespace struct {
			ID        gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Name      string          "json:\"name\" graphql:\"name\""
			Private   bool            "json:\"private\" graphql:\"private\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
			Owner     struct {
				ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
			} "json:\"owner\" graphql:\"owner\""
		} "json:\"statusNamespace\" graphql:\"statusNamespace\""
	} "json:\"statusNamespaceUpdate\" graphql:\"statusNamespaceUpdate\""
}

type StatusNamespaceUpdatePayload

type StatusNamespaceUpdatePayload struct {
	// The updated status namespace.
	StatusNamespace StatusNamespace `json:"statusNamespace"`
}

Return response from statusNamespaceUpdate

type StatusNamespaceWhereInput

type StatusNamespaceWhereInput struct {
	Not *StatusNamespaceWhereInput   `json:"not,omitempty"`
	And []*StatusNamespaceWhereInput `json:"and,omitempty"`
	Or  []*StatusNamespaceWhereInput `json:"or,omitempty"`
	// id field predicates
	ID      *gidx.PrefixedID  `json:"id,omitempty"`
	IDNeq   *gidx.PrefixedID  `json:"idNEQ,omitempty"`
	IDIn    []gidx.PrefixedID `json:"idIn,omitempty"`
	IDNotIn []gidx.PrefixedID `json:"idNotIn,omitempty"`
	IDGt    *gidx.PrefixedID  `json:"idGT,omitempty"`
	IDGte   *gidx.PrefixedID  `json:"idGTE,omitempty"`
	IDLt    *gidx.PrefixedID  `json:"idLT,omitempty"`
	IDLte   *gidx.PrefixedID  `json:"idLTE,omitempty"`
	// created_at field predicates
	CreatedAt      *time.Time   `json:"createdAt,omitempty"`
	CreatedAtNeq   *time.Time   `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []*time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGt    *time.Time   `json:"createdAtGT,omitempty"`
	CreatedAtGte   *time.Time   `json:"createdAtGTE,omitempty"`
	CreatedAtLt    *time.Time   `json:"createdAtLT,omitempty"`
	CreatedAtLte   *time.Time   `json:"createdAtLTE,omitempty"`
	// updated_at field predicates
	UpdatedAt      *time.Time   `json:"updatedAt,omitempty"`
	UpdatedAtNeq   *time.Time   `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []*time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGt    *time.Time   `json:"updatedAtGT,omitempty"`
	UpdatedAtGte   *time.Time   `json:"updatedAtGTE,omitempty"`
	UpdatedAtLt    *time.Time   `json:"updatedAtLT,omitempty"`
	UpdatedAtLte   *time.Time   `json:"updatedAtLTE,omitempty"`
	// name field predicates
	Name             *string  `json:"name,omitempty"`
	NameNeq          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGt           *string  `json:"nameGT,omitempty"`
	NameGte          *string  `json:"nameGTE,omitempty"`
	NameLt           *string  `json:"nameLT,omitempty"`
	NameLte          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`
}

StatusNamespaceWhereInput is used for filtering StatusNamespace objects. Input was generated by ent.

type StatusOrder

type StatusOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field by which to order StatusSlice.
	Field StatusOrderField `json:"field"`
}

Ordering options for Status connections

type StatusOrderField

type StatusOrderField string

Properties by which Status connections can be ordered.

const (
	StatusOrderFieldCreatedAt StatusOrderField = "CREATED_AT"
	StatusOrderFieldUpdatedAt StatusOrderField = "UPDATED_AT"
)

func (StatusOrderField) IsValid

func (e StatusOrderField) IsValid() bool

func (StatusOrderField) MarshalGQL

func (e StatusOrderField) MarshalGQL(w io.Writer)

func (StatusOrderField) String

func (e StatusOrderField) String() string

func (*StatusOrderField) UnmarshalGQL

func (e *StatusOrderField) UnmarshalGQL(v interface{}) error

type StatusOwner

type StatusOwner struct {
	ID               gidx.PrefixedID           `json:"id"`
	StatusNamespaces StatusNamespaceConnection `json:"statusNamespaces"`
	// Metadata about this node, including annotations and statuses.
	Metadata *Metadata `json:"metadata,omitempty"`
}

func (StatusOwner) IsEntity

func (StatusOwner) IsEntity()

type StatusUpdate

type StatusUpdate struct {
	StatusUpdate struct {
		Status struct {
			ID       gidx.PrefixedID "json:\"id\" graphql:\"id\""
			Metadata struct {
				ID   gidx.PrefixedID "json:\"id\" graphql:\"id\""
				Node struct {
					ID gidx.PrefixedID "json:\"id\" graphql:\"id\""
				} "json:\"node\" graphql:\"node\""
			} "json:\"metadata\" graphql:\"metadata\""
			Namespace struct {
				ID      gidx.PrefixedID "json:\"id\" graphql:\"id\""
				Name    string          "json:\"name\" graphql:\"name\""
				Private bool            "json:\"private\" graphql:\"private\""
			} "json:\"namespace\" graphql:\"namespace\""
			Source    string          "json:\"source\" graphql:\"source\""
			Data      json.RawMessage "json:\"data\" graphql:\"data\""
			CreatedAt time.Time       "json:\"createdAt\" graphql:\"createdAt\""
			UpdatedAt time.Time       "json:\"updatedAt\" graphql:\"updatedAt\""
		} "json:\"status\" graphql:\"status\""
	} "json:\"statusUpdate\" graphql:\"statusUpdate\""
}

type StatusUpdateInput

type StatusUpdateInput struct {
	// The node ID for this status.
	NodeID gidx.PrefixedID `json:"nodeID"`
	// The namespace ID for this status.
	NamespaceID gidx.PrefixedID `json:"namespaceID"`
	// The source for this status.
	Source string `json:"source"`
	// The data to save in this status.
	Data json.RawMessage `json:"data"`
}

Input information to update an status.

type StatusUpdateResponse

type StatusUpdateResponse struct {
	// The set status.
	Status Status `json:"status"`
}

Return response from statusUpdate

type StatusWhereInput

type StatusWhereInput struct {
	Not *StatusWhereInput   `json:"not,omitempty"`
	And []*StatusWhereInput `json:"and,omitempty"`
	Or  []*StatusWhereInput `json:"or,omitempty"`
	// id field predicates
	ID      *gidx.PrefixedID  `json:"id,omitempty"`
	IDNeq   *gidx.PrefixedID  `json:"idNEQ,omitempty"`
	IDIn    []gidx.PrefixedID `json:"idIn,omitempty"`
	IDNotIn []gidx.PrefixedID `json:"idNotIn,omitempty"`
	IDGt    *gidx.PrefixedID  `json:"idGT,omitempty"`
	IDGte   *gidx.PrefixedID  `json:"idGTE,omitempty"`
	IDLt    *gidx.PrefixedID  `json:"idLT,omitempty"`
	IDLte   *gidx.PrefixedID  `json:"idLTE,omitempty"`
	// created_at field predicates
	CreatedAt      *time.Time   `json:"createdAt,omitempty"`
	CreatedAtNeq   *time.Time   `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []*time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGt    *time.Time   `json:"createdAtGT,omitempty"`
	CreatedAtGte   *time.Time   `json:"createdAtGTE,omitempty"`
	CreatedAtLt    *time.Time   `json:"createdAtLT,omitempty"`
	CreatedAtLte   *time.Time   `json:"createdAtLTE,omitempty"`
	// updated_at field predicates
	UpdatedAt      *time.Time   `json:"updatedAt,omitempty"`
	UpdatedAtNeq   *time.Time   `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []*time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGt    *time.Time   `json:"updatedAtGT,omitempty"`
	UpdatedAtGte   *time.Time   `json:"updatedAtGTE,omitempty"`
	UpdatedAtLt    *time.Time   `json:"updatedAtLT,omitempty"`
	UpdatedAtLte   *time.Time   `json:"updatedAtLTE,omitempty"`
	// source field predicates
	Source             *string  `json:"source,omitempty"`
	SourceNeq          *string  `json:"sourceNEQ,omitempty"`
	SourceIn           []string `json:"sourceIn,omitempty"`
	SourceNotIn        []string `json:"sourceNotIn,omitempty"`
	SourceGt           *string  `json:"sourceGT,omitempty"`
	SourceGte          *string  `json:"sourceGTE,omitempty"`
	SourceLt           *string  `json:"sourceLT,omitempty"`
	SourceLte          *string  `json:"sourceLTE,omitempty"`
	SourceContains     *string  `json:"sourceContains,omitempty"`
	SourceHasPrefix    *string  `json:"sourceHasPrefix,omitempty"`
	SourceHasSuffix    *string  `json:"sourceHasSuffix,omitempty"`
	SourceEqualFold    *string  `json:"sourceEqualFold,omitempty"`
	SourceContainsFold *string  `json:"sourceContainsFold,omitempty"`
	// namespace edge predicates
	HasNamespace     *bool                        `json:"hasNamespace,omitempty"`
	HasNamespaceWith []*StatusNamespaceWhereInput `json:"hasNamespaceWith,omitempty"`
	// metadata edge predicates
	HasMetadata     *bool                 `json:"hasMetadata,omitempty"`
	HasMetadataWith []*MetadataWhereInput `json:"hasMetadataWith,omitempty"`
}

StatusWhereInput is used for filtering Status objects. Input was generated by ent.

type TestClient

type TestClient interface {
	AnnotationDelete(ctx context.Context, input AnnotationDeleteInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationDelete, error)
	AnnotationNamespaceCreate(ctx context.Context, input CreateAnnotationNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceCreate, error)
	AnnotationNamespaceDelete(ctx context.Context, id gidx.PrefixedID, force bool, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceDelete, error)
	AnnotationNamespaceUpdate(ctx context.Context, id gidx.PrefixedID, input UpdateAnnotationNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationNamespaceUpdate, error)
	AnnotationUpdate(ctx context.Context, input AnnotationUpdateInput, httpRequestOptions ...client.HTTPRequestOption) (*AnnotationUpdate, error)
	GetAnnotationNamespace(ctx context.Context, annotationNamespaceID gidx.PrefixedID, httpRequestOptions ...client.HTTPRequestOption) (*GetAnnotationNamespace, error)
	GetNodeMetadata(ctx context.Context, id gidx.PrefixedID, httpRequestOptions ...client.HTTPRequestOption) (*GetNodeMetadata, error)
	GetResourceOwnerAnnotationNamespaces(ctx context.Context, id gidx.PrefixedID, orderBy *AnnotationNamespaceOrder, httpRequestOptions ...client.HTTPRequestOption) (*GetResourceOwnerAnnotationNamespaces, error)
	GetResourceProviderStatusNamespaces(ctx context.Context, id gidx.PrefixedID, orderBy *StatusNamespaceOrder, httpRequestOptions ...client.HTTPRequestOption) (*GetResourceProviderStatusNamespaces, error)
	StatusDelete(ctx context.Context, input StatusDeleteInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusDelete, error)
	StatusNamespaceCreate(ctx context.Context, input CreateStatusNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceCreate, error)
	StatusNamespaceDelete(ctx context.Context, id gidx.PrefixedID, force bool, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceDelete, error)
	StatusNamespaceUpdate(ctx context.Context, id gidx.PrefixedID, input UpdateStatusNamespaceInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusNamespaceUpdate, error)
	StatusUpdate(ctx context.Context, input StatusUpdateInput, httpRequestOptions ...client.HTTPRequestOption) (*StatusUpdate, error)
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOption) TestClient

type UpdateAnnotationNamespaceInput

type UpdateAnnotationNamespaceInput struct {
	// The name of the annotation namespace.
	Name *string `json:"name,omitempty"`
	// Flag for if this namespace is private.
	Private *bool `json:"private,omitempty"`
}

Input information to update an annotation namespace.

type UpdateStatusInput

type UpdateStatusInput struct {
	// JSON formatted data of this annotation.
	Data       json.RawMessage `json:"data,omitempty"`
	AppendData json.RawMessage `json:"appendData,omitempty"`
}

Input information to update a status namespace.

type UpdateStatusNamespaceInput

type UpdateStatusNamespaceInput struct {
	// The name of the status namespace.
	Name *string `json:"name,omitempty"`
	// Flag for if this namespace is private.
	Private *bool `json:"private,omitempty"`
}

Input information to update a status namespace.

Jump to

Keyboard shortcuts

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