model

package
v0.0.0-...-60373ff Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MarshalInt64

func MarshalInt64(val int64) graphql.Marshaler

Int64 scalar

func MarshalMetaV1Time

func MarshalMetaV1Time(t metav1.Time) graphql.Marshaler

MetaV1Time scalar

func MarshalStringMap

func MarshalStringMap(val map[string]string) graphql.Marshaler

StringMap scalar

func TimestampPBTimestamp

func TimestampPBTimestamp(ts *timestamppb.Timestamp) graphql.Marshaler

TimestampPBTimestamp scalar

func UnmarshalInt64

func UnmarshalInt64(v interface{}) (int64, error)

func UnmarshalMetaV1Time

func UnmarshalMetaV1Time(v interface{}) (metav1.Time, error)

func UnmarshalStringMap

func UnmarshalStringMap(v interface{}) (map[string]string, error)

func UnmarshalTimestampPBTimestamp

func UnmarshalTimestampPBTimestamp(v interface{}) (*timestamppb.Timestamp, error)

Types

type HealthCheckResponse

type HealthCheckResponse struct {
	Status    HealthCheckStatus `json:"status"`
	Message   *string           `json:"message,omitempty"`
	Timestamp time.Time         `json:"timestamp"`
}

type HealthCheckStatus

type HealthCheckStatus string
const (
	HealthCheckStatusSuccess HealthCheckStatus = "SUCCESS"
	HealthCheckStatusFailure HealthCheckStatus = "FAILURE"
)

func (HealthCheckStatus) IsValid

func (e HealthCheckStatus) IsValid() bool

func (HealthCheckStatus) MarshalGQL

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

func (HealthCheckStatus) String

func (e HealthCheckStatus) String() string

func (*HealthCheckStatus) UnmarshalGQL

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

type List

type List interface{}

type LogRecord

type LogRecord struct {
	Timestamp time.Time `json:"timestamp"`
	Message   string    `json:"message"`
}

type Object

type Object interface{}

type PageInfo

type PageInfo struct {
	// When paginating forwards, the cursor to continue.
	EndCursor *string `json:"endCursor,omitempty"`
	// 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"`
}

type PodLogQueryResponse

type PodLogQueryResponse struct {
	Results  []LogRecord `json:"results"`
	PageInfo PageInfo    `json:"pageInfo"`
}

type Query

type Query struct {
}

type Subscription

type Subscription struct {
}

Jump to

Keyboard shortcuts

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