help_pages.devices_help_viewsΒΆ

This module contains all views concerning the help pages used within the devices app.

ClassesΒΆ

BaseHelpView

Base help view that constructs the context.

NoOnboardingCmpSharedSecretStrategy

Strategy for building the no-onboarding CMP shared-secret help page.

DeviceNoOnboardingCmpSharedSecretHelpView

Help view for the case of no onboarding using CMP shared-secret for generic device abstractions.

OpcUaGdsNoOnboardingCmpSharedSecretHelpView

Help view for the case of no onboarding using CMP shared-secret for OPC-UA GDS abstractions.

NoOnboardingEstUsernamePasswordStrategy

Strategy for building the no-onboarding EST username and password help page.

DeviceNoOnboardingEstUsernamePasswordHelpView

Help view for the case of no onboarding using EST username and password generic device abstractions.

OpcUaGdsNoOnboardingEstUsernamePasswordHelpView

Help view for the case of no onboarding using EST username and password for OPC-UA GDS abstractions.

OnboardingDomainCredentialCmpSharedSecretStrategy

Strategy for building the onboarding CMP shared-secret help page.

DeviceOnboardingDomainCredentialCmpSharedSecretHelpView

Help view for the case of onboarding using CMP with a domain credential for generic device abstractions.

OpcUaGdsOnboardingDomainCredentialCmpSharedSecretHelpView

Help view for the case of onboarding using CMP with a domain credential for OPC-UA GDS abstractions.

OnboardingDomainCredentialEstUsernamePasswordStrategy

Strategy for building the onboarding est username and password help page.

DeviceOnboardingDomainCredentialEstUsernamePasswordHelpView

Help view for the case of onboarding using EST username & password for generic device abstractions.

OpcUaGdsOnboardingDomainCredentialEstUsernamePasswordHelpView

Help view for the case of onboarding using EST username & password for OPC-UA GDS abstractions.

ApplicationCertificateWithCmpDomainCredentialStrategy

Strategy for building the onboarding cmp app certificate help page.

DeviceApplicationCertificateWithCmpDomainCredentialHelpView

Help view for the case of onboarding using CMP with client cert for generic device abstractions.

OpcUaGdsApplicationCertificateWithCmpDomainCredentialHelpView

Help view for the case of onboarding using CMP with client cert for OPC-UA GDS abstractions.

ApplicationCertificateWithEstDomainCredentialStrategy

Strategy for building the onboarding EST username and password help page.

DeviceApplicationCertificateWithEstDomainCredentialHelpView

Help view for the case of onboarding using EST with client cert for generic device abstractions.

OpcUaGdsApplicationCertificateWithEstDomainCredentialHelpView

Help view for the case of onboarding using EST with client cert for OPC-UA GDS abstractions.

OpcUaGdsPushOnboardingStrategy

Strategy for building the OPC UA GDS Push onboarding help page.

OpcUaGdsPushApplicationCertificateHelpView

Help view for OPC UA GDS Push application certificates.

OpcUaGdsPushOnboardingHelpView

Help view for OPC UA GDS Push onboarding.

Module ContentsΒΆ

class help_pages.devices_help_views.BaseHelpView[source]ΒΆ

Bases: trustpoint.page_context.PageContextMixin, django.views.generic.detail.DetailView[devices.models.DeviceModel]

Base help view that constructs the context.

template_name = 'help/help_page.html'[source]ΒΆ
http_method_names = ('get',)[source]ΒΆ
model[source]ΒΆ
context_object_name = 'device'[source]ΒΆ
page_category = 'devices'[source]ΒΆ
page_name: str[source]ΒΆ
strategy: help_pages.base.HelpPageStrategy[source]ΒΆ
_make_context()[source]ΒΆ
Return type:

help_pages.base.HelpContext

get_context_data(**kwargs)[source]ΒΆ

Gets the context data and builds the HelpPage.

Parameters:

kwargs (Any) – Passed to super().get_context_data().

Returns:

The django context for the detail view.

Return type:

dict[str, Any]

class help_pages.devices_help_views.NoOnboardingCmpSharedSecretStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the no-onboarding CMP shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceNoOnboardingCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using CMP shared-secret for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsNoOnboardingCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using CMP shared-secret for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.NoOnboardingEstUsernamePasswordStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the no-onboarding EST username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceNoOnboardingEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using EST username and password generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsNoOnboardingEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using EST username and password for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OnboardingDomainCredentialCmpSharedSecretStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding CMP shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceOnboardingDomainCredentialCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with a domain credential for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsOnboardingDomainCredentialCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with a domain credential for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OnboardingDomainCredentialEstUsernamePasswordStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding est username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceOnboardingDomainCredentialEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST username & password for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsOnboardingDomainCredentialEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST username & password for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.ApplicationCertificateWithCmpDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding cmp app certificate help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceApplicationCertificateWithCmpDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with client cert for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsApplicationCertificateWithCmpDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with client cert for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.ApplicationCertificateWithEstDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding EST username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceApplicationCertificateWithEstDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST with client cert for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsApplicationCertificateWithEstDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST with client cert for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsPushOnboardingStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the OPC UA GDS Push onboarding help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

_build_summary_section(help_context)[source]ΒΆ

Build the summary section with basic device information.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

help_pages.help_section.HelpSection

_build_actions_section(device)[source]ΒΆ

Build the actions section with available operations.

Parameters:

device (devices.models.DeviceModel)

Return type:

help_pages.help_section.HelpSection

_build_ca_hierarchy_section(device)[source]ΒΆ

Build the CA hierarchy section with certificate chain information.

Parameters:

device (devices.models.DeviceModel)

Return type:

help_pages.help_section.HelpSection

_build_download_section(device)[source]ΒΆ

Build the download section for trust bundle.

Parameters:

device (devices.models.DeviceModel)

Return type:

help_pages.help_section.HelpSection

class help_pages.devices_help_views.OpcUaGdsPushApplicationCertificateHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for OPC UA GDS Push application certificates.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsPushOnboardingHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for OPC UA GDS Push onboarding.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ