models

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Message

type Message struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

Message message swagger:model Message

func (*Message) MarshalBinary

func (m *Message) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Message) UnmarshalBinary

func (m *Message) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Message) Validate

func (m *Message) Validate(formats strfmt.Registry) error

Validate validates this message

type Policy added in v0.1.13

type Policy struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// rules
	// Required: true
	Rules []*Rule `json:"rules"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`
}

Policy policy swagger:model Policy

func (*Policy) MarshalBinary added in v0.1.13

func (m *Policy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Policy) UnmarshalBinary added in v0.1.13

func (m *Policy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Policy) Validate added in v0.1.13

func (m *Policy) Validate(formats strfmt.Registry) error

Validate validates this policy

type Redirect

type Redirect struct {

	// location
	// Required: true
	Location *string `json:"location"`
}

Redirect redirect swagger:model Redirect

func (*Redirect) MarshalBinary

func (m *Redirect) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Redirect) UnmarshalBinary

func (m *Redirect) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Redirect) Validate

func (m *Redirect) Validate(formats strfmt.Registry) error

Validate validates this redirect

type Rule added in v0.1.13

type Rule struct {

	// actions
	// Required: true
	Actions []string `json:"actions"`

	// resources
	// Required: true
	Resources []string `json:"resources"`

	// subjects
	// Required: true
	Subjects []string `json:"subjects"`
}

Rule rule swagger:model Rule

func (*Rule) MarshalBinary added in v0.1.13

func (m *Rule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary added in v0.1.13

func (m *Rule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rule) Validate added in v0.1.13

func (m *Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

type ServiceAccount added in v0.1.13

type ServiceAccount struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// domain
	// Pattern: ^[\w\d\-\.]+$
	Domain string `json:"domain,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-\.]+$
	Name *string `json:"name"`

	// public key
	// Required: true
	PublicKey *string `json:"publicKey"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`
}

ServiceAccount service account swagger:model ServiceAccount

func (*ServiceAccount) MarshalBinary added in v0.1.13

func (m *ServiceAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccount) UnmarshalBinary added in v0.1.13

func (m *ServiceAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccount) Validate added in v0.1.13

func (m *ServiceAccount) Validate(formats strfmt.Registry) error

Validate validates this service account

type Status added in v0.1.13

type Status string

Status status swagger:model Status

const (

	// StatusCREATING captures enum value "CREATING"
	StatusCREATING Status = "CREATING"

	// StatusREADY captures enum value "READY"
	StatusREADY Status = "READY"

	// StatusUPDATING captures enum value "UPDATING"
	StatusUPDATING Status = "UPDATING"

	// StatusDELETING captures enum value "DELETING"
	StatusDELETING Status = "DELETING"

	// StatusERROR captures enum value "ERROR"
	StatusERROR Status = "ERROR"
)

func (Status) Validate added in v0.1.13

func (m Status) Validate(formats strfmt.Registry) error

Validate validates this status

Jump to

Keyboard shortcuts

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