types

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasRequest

type AliasRequest struct {
	Kind  string      `json:"type" validate:"required,isAliasKind" example:"string"`
	Value interface{} `json:"value" validate:"required" example:"my-alias" swaggertype:"string"`
}

AliasRequest creates or modifies an alias value.

type AliasResponse

type AliasResponse struct {
	Key       string      `json:"key" example:"my-alias"`
	Kind      string      `json:"type" example:"string"`
	Value     interface{} `json:"value" example:"my-alias-value" swaggertype:"string"`
	Registry  string      `json:"registry" example:"my-registry"`
	CreatedAt time.Time   `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"`
	UpdatedAt time.Time   `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"`
}

AliasResponse returns the alias value.

func NewAliasResponse

func NewAliasResponse(alias *entities.Alias) *AliasResponse

type CreateRegistryRequest

type CreateRegistryRequest struct {
	AllowedTenants []string `json:"allowedTenants,omitempty" example:"tenant1,tenant2"`
}

type RegistryResponse

type RegistryResponse struct {
	Name           string          `json:"name" example:"my-alias-registry"`
	Aliases        []AliasResponse `json:"aliases"`
	AllowedTenants []string        `json:"allowedTenants" example:"tenant1,tenant2"`
	CreatedAt      time.Time       `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"`
	UpdatedAt      time.Time       `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"`
}

func NewRegistryResponse

func NewRegistryResponse(registry *entities.AliasRegistry) *RegistryResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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