nsmodel

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mappings []TemplateMapping

Mappings stores mappings between system values and ApplicationTemplates

Functions

func ToAppUpdateInput

func ToAppUpdateInput(system System) model.ApplicationUpdateInput

ToAppUpdateInput converts System to model.ApplicationUpdateInput

Types

type Report

type Report struct {
	ReportType string `json:"type"`
	Value      []SCC  `json:"value"`
}

Report represents Notification Service reports to CMP

func (Report) Validate

func (r Report) Validate() error

Validate validates Report fields

type SCC

type SCC struct {
	ExternalSubaccountID string   `json:"subaccount"`
	InternalSubaccountID string   `json:"-"`
	LocationID           string   `json:"locationID"`
	ExposedSystems       []System `json:"exposedSystems"`
}

SCC represents SAP Cloud Connector

func (SCC) Validate

func (s SCC) Validate() error

Validate validates SCC fields

type System

type System struct {
	SystemBase
	TemplateID string `json:"-"`
}

System represents on-premise system with ApplicationTemplate ID

func (*System) UnmarshalJSON

func (s *System) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshal the provided data into System

func (System) Validate

func (s System) Validate() error

Validate validates System fields

type SystemBase

type SystemBase struct {
	Protocol     string `json:"protocol"`
	Host         string `json:"host"`
	SystemType   string `json:"type"`
	Description  string `json:"description"`
	Status       string `json:"status"`
	SystemNumber string `json:"systemNumber"`
}

SystemBase represents on-premise system

type TemplateMapping

type TemplateMapping struct {
	Name        string
	Region      string
	ID          string
	SourceKey   []string
	SourceValue []string
}

TemplateMapping mapping for application templates

Jump to

Keyboard shortcuts

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