models

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateUserRequest

type AuthenticateUserRequest struct {

	// Password
	// Required: true
	Password *string `json:"Password"`

	// Username
	// Required: true
	Username *string `json:"Username"`
}

AuthenticateUserRequest authenticate user request swagger:model AuthenticateUserRequest

func (*AuthenticateUserRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthenticateUserRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthenticateUserRequest) Validate

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

Validate validates this authenticate user request

type AuthenticateUserResponse

type AuthenticateUserResponse struct {

	// JWT token used to authenticate against the API
	Jwt string `json:"jwt,omitempty"`
}

AuthenticateUserResponse authenticate user response swagger:model AuthenticateUserResponse

func (*AuthenticateUserResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthenticateUserResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthenticateUserResponse) Validate

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

Validate validates this authenticate user response

type AzureCredentials

type AzureCredentials struct {

	// Azure application ID
	ApplicationID string `json:"ApplicationID,omitempty"`

	// Azure authentication key
	AuthenticationKey string `json:"AuthenticationKey,omitempty"`

	// Azure tenant ID
	TenantID string `json:"TenantID,omitempty"`
}

AzureCredentials azure credentials swagger:model AzureCredentials

func (*AzureCredentials) MarshalBinary

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

MarshalBinary interface implementation

func (*AzureCredentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AzureCredentials) Validate

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

Validate validates this azure credentials

type DockerHub

type DockerHub struct {

	// Is authentication against DockerHub enabled
	Authentication bool `json:"Authentication,omitempty"`

	// Password used to authenticate against the DockerHub
	Password string `json:"Password,omitempty"`

	// Username used to authenticate against the DockerHub
	Username string `json:"Username,omitempty"`
}

DockerHub docker hub swagger:model DockerHub

func (*DockerHub) MarshalBinary

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

MarshalBinary interface implementation

func (*DockerHub) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DockerHub) Validate

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

Validate validates this docker hub

type DockerHubSubset

type DockerHubSubset struct {

	// Is authentication against DockerHub enabled
	Authentication bool `json:"Authentication,omitempty"`

	// Username used to authenticate against the DockerHub
	Username string `json:"Username,omitempty"`
}

DockerHubSubset docker hub subset swagger:model DockerHubSubset

func (*DockerHubSubset) MarshalBinary

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

MarshalBinary interface implementation

func (*DockerHubSubset) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DockerHubSubset) Validate

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

Validate validates this docker hub subset

type DockerHubUpdateRequest

type DockerHubUpdateRequest struct {

	// Enable authentication against DockerHub
	// Required: true
	Authentication *bool `json:"Authentication"`

	// Password used to authenticate against the DockerHub
	// Required: true
	Password *string `json:"Password"`

	// Username used to authenticate against the DockerHub
	// Required: true
	Username *string `json:"Username"`
}

DockerHubUpdateRequest docker hub update request swagger:model DockerHubUpdateRequest

func (*DockerHubUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*DockerHubUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DockerHubUpdateRequest) Validate

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

Validate validates this docker hub update request

type Endpoint

type Endpoint struct {

	// List of team identifiers authorized to connect to this endpoint
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to connect to this endpoint
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`

	// azure credentials
	AzureCredentials *AzureCredentials `json:"AzureCredentials,omitempty"`

	// Endpoint group identifier
	GroupID int64 `json:"GroupID,omitempty"`

	// Endpoint identifier
	ID int64 `json:"Id,omitempty"`

	// Endpoint name
	Name string `json:"Name,omitempty"`

	// URL or IP address where exposed containers will be reachable
	PublicURL string `json:"PublicURL,omitempty"`

	// TLS config
	TLSConfig *TLSConfiguration `json:"TLSConfig,omitempty"`

	// Endpoint environment type. 1 for a Docker environment, 2 for an agent on Docker environment or 3 for an Azure environment.
	Type int64 `json:"Type,omitempty"`

	// URL or IP address of the Docker host associated to this endpoint
	URL string `json:"URL,omitempty"`
}

Endpoint endpoint swagger:model Endpoint

func (*Endpoint) MarshalBinary

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

MarshalBinary interface implementation

func (*Endpoint) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Endpoint) Validate

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

Validate validates this endpoint

type EndpointAccessUpdateRequest

type EndpointAccessUpdateRequest struct {

	// List of team identifiers authorized to connect to this endpoint
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to connect to this endpoint
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`
}

EndpointAccessUpdateRequest endpoint access update request swagger:model EndpointAccessUpdateRequest

func (*EndpointAccessUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointAccessUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointAccessUpdateRequest) Validate

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

Validate validates this endpoint access update request

type EndpointGroup

type EndpointGroup struct {

	// List of team identifiers authorized to connect to this endpoint. Will be inherited by endpoints that are part of the group
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to connect to this endpoint group. Will be inherited by endpoints that are part of the group
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`

	// Endpoint group description
	Description string `json:"Description,omitempty"`

	// Endpoint group identifier
	ID int64 `json:"Id,omitempty"`

	// labels
	Labels []*Pair `json:"Labels"`

	// Endpoint group name
	Name string `json:"Name,omitempty"`
}

EndpointGroup endpoint group swagger:model EndpointGroup

func (*EndpointGroup) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointGroup) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointGroup) Validate

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

Validate validates this endpoint group

type EndpointGroupAccessUpdateRequest

type EndpointGroupAccessUpdateRequest struct {

	// List of team identifiers authorized to connect to this endpoint
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to connect to this endpoint
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`
}

EndpointGroupAccessUpdateRequest endpoint group access update request swagger:model EndpointGroupAccessUpdateRequest

func (*EndpointGroupAccessUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointGroupAccessUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointGroupAccessUpdateRequest) Validate

Validate validates this endpoint group access update request

type EndpointGroupCreateRequest

type EndpointGroupCreateRequest struct {

	// List of endpoint identifiers that will be part of this group
	AssociatedEndpoints []int64 `json:"AssociatedEndpoints"`

	// Endpoint group description
	Description string `json:"Description,omitempty"`

	// labels
	Labels []*Pair `json:"Labels"`

	// Endpoint group name
	// Required: true
	Name *string `json:"Name"`
}

EndpointGroupCreateRequest endpoint group create request swagger:model EndpointGroupCreateRequest

func (*EndpointGroupCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointGroupCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointGroupCreateRequest) Validate

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

Validate validates this endpoint group create request

type EndpointGroupListResponse

type EndpointGroupListResponse []*EndpointGroup

EndpointGroupListResponse endpoint group list response swagger:model EndpointGroupListResponse

func (EndpointGroupListResponse) Validate

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

Validate validates this endpoint group list response

type EndpointGroupUpdateRequest

type EndpointGroupUpdateRequest struct {

	// List of endpoint identifiers that will be part of this group
	AssociatedEndpoints []int64 `json:"AssociatedEndpoints"`

	// Endpoint group description
	Description string `json:"Description,omitempty"`

	// labels
	Labels []*Pair `json:"Labels"`

	// Endpoint group name
	Name string `json:"Name,omitempty"`
}

EndpointGroupUpdateRequest endpoint group update request swagger:model EndpointGroupUpdateRequest

func (*EndpointGroupUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointGroupUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointGroupUpdateRequest) Validate

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

Validate validates this endpoint group update request

type EndpointJobRequest

type EndpointJobRequest struct {

	// Content of the job script
	// Required: true
	FileContent *string `json:"FileContent"`

	// Container image which will be used to execute the job
	// Required: true
	Image *string `json:"Image"`
}

EndpointJobRequest endpoint job request swagger:model EndpointJobRequest

func (*EndpointJobRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointJobRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointJobRequest) Validate

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

Validate validates this endpoint job request

type EndpointListResponse

type EndpointListResponse []*EndpointSubset

EndpointListResponse endpoint list response swagger:model EndpointListResponse

func (EndpointListResponse) Validate

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

Validate validates this endpoint list response

type EndpointSubset

type EndpointSubset struct {

	// List of team identifiers authorized to connect to this endpoint
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to connect to this endpoint
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`

	// Endpoint group identifier
	GroupID int64 `json:"GroupID,omitempty"`

	// Endpoint identifier
	ID int64 `json:"Id,omitempty"`

	// Endpoint name
	Name string `json:"Name,omitempty"`

	// URL or IP address where exposed containers will be reachable
	PublicURL string `json:"PublicURL,omitempty"`

	// TLS config
	TLSConfig *TLSConfiguration `json:"TLSConfig,omitempty"`

	// Endpoint environment type. 1 for a Docker environment, 2 for an agent on Docker environment, 3 for an Azure environment.
	Type int64 `json:"Type,omitempty"`

	// URL or IP address of the Docker host associated to this endpoint
	URL string `json:"URL,omitempty"`
}

EndpointSubset endpoint subset swagger:model EndpointSubset

func (*EndpointSubset) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointSubset) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointSubset) Validate

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

Validate validates this endpoint subset

type EndpointUpdateRequest

type EndpointUpdateRequest struct {

	// Azure application ID
	ApplicationID string `json:"ApplicationID,omitempty"`

	// Azure authentication key
	AuthenticationKey string `json:"AuthenticationKey,omitempty"`

	// Group identifier
	GroupID int64 `json:"GroupID,omitempty"`

	// Name that will be used to identify this endpoint
	Name string `json:"Name,omitempty"`

	// URL or IP address where exposed containers will be reachable. Defaults to URL if not specified
	PublicURL string `json:"PublicURL,omitempty"`

	// Require TLS to connect against this endpoint
	TLS bool `json:"TLS,omitempty"`

	// Skip client verification when using TLS
	TLSSkipClientVerify bool `json:"TLSSkipClientVerify,omitempty"`

	// Skip server verification when using TLS
	TLSSkipVerify bool `json:"TLSSkipVerify,omitempty"`

	// Azure tenant ID
	TenantID string `json:"TenantID,omitempty"`

	// URL or IP address of a Docker host
	URL string `json:"URL,omitempty"`
}

EndpointUpdateRequest endpoint update request swagger:model EndpointUpdateRequest

func (*EndpointUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointUpdateRequest) Validate

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

Validate validates this endpoint update request

type GenericError

type GenericError struct {

	// Error message
	Err string `json:"err,omitempty"`
}

GenericError generic error swagger:model GenericError

func (*GenericError) MarshalBinary

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

MarshalBinary interface implementation

func (*GenericError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenericError) Validate

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

Validate validates this generic error

type LDAPGroupSearchSettings

type LDAPGroupSearchSettings struct {

	// LDAP attribute which denotes the group membership.
	GroupAttribute string `json:"GroupAttribute,omitempty"`

	// The distinguished name of the element from which the LDAP server will search for groups.
	GroupBaseDN string `json:"GroupBaseDN,omitempty"`

	// The LDAP search filter used to select group elements, optional.
	GroupFilter string `json:"GroupFilter,omitempty"`
}

LDAPGroupSearchSettings l d a p group search settings swagger:model LDAPGroupSearchSettings

func (*LDAPGroupSearchSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*LDAPGroupSearchSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LDAPGroupSearchSettings) Validate

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

Validate validates this l d a p group search settings

type LDAPSearchSettings

type LDAPSearchSettings struct {

	// The distinguished name of the element from which the LDAP server will search for users
	BaseDN string `json:"BaseDN,omitempty"`

	// Optional LDAP search filter used to select user elements
	Filter string `json:"Filter,omitempty"`

	// LDAP attribute which denotes the username
	UserNameAttribute string `json:"UserNameAttribute,omitempty"`
}

LDAPSearchSettings l d a p search settings swagger:model LDAPSearchSettings

func (*LDAPSearchSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*LDAPSearchSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LDAPSearchSettings) Validate

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

Validate validates this l d a p search settings

type LDAPSettings

type LDAPSettings struct {

	// Automatically provision users and assign them to matching LDAP group names
	AutoCreateUsers bool `json:"AutoCreateUsers,omitempty"`

	// group search settings
	GroupSearchSettings []*LDAPGroupSearchSettings `json:"GroupSearchSettings"`

	// Password of the account that will be used to search users
	Password string `json:"Password,omitempty"`

	// Account that will be used to search for users
	ReaderDN string `json:"ReaderDN,omitempty"`

	// search settings
	SearchSettings []*LDAPSearchSettings `json:"SearchSettings"`

	// Whether LDAP connection should use StartTLS
	StartTLS bool `json:"StartTLS,omitempty"`

	// TLS config
	TLSConfig *TLSConfiguration `json:"TLSConfig,omitempty"`

	// URL or IP address of the LDAP server
	URL string `json:"URL,omitempty"`
}

LDAPSettings l d a p settings swagger:model LDAPSettings

func (*LDAPSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*LDAPSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LDAPSettings) Validate

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

Validate validates this l d a p settings

type Pair

type Pair struct {

	// name
	Name string `json:"name,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

Pair pair swagger:model Pair

func (*Pair) MarshalBinary

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

MarshalBinary interface implementation

func (*Pair) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Pair) Validate

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

Validate validates this pair

type PublicSettingsInspectResponse

type PublicSettingsInspectResponse struct {

	// Whether non-administrator should be able to use bind mounts when creating containers
	AllowBindMountsForRegularUsers bool `json:"AllowBindMountsForRegularUsers,omitempty"`

	// Whether non-administrator should be able to use privileged mode when creating containers
	AllowPrivilegedModeForRegularUsers bool `json:"AllowPrivilegedModeForRegularUsers,omitempty"`

	// Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP.
	AuthenticationMethod int64 `json:"AuthenticationMethod,omitempty"`

	// Whether to display or not external templates contributions as sub-menus in the UI.
	DisplayExternalContributors bool `json:"DisplayExternalContributors,omitempty"`

	// URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string
	LogoURL string `json:"LogoURL,omitempty"`
}

PublicSettingsInspectResponse public settings inspect response swagger:model PublicSettingsInspectResponse

func (*PublicSettingsInspectResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PublicSettingsInspectResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicSettingsInspectResponse) Validate

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

Validate validates this public settings inspect response

type Registry

type Registry struct {

	// Is authentication against this registry enabled
	Authentication bool `json:"Authentication,omitempty"`

	// List of team identifiers authorized to use this registry
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to use this registry
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`

	// Registry identifier
	ID int64 `json:"Id,omitempty"`

	// Registry name
	Name string `json:"Name,omitempty"`

	// Password used to authenticate against this registry
	Password string `json:"Password,omitempty"`

	// URL or IP address of the Docker registry
	URL string `json:"URL,omitempty"`

	// Username used to authenticate against this registry
	Username string `json:"Username,omitempty"`
}

Registry registry swagger:model Registry

func (*Registry) MarshalBinary

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

MarshalBinary interface implementation

func (*Registry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Registry) Validate

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

Validate validates this registry

type RegistryAccessUpdateRequest

type RegistryAccessUpdateRequest struct {

	// List of team identifiers authorized to use thi registry
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to use thi registry
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`
}

RegistryAccessUpdateRequest registry access update request swagger:model RegistryAccessUpdateRequest

func (*RegistryAccessUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryAccessUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryAccessUpdateRequest) Validate

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

Validate validates this registry access update request

type RegistryCreateRequest

type RegistryCreateRequest struct {

	// Is authentication against this registry enabled
	// Required: true
	Authentication *bool `json:"Authentication"`

	// Name that will be used to identify this registry
	// Required: true
	Name *string `json:"Name"`

	// Password used to authenticate against this registry
	// Required: true
	Password *string `json:"Password"`

	// Registry Type. Valid values are: 1 (Quay.io), 2 (Azure container registry) or 3 (custom registry)
	// Required: true
	Type *int64 `json:"Type"`

	// URL or IP address of the Docker registry
	// Required: true
	URL *string `json:"URL"`

	// Username used to authenticate against this registry
	// Required: true
	Username *string `json:"Username"`
}

RegistryCreateRequest registry create request swagger:model RegistryCreateRequest

func (*RegistryCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryCreateRequest) Validate

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

Validate validates this registry create request

type RegistryListResponse

type RegistryListResponse []*RegistrySubset

RegistryListResponse registry list response swagger:model RegistryListResponse

func (RegistryListResponse) Validate

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

Validate validates this registry list response

type RegistrySubset

type RegistrySubset struct {

	// Is authentication against this registry enabled
	Authentication bool `json:"Authentication,omitempty"`

	// List of team identifiers authorized to use this registry
	AuthorizedTeams []int64 `json:"AuthorizedTeams"`

	// List of user identifiers authorized to use this registry
	AuthorizedUsers []int64 `json:"AuthorizedUsers"`

	// Registry identifier
	ID int64 `json:"Id,omitempty"`

	// Registry name
	Name string `json:"Name,omitempty"`

	// URL or IP address of the Docker registry
	URL string `json:"URL,omitempty"`

	// Username used to authenticate against this registry
	Username string `json:"Username,omitempty"`
}

RegistrySubset registry subset swagger:model RegistrySubset

func (*RegistrySubset) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistrySubset) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistrySubset) Validate

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

Validate validates this registry subset

type RegistryUpdateRequest

type RegistryUpdateRequest struct {

	// Is authentication against this registry enabled
	Authentication bool `json:"Authentication,omitempty"`

	// Name that will be used to identify this registry
	// Required: true
	Name *string `json:"Name"`

	// Password used to authenticate against this registry
	Password string `json:"Password,omitempty"`

	// URL or IP address of the Docker registry
	// Required: true
	URL *string `json:"URL"`

	// Username used to authenticate against this registry
	Username string `json:"Username,omitempty"`
}

RegistryUpdateRequest registry update request swagger:model RegistryUpdateRequest

func (*RegistryUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryUpdateRequest) Validate

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

Validate validates this registry update request

type ResourceControl

type ResourceControl struct {

	// Permit access to the associated resource to any user
	Public bool `json:"Public,omitempty"`

	// Docker resource identifier on which access control will be applied. In the case of a resource control applied to a stack, use the stack name as identifier
	ResourceID string `json:"ResourceID,omitempty"`

	// List of Docker resources that will inherit this access control
	SubResourceIds []string `json:"SubResourceIDs"`

	// List of team identifiers with access to the associated resource
	Teams []int64 `json:"Teams"`

	// Type of Docker resource. Valid values are: container, volume service, secret, config or stack
	Type string `json:"Type,omitempty"`

	// List of user identifiers with access to the associated resource
	Users []int64 `json:"Users"`
}

ResourceControl resource control swagger:model ResourceControl

func (*ResourceControl) MarshalBinary

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

MarshalBinary interface implementation

func (*ResourceControl) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResourceControl) Validate

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

Validate validates this resource control

type ResourceControlCreateRequest

type ResourceControlCreateRequest struct {

	// Permit access to the associated resource to any user
	Public bool `json:"Public,omitempty"`

	// Docker resource identifier on which access control will be applied. In the case of a resource control applied to a stack, use the stack name as identifier
	// Required: true
	ResourceID *string `json:"ResourceID"`

	// List of Docker resources that will inherit this access control
	SubResourceIds []string `json:"SubResourceIDs"`

	// List of team identifiers with access to the associated resource
	Teams []int64 `json:"Teams"`

	// Type of Docker resource. Valid values are: container, volume service, secret, config or stack
	// Required: true
	Type *string `json:"Type"`

	// List of user identifiers with access to the associated resource
	Users []int64 `json:"Users"`
}

ResourceControlCreateRequest resource control create request swagger:model ResourceControlCreateRequest

func (*ResourceControlCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*ResourceControlCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResourceControlCreateRequest) Validate

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

Validate validates this resource control create request

type ResourceControlUpdateRequest

type ResourceControlUpdateRequest struct {

	// Permit access to the associated resource to any user
	Public bool `json:"Public,omitempty"`

	// List of team identifiers with access to the associated resource
	Teams []int64 `json:"Teams"`

	// List of user identifiers with access to the associated resource
	Users []int64 `json:"Users"`
}

ResourceControlUpdateRequest resource control update request swagger:model ResourceControlUpdateRequest

func (*ResourceControlUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*ResourceControlUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResourceControlUpdateRequest) Validate

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

Validate validates this resource control update request

type Settings

type Settings struct {

	// Whether non-administrator should be able to use bind mounts when creating containers
	AllowBindMountsForRegularUsers bool `json:"AllowBindMountsForRegularUsers,omitempty"`

	// Whether non-administrator should be able to use privileged mode when creating containers
	AllowPrivilegedModeForRegularUsers bool `json:"AllowPrivilegedModeForRegularUsers,omitempty"`

	// Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP.
	AuthenticationMethod int64 `json:"AuthenticationMethod,omitempty"`

	// A list of label name & value that will be used to hide containers when querying containers
	BlackListedLabels []*SettingsBlackListedLabels `json:"BlackListedLabels"`

	// Whether to display or not external templates contributions as sub-menus in the UI.
	DisplayExternalContributors bool `json:"DisplayExternalContributors,omitempty"`

	// l d a p settings
	LDAPSettings *LDAPSettings `json:"LDAPSettings,omitempty"`

	// URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string
	LogoURL string `json:"LogoURL,omitempty"`

	// URL to the templates that will be displayed in the UI when navigating to App Templates
	TemplatesURL string `json:"TemplatesURL,omitempty"`
}

Settings settings swagger:model Settings

func (*Settings) MarshalBinary

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

MarshalBinary interface implementation

func (*Settings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Settings) Validate

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

Validate validates this settings

type SettingsBlackListedLabels

type SettingsBlackListedLabels struct {

	// name
	Name string `json:"name,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

SettingsBlackListedLabels settings black listed labels swagger:model Settings_BlackListedLabels

func (*SettingsBlackListedLabels) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingsBlackListedLabels) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingsBlackListedLabels) Validate

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

Validate validates this settings black listed labels

type SettingsLDAPCheckRequest

type SettingsLDAPCheckRequest struct {

	// l d a p settings
	LDAPSettings *LDAPSettings `json:"LDAPSettings,omitempty"`
}

SettingsLDAPCheckRequest settings l d a p check request swagger:model SettingsLDAPCheckRequest

func (*SettingsLDAPCheckRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingsLDAPCheckRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingsLDAPCheckRequest) Validate

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

Validate validates this settings l d a p check request

type SettingsUpdateRequest

type SettingsUpdateRequest struct {

	// Whether non-administrator users should be able to use bind mounts when creating containers
	AllowBindMountsForRegularUsers bool `json:"AllowBindMountsForRegularUsers,omitempty"`

	// Whether non-administrator users should be able to use privileged mode when creating containers
	AllowPrivilegedModeForRegularUsers bool `json:"AllowPrivilegedModeForRegularUsers,omitempty"`

	// Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP.
	// Required: true
	AuthenticationMethod *int64 `json:"AuthenticationMethod"`

	// A list of label name & value that will be used to hide containers when querying containers
	BlackListedLabels []*SettingsBlackListedLabels `json:"BlackListedLabels"`

	// Whether to display or not external templates contributions as sub-menus in the UI.
	DisplayExternalContributors bool `json:"DisplayExternalContributors,omitempty"`

	// l d a p settings
	LDAPSettings *LDAPSettings `json:"LDAPSettings,omitempty"`

	// URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string
	LogoURL string `json:"LogoURL,omitempty"`

	// URL to the templates that will be displayed in the UI when navigating to App Templates
	// Required: true
	TemplatesURL *string `json:"TemplatesURL"`
}

SettingsUpdateRequest settings update request swagger:model SettingsUpdateRequest

func (*SettingsUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingsUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingsUpdateRequest) Validate

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

Validate validates this settings update request

type Stack

type Stack struct {

	// Endpoint identifier. Reference the endpoint that will be used for deployment
	EndpointID int64 `json:"EndpointID,omitempty"`

	// Path to the Stack file
	EntryPoint string `json:"EntryPoint,omitempty"`

	// A list of environment variables used during stack deployment
	Env []*StackEnv `json:"Env"`

	// Stack identifier
	ID int64 `json:"Id,omitempty"`

	// Stack name
	Name string `json:"Name,omitempty"`

	// Path on disk to the repository hosting the Stack file
	ProjectPath string `json:"ProjectPath,omitempty"`

	// Cluster identifier of the Swarm cluster where the stack is deployed
	SwarmID string `json:"SwarmID,omitempty"`

	// Stack type. 1 for a Swarm stack, 2 for a Compose stack
	Type int64 `json:"Type,omitempty"`
}

Stack stack swagger:model Stack

func (*Stack) MarshalBinary

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

MarshalBinary interface implementation

func (*Stack) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stack) Validate

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

Validate validates this stack

type StackCreateRequest

type StackCreateRequest struct {

	// Path to the Stack file inside the Git repository. Will default to 'docker-compose.yml' if not specified.
	ComposeFilePathInRepository string `json:"ComposeFilePathInRepository,omitempty"`

	// A list of environment variables used during stack deployment
	Env []*StackEnv `json:"Env"`

	// Name of the stack
	// Required: true
	Name *string `json:"Name"`

	// Use basic authentication to clone the Git repository.
	RepositoryAuthentication bool `json:"RepositoryAuthentication,omitempty"`

	// Password used in basic authentication. Required when RepositoryAuthentication is true.
	RepositoryPassword string `json:"RepositoryPassword,omitempty"`

	// Reference name of a Git repository hosting the Stack file. Used in 'repository' deployment method.
	RepositoryReferenceName string `json:"RepositoryReferenceName,omitempty"`

	// URL of a Git repository hosting the Stack file. Required when using the 'repository' deployment method.
	RepositoryURL string `json:"RepositoryURL,omitempty"`

	// Username used in basic authentication. Required when RepositoryAuthentication is true.
	RepositoryUsername string `json:"RepositoryUsername,omitempty"`

	// Content of the Stack file. Required when using the 'string' deployment method.
	StackFileContent string `json:"StackFileContent,omitempty"`

	// Swarm cluster identifier. Required when creating a Swarm stack (type 1).
	SwarmID string `json:"SwarmID,omitempty"`
}

StackCreateRequest stack create request swagger:model StackCreateRequest

func (*StackCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*StackCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackCreateRequest) Validate

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

Validate validates this stack create request

type StackEnv

type StackEnv struct {

	// name
	Name string `json:"name,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

StackEnv stack env swagger:model Stack_Env

func (*StackEnv) MarshalBinary

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

MarshalBinary interface implementation

func (*StackEnv) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackEnv) Validate

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

Validate validates this stack env

type StackFileInspectResponse

type StackFileInspectResponse struct {

	// Content of the Stack file.
	StackFileContent string `json:"StackFileContent,omitempty"`
}

StackFileInspectResponse stack file inspect response swagger:model StackFileInspectResponse

func (*StackFileInspectResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StackFileInspectResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackFileInspectResponse) Validate

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

Validate validates this stack file inspect response

type StackListResponse

type StackListResponse []*Stack

StackListResponse stack list response swagger:model StackListResponse

func (StackListResponse) Validate

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

Validate validates this stack list response

type StackMigrateRequest

type StackMigrateRequest struct {

	// Endpoint identifier of the target endpoint where the stack will be relocated
	// Required: true
	EndpointID *int64 `json:"EndpointID"`

	// If provided will rename the migrated stack
	Name string `json:"Name,omitempty"`

	// Swarm cluster identifier, must match the identifier of the cluster where the stack will be relocated
	SwarmID string `json:"SwarmID,omitempty"`
}

StackMigrateRequest stack migrate request swagger:model StackMigrateRequest

func (*StackMigrateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*StackMigrateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackMigrateRequest) Validate

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

Validate validates this stack migrate request

type StackUpdateRequest

type StackUpdateRequest struct {

	// A list of environment variables used during stack deployment
	Env []*StackEnv `json:"Env"`

	// Prune services that are no longer referenced (only available for Swarm stacks)
	Prune bool `json:"Prune,omitempty"`

	// New content of the Stack file.
	StackFileContent string `json:"StackFileContent,omitempty"`
}

StackUpdateRequest stack update request swagger:model StackUpdateRequest

func (*StackUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*StackUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackUpdateRequest) Validate

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

Validate validates this stack update request

type Status

type Status struct {

	// Is analytics enabled
	Analytics bool `json:"Analytics,omitempty"`

	// Is authentication enabled
	Authentication bool `json:"Authentication,omitempty"`

	// Is endpoint management enabled
	EndpointManagement bool `json:"EndpointManagement,omitempty"`

	// Portainer API version
	Version string `json:"Version,omitempty"`
}

Status status swagger:model Status

func (*Status) MarshalBinary

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

MarshalBinary interface implementation

func (*Status) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Status) Validate

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

Validate validates this status

type TLSConfiguration

type TLSConfiguration struct {

	// Use TLS
	TLS bool `json:"TLS,omitempty"`

	// Path to the TLS CA certificate file
	TLSCACertPath string `json:"TLSCACertPath,omitempty"`

	// Path to the TLS client certificate file
	TLSCertPath string `json:"TLSCertPath,omitempty"`

	// Path to the TLS client key file
	TLSKeyPath string `json:"TLSKeyPath,omitempty"`

	// Skip the verification of the server TLS certificate
	TLSSkipVerify bool `json:"TLSSkipVerify,omitempty"`
}

TLSConfiguration TLS configuration swagger:model TLSConfiguration

func (*TLSConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*TLSConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TLSConfiguration) Validate

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

Validate validates this TLS configuration

type Tag

type Tag struct {

	// Tag identifier
	ID int64 `json:"Id,omitempty"`

	// Tag name
	Name string `json:"Name,omitempty"`
}

Tag tag swagger:model Tag

func (*Tag) MarshalBinary

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tag) Validate

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

Validate validates this tag

type TagCreateRequest

type TagCreateRequest struct {

	// Name
	// Required: true
	Name *string `json:"Name"`
}

TagCreateRequest tag create request swagger:model TagCreateRequest

func (*TagCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TagCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TagCreateRequest) Validate

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

Validate validates this tag create request

type TagListResponse

type TagListResponse []*Tag

TagListResponse tag list response swagger:model TagListResponse

func (TagListResponse) Validate

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

Validate validates this tag list response

type Team

type Team struct {

	// Team identifier
	ID int64 `json:"Id,omitempty"`

	// Team name
	Name string `json:"Name,omitempty"`
}

Team team swagger:model Team

func (*Team) MarshalBinary

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

MarshalBinary interface implementation

func (*Team) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Team) Validate

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

Validate validates this team

type TeamCreateRequest

type TeamCreateRequest struct {

	// Name
	// Required: true
	Name *string `json:"Name"`
}

TeamCreateRequest team create request swagger:model TeamCreateRequest

func (*TeamCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamCreateRequest) Validate

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

Validate validates this team create request

type TeamListResponse

type TeamListResponse []*Team

TeamListResponse team list response swagger:model TeamListResponse

func (TeamListResponse) Validate

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

Validate validates this team list response

type TeamMembership

type TeamMembership struct {

	// Membership identifier
	ID int64 `json:"Id,omitempty"`

	// Team role (1 for team leader and 2 for team member)
	Role int64 `json:"Role,omitempty"`

	// Team identifier
	TeamID int64 `json:"TeamID,omitempty"`

	// User identifier
	UserID int64 `json:"UserID,omitempty"`
}

TeamMembership team membership swagger:model TeamMembership

func (*TeamMembership) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamMembership) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamMembership) Validate

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

Validate validates this team membership

type TeamMembershipCreateRequest

type TeamMembershipCreateRequest struct {

	// Role for the user inside the team (1 for leader and 2 for regular member)
	// Required: true
	Role *int64 `json:"Role"`

	// Team identifier
	// Required: true
	TeamID *int64 `json:"TeamID"`

	// User identifier
	// Required: true
	UserID *int64 `json:"UserID"`
}

TeamMembershipCreateRequest team membership create request swagger:model TeamMembershipCreateRequest

func (*TeamMembershipCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamMembershipCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamMembershipCreateRequest) Validate

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

Validate validates this team membership create request

type TeamMembershipListResponse

type TeamMembershipListResponse []*TeamMembership

TeamMembershipListResponse team membership list response swagger:model TeamMembershipListResponse

func (TeamMembershipListResponse) Validate

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

Validate validates this team membership list response

type TeamMembershipUpdateRequest

type TeamMembershipUpdateRequest struct {

	// Role for the user inside the team (1 for leader and 2 for regular member)
	// Required: true
	Role *int64 `json:"Role"`

	// Team identifier
	// Required: true
	TeamID *int64 `json:"TeamID"`

	// User identifier
	// Required: true
	UserID *int64 `json:"UserID"`
}

TeamMembershipUpdateRequest team membership update request swagger:model TeamMembershipUpdateRequest

func (*TeamMembershipUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamMembershipUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamMembershipUpdateRequest) Validate

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

Validate validates this team membership update request

type TeamMembershipsResponse

type TeamMembershipsResponse []*TeamMembership

TeamMembershipsResponse team memberships response swagger:model TeamMembershipsResponse

func (TeamMembershipsResponse) Validate

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

Validate validates this team memberships response

type TeamUpdateRequest

type TeamUpdateRequest struct {

	// Name
	// Required: true
	Name *string `json:"Name"`
}

TeamUpdateRequest team update request swagger:model TeamUpdateRequest

func (*TeamUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamUpdateRequest) Validate

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

Validate validates this team update request

type Template

type Template struct {

	// Whether the template should be available to administrators only
	AdministratorOnly bool `json:"administrator_only,omitempty"`

	// A list of categories associated to the template
	Categories []string `json:"categories"`

	// The command that will be executed in a container template
	Command string `json:"command,omitempty"`

	// Description of the template
	Description string `json:"description,omitempty"`

	// A list of environment variables used during the template deployment
	Env []*TemplateEnv `json:"env"`

	// Container hostname
	Hostname string `json:"hostname,omitempty"`

	// Template identifier
	ID int64 `json:"id,omitempty"`

	// Image associated to a container template. Mandatory for a container template
	Image string `json:"image,omitempty"`

	// Whether the container should be started in interactive mode (-i -t equivalent on the CLI)
	Interactive bool `json:"interactive,omitempty"`

	// Container labels
	Labels []*Pair `json:"labels"`

	Logo string `json:"logo,omitempty"`

	// Default name for the stack/container to be used on deployment
	Name string `json:"name,omitempty"`

	// Name of a network that will be used on container deployment if it exists inside the environment
	Network string `json:"network,omitempty"`

	// A note that will be displayed in the UI. Supports HTML content
	Note string `json:"note,omitempty"`

	// Platform associated to the template. Valid values are: 'linux', 'windows' or leave empty for multi-platform
	Platform string `json:"platform,omitempty"`

	// A list of ports exposed by the container
	Ports []string `json:"ports"`

	// Whether the container should be started in privileged mode
	Privileged bool `json:"privileged,omitempty"`

	// The URL of a registry associated to the image for a container template
	Registry string `json:"registry,omitempty"`

	// repository
	Repository *TemplateRepository `json:"repository,omitempty"`

	// Container restart policy
	RestartPolicy string `json:"restart_policy,omitempty"`

	// Title of the template
	Title string `json:"title,omitempty"`

	// Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack)
	Type int64 `json:"type,omitempty"`

	// A list of volumes used during the container template deployment
	Volumes []*TemplateVolume `json:"volumes"`
}

Template template swagger:model Template

func (*Template) MarshalBinary

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

MarshalBinary interface implementation

func (*Template) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Template) Validate

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

Validate validates this template

type TemplateCreateRequest

type TemplateCreateRequest struct {

	// Whether the template should be available to administrators only
	AdministratorOnly bool `json:"administrator_only,omitempty"`

	// A list of categories associated to the template
	Categories []string `json:"categories"`

	// The command that will be executed in a container template
	Command string `json:"command,omitempty"`

	// Description of the template
	// Required: true
	Description *string `json:"description"`

	// A list of environment variables used during the template deployment
	Env []*TemplateEnv `json:"env"`

	// Container hostname
	Hostname string `json:"hostname,omitempty"`

	// Image associated to a container template. Mandatory for a container template
	Image string `json:"image,omitempty"`

	// Whether the container should be started in interactive mode (-i -t equivalent on the CLI)
	Interactive bool `json:"interactive,omitempty"`

	// Container labels
	Labels []*Pair `json:"labels"`

	Logo string `json:"logo,omitempty"`

	// Default name for the stack/container to be used on deployment
	Name string `json:"name,omitempty"`

	// Name of a network that will be used on container deployment if it exists inside the environment
	Network string `json:"network,omitempty"`

	// A note that will be displayed in the UI. Supports HTML content
	Note string `json:"note,omitempty"`

	// Platform associated to the template. Valid values are: 'linux', 'windows' or leave empty for multi-platform
	Platform string `json:"platform,omitempty"`

	// A list of ports exposed by the container
	Ports []string `json:"ports"`

	// Whether the container should be started in privileged mode
	Privileged bool `json:"privileged,omitempty"`

	// The URL of a registry associated to the image for a container template
	Registry string `json:"registry,omitempty"`

	// repository
	Repository *TemplateRepository `json:"repository,omitempty"`

	// Container restart policy
	RestartPolicy string `json:"restart_policy,omitempty"`

	// Title of the template
	// Required: true
	Title *string `json:"title"`

	// Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack)
	// Required: true
	Type *int64 `json:"type"`

	// A list of volumes used during the container template deployment
	Volumes []*TemplateVolume `json:"volumes"`
}

TemplateCreateRequest template create request swagger:model TemplateCreateRequest

func (*TemplateCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateCreateRequest) Validate

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

Validate validates this template create request

type TemplateEnv

type TemplateEnv struct {

	// Default value that will be set for the variable
	Default string `json:"default,omitempty"`

	// Content of the tooltip that will be generated in the UI
	Description string `json:"description,omitempty"`

	// Text for the label that will be generated in the UI
	Label string `json:"label,omitempty"`

	// name of the environment variable
	Name string `json:"name,omitempty"`

	// If set to true, will not generate any input for this variable in the UI
	Preset bool `json:"preset,omitempty"`

	// A list of name/value that will be used to generate a dropdown in the UI
	Select []*TemplateEnvSelect `json:"select"`
}

TemplateEnv template env swagger:model TemplateEnv

func (*TemplateEnv) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateEnv) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateEnv) Validate

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

Validate validates this template env

type TemplateEnvSelect

type TemplateEnvSelect struct {

	// Will set this choice as the default choice
	Default bool `json:"default,omitempty"`

	// Some text that will displayed as a choice
	Text string `json:"text,omitempty"`

	// A value that will be associated to the choice
	Value string `json:"value,omitempty"`
}

TemplateEnvSelect template env select swagger:model TemplateEnvSelect

func (*TemplateEnvSelect) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateEnvSelect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateEnvSelect) Validate

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

Validate validates this template env select

type TemplateListResponse

type TemplateListResponse []*Template

TemplateListResponse template list response swagger:model TemplateListResponse

func (TemplateListResponse) Validate

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

Validate validates this template list response

type TemplateRepository

type TemplateRepository struct {

	// URL of a git repository used to deploy a stack template. Mandatory for a Swarm/Compose stack template
	// Required: true
	URL *string `json:"URL"`

	// Path to the stack file inside the git repository
	Stackfile string `json:"stackfile,omitempty"`
}

TemplateRepository template repository swagger:model TemplateRepository

func (*TemplateRepository) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateRepository) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateRepository) Validate

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

Validate validates this template repository

type TemplateUpdateRequest

type TemplateUpdateRequest struct {

	// Whether the template should be available to administrators only
	AdministratorOnly bool `json:"administrator_only,omitempty"`

	// A list of categories associated to the template
	Categories []string `json:"categories"`

	// The command that will be executed in a container template
	Command string `json:"command,omitempty"`

	// Description of the template
	Description string `json:"description,omitempty"`

	// A list of environment variables used during the template deployment
	Env []*TemplateEnv `json:"env"`

	// Container hostname
	Hostname string `json:"hostname,omitempty"`

	// Image associated to a container template. Mandatory for a container template
	Image string `json:"image,omitempty"`

	// Whether the container should be started in interactive mode (-i -t equivalent on the CLI)
	Interactive bool `json:"interactive,omitempty"`

	// Container labels
	Labels []*Pair `json:"labels"`

	Logo string `json:"logo,omitempty"`

	// Default name for the stack/container to be used on deployment
	Name string `json:"name,omitempty"`

	// Name of a network that will be used on container deployment if it exists inside the environment
	Network string `json:"network,omitempty"`

	// A note that will be displayed in the UI. Supports HTML content
	Note string `json:"note,omitempty"`

	// Platform associated to the template. Valid values are: 'linux', 'windows' or leave empty for multi-platform
	Platform string `json:"platform,omitempty"`

	// A list of ports exposed by the container
	Ports []string `json:"ports"`

	// Whether the container should be started in privileged mode
	Privileged bool `json:"privileged,omitempty"`

	// The URL of a registry associated to the image for a container template
	Registry string `json:"registry,omitempty"`

	// repository
	Repository *TemplateRepository `json:"repository,omitempty"`

	// Container restart policy
	RestartPolicy string `json:"restart_policy,omitempty"`

	// Title of the template
	Title string `json:"title,omitempty"`

	// Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack)
	Type int64 `json:"type,omitempty"`

	// A list of volumes used during the container template deployment
	Volumes []*TemplateVolume `json:"volumes"`
}

TemplateUpdateRequest template update request swagger:model TemplateUpdateRequest

func (*TemplateUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateUpdateRequest) Validate

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

Validate validates this template update request

type TemplateVolume

type TemplateVolume struct {

	// Path on the host
	Bind string `json:"bind,omitempty"`

	// Path inside the container
	Container string `json:"container,omitempty"`

	// Whether the volume used should be readonly
	Readonly bool `json:"readonly,omitempty"`
}

TemplateVolume template volume swagger:model TemplateVolume

func (*TemplateVolume) MarshalBinary

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

MarshalBinary interface implementation

func (*TemplateVolume) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TemplateVolume) Validate

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

Validate validates this template volume

type User

type User struct {

	// User identifier
	ID int64 `json:"Id,omitempty"`

	// Password
	Password string `json:"Password,omitempty"`

	// User role (1 for administrator account and 2 for regular account)
	Role int64 `json:"Role,omitempty"`

	// Username
	Username string `json:"Username,omitempty"`
}

User user swagger:model User

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*User) Validate

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

Validate validates this user

type UserAdminInitRequest

type UserAdminInitRequest struct {

	// Password for the admin user
	Password string `json:"Password,omitempty"`

	// Username for the admin user
	Username string `json:"Username,omitempty"`
}

UserAdminInitRequest user admin init request swagger:model UserAdminInitRequest

func (*UserAdminInitRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserAdminInitRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserAdminInitRequest) Validate

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

Validate validates this user admin init request

type UserCreateRequest

type UserCreateRequest struct {

	// Password
	// Required: true
	Password *string `json:"Password"`

	// User role (1 for administrator account and 2 for regular account)
	// Required: true
	Role *int64 `json:"Role"`

	// Username
	// Required: true
	Username *string `json:"Username"`
}

UserCreateRequest user create request swagger:model UserCreateRequest

func (*UserCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserCreateRequest) Validate

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

Validate validates this user create request

type UserListResponse

type UserListResponse []*UserSubset

UserListResponse user list response swagger:model UserListResponse

func (UserListResponse) Validate

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

Validate validates this user list response

type UserMembershipsResponse

type UserMembershipsResponse []*TeamMembership

UserMembershipsResponse user memberships response swagger:model UserMembershipsResponse

func (UserMembershipsResponse) Validate

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

Validate validates this user memberships response

type UserPasswordCheckRequest

type UserPasswordCheckRequest struct {

	// Password
	// Required: true
	Password *string `json:"Password"`
}

UserPasswordCheckRequest user password check request swagger:model UserPasswordCheckRequest

func (*UserPasswordCheckRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserPasswordCheckRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserPasswordCheckRequest) Validate

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

Validate validates this user password check request

type UserPasswordCheckResponse

type UserPasswordCheckResponse struct {

	// Is the password valid
	Valid bool `json:"valid,omitempty"`
}

UserPasswordCheckResponse user password check response swagger:model UserPasswordCheckResponse

func (*UserPasswordCheckResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserPasswordCheckResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserPasswordCheckResponse) Validate

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

Validate validates this user password check response

type UserSubset

type UserSubset struct {

	// User identifier
	ID int64 `json:"Id,omitempty"`

	// User role (1 for administrator account and 2 for regular account)
	Role int64 `json:"Role,omitempty"`

	// Username
	Username string `json:"Username,omitempty"`
}

UserSubset user subset swagger:model UserSubset

func (*UserSubset) MarshalBinary

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

MarshalBinary interface implementation

func (*UserSubset) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserSubset) Validate

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

Validate validates this user subset

type UserUpdateRequest

type UserUpdateRequest struct {

	// Password
	Password string `json:"Password,omitempty"`

	// User role (1 for administrator account and 2 for regular account)
	Role int64 `json:"Role,omitempty"`
}

UserUpdateRequest user update request swagger:model UserUpdateRequest

func (*UserUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUpdateRequest) Validate

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

Validate validates this user update request

Source Files

Jump to

Keyboard shortcuts

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