models

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrustedSourceIDSeparator = ";;;"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTrustedSourceBehaviorInput

type CreateTrustedSourceBehaviorInput struct {
	Name               string   `json:"name,omitempty"`
	Visibility         string   `json:"visibility,omitempty"`
	NumOfSources       int      `json:"numOfSources,omitempty"`
	SourcesIdentifiers []string `json:"sourcesIdentifiers,omitempty"`
}

type TrustedSourceBehavior

type TrustedSourceBehavior struct {
	ID                 string                `json:"id"`
	Name               string                `json:"name"`
	Visibility         string                `json:"visibility"`
	NumOfSources       int                   `json:"numOfSources"`
	SourcesIdentifiers []TrustedSourceSource `json:"sourcesIdentifiers,omitempty"`
}

type TrustedSourceSource

type TrustedSourceSource struct {
	ID     string `json:"id"`
	Source string `json:"source"`
}

func (*TrustedSourceSource) CreateSchemaID

func (trustedSource *TrustedSourceSource) CreateSchemaID() string

type TrustedSourceUpdateInput added in v1.1.1

type TrustedSourceUpdateInput struct {
	ID     string `json:"id"`
	Source string `json:"source"`
}

type UpdateTrustedSourceBehaviorInput

type UpdateTrustedSourceBehaviorInput struct {
	Name                        string                     `json:"name,omitempty"`
	Visibility                  string                     `json:"visibility,omitempty"`
	NumOfSources                int                        `json:"numOfSources,omitempty"`
	AddSourcesIdentifiers       []string                   `json:"addSourcesIdentifiers,omitempty"`
	RemoveSourcesIdentifiersIDs []string                   `json:"removeSourcesIdentifiers,omitempty"`
	UpdateSourcesIdentifiers    []TrustedSourceUpdateInput `json:"updateSourcesIdentifiers,omitempty"`
}

Jump to

Keyboard shortcuts

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