Documentation
¶
Index ¶
- type AuthenticateUserRequest
- type AuthenticateUserResponse
- type AzureCredentials
- type DockerHub
- type DockerHubSubset
- type DockerHubUpdateRequest
- type Endpoint
- type EndpointAccessUpdateRequest
- type EndpointGroup
- type EndpointGroupAccessUpdateRequest
- type EndpointGroupCreateRequest
- type EndpointGroupListResponse
- type EndpointGroupUpdateRequest
- type EndpointJobRequest
- type EndpointListResponse
- type EndpointSubset
- type EndpointUpdateRequest
- type GenericError
- type LDAPGroupSearchSettings
- type LDAPSearchSettings
- type LDAPSettings
- type Pair
- type PublicSettingsInspectResponse
- type Registry
- type RegistryAccessUpdateRequest
- type RegistryCreateRequest
- type RegistryListResponse
- type RegistrySubset
- type RegistryUpdateRequest
- type ResourceControl
- type ResourceControlCreateRequest
- type ResourceControlUpdateRequest
- type Settings
- type SettingsBlackListedLabels
- type SettingsLDAPCheckRequest
- type SettingsUpdateRequest
- type Stack
- type StackCreateRequest
- type StackEnv
- type StackFileInspectResponse
- type StackListResponse
- type StackMigrateRequest
- type StackUpdateRequest
- type Status
- type TLSConfiguration
- type Tag
- type TagCreateRequest
- type TagListResponse
- type Team
- type TeamCreateRequest
- type TeamListResponse
- type TeamMembership
- type TeamMembershipCreateRequest
- type TeamMembershipListResponse
- type TeamMembershipUpdateRequest
- type TeamMembershipsResponse
- type TeamUpdateRequest
- type Template
- type TemplateCreateRequest
- type TemplateEnv
- type TemplateEnvSelect
- type TemplateListResponse
- type TemplateRepository
- type TemplateUpdateRequest
- type TemplateVolume
- type User
- type UserAdminInitRequest
- type UserCreateRequest
- type UserListResponse
- type UserMembershipsResponse
- type UserPasswordCheckRequest
- type UserPasswordCheckResponse
- type UserSubset
- type UserUpdateRequest
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
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
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
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 ¶
MarshalBinary interface implementation
func (*DockerHub) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*Endpoint) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
type EndpointGroupListResponse ¶
type EndpointGroupListResponse []*EndpointGroup
EndpointGroupListResponse endpoint group list response swagger:model EndpointGroupListResponse
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
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
type EndpointListResponse ¶
type EndpointListResponse []*EndpointSubset
EndpointListResponse endpoint list response swagger:model EndpointListResponse
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Pair) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Registry) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
type RegistryListResponse ¶
type RegistryListResponse []*RegistrySubset
RegistryListResponse registry list response swagger:model RegistryListResponse
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Settings) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Stack) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*StackEnv) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type StackListResponse ¶
type StackListResponse []*Stack
StackListResponse stack list response swagger:model StackListResponse
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
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
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 ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type TagListResponse ¶
type TagListResponse []*Tag
TagListResponse tag list response swagger:model TagListResponse
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 ¶
MarshalBinary interface implementation
func (*Team) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type TeamListResponse ¶
type TeamListResponse []*Team
TeamListResponse team list response swagger:model TeamListResponse
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
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
type TeamMembershipListResponse ¶
type TeamMembershipListResponse []*TeamMembership
TeamMembershipListResponse team membership list response swagger:model TeamMembershipListResponse
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
type TeamMembershipsResponse ¶
type TeamMembershipsResponse []*TeamMembership
TeamMembershipsResponse team memberships response swagger:model TeamMembershipsResponse
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
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"`
// URL of the template's logo
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 ¶
MarshalBinary interface implementation
func (*Template) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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"`
// URL of the template's logo
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
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
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
type TemplateListResponse ¶
type TemplateListResponse []*Template
TemplateListResponse template list response swagger:model TemplateListResponse
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
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"`
// URL of the template's logo
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
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
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 ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
type UserListResponse ¶
type UserListResponse []*UserSubset
UserListResponse user list response swagger:model UserListResponse
type UserMembershipsResponse ¶
type UserMembershipsResponse []*TeamMembership
UserMembershipsResponse user memberships response swagger:model UserMembershipsResponse
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
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
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
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
Source Files
¶
- authenticate_user_request.go
- authenticate_user_response.go
- azure_credentials.go
- docker_hub.go
- docker_hub_subset.go
- docker_hub_update_request.go
- endpoint.go
- endpoint_access_update_request.go
- endpoint_group.go
- endpoint_group_access_update_request.go
- endpoint_group_create_request.go
- endpoint_group_list_response.go
- endpoint_group_update_request.go
- endpoint_job_request.go
- endpoint_list_response.go
- endpoint_subset.go
- endpoint_update_request.go
- generic_error.go
- l_d_a_p_group_search_settings.go
- l_d_a_p_search_settings.go
- l_d_a_p_settings.go
- pair.go
- public_settings_inspect_response.go
- registry.go
- registry_access_update_request.go
- registry_create_request.go
- registry_list_response.go
- registry_subset.go
- registry_update_request.go
- resource_control.go
- resource_control_create_request.go
- resource_control_update_request.go
- settings.go
- settings_black_listed_labels.go
- settings_l_d_a_p_check_request.go
- settings_update_request.go
- stack.go
- stack_create_request.go
- stack_env.go
- stack_file_inspect_response.go
- stack_list_response.go
- stack_migrate_request.go
- stack_update_request.go
- status.go
- tag.go
- tag_create_request.go
- tag_list_response.go
- team.go
- team_create_request.go
- team_list_response.go
- team_membership.go
- team_membership_create_request.go
- team_membership_list_response.go
- team_membership_update_request.go
- team_memberships_response.go
- team_update_request.go
- template.go
- template_create_request.go
- template_env.go
- template_env_select.go
- template_list_response.go
- template_repository.go
- template_update_request.go
- template_volume.go
- tls_configuration.go
- user.go
- user_admin_init_request.go
- user_create_request.go
- user_list_response.go
- user_memberships_response.go
- user_password_check_request.go
- user_password_check_response.go
- user_subset.go
- user_update_request.go