github.com/greenpau/go-authcrunch@v1.1.4/pkg/authn/ui/link.go (about)

     1  // Copyright 2022 Paul Greenberg greenpau@outlook.com
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package ui
    16  
    17  // Link represents a single HTML link.
    18  type Link struct {
    19  	Link          string `json:"link,omitempty" xml:"link,omitempty" yaml:"link,omitempty"`
    20  	Title         string `json:"title,omitempty" xml:"title,omitempty" yaml:"title,omitempty"`
    21  	Style         string `json:"style,omitempty" xml:"style,omitempty" yaml:"style,omitempty"`
    22  	OpenNewWindow bool   `json:"open_new_window,omitempty" xml:"open_new_window,omitempty" yaml:"open_new_window,omitempty"`
    23  	Target        string `json:"target,omitempty" xml:"target,omitempty" yaml:"target,omitempty"`
    24  	TargetEnabled bool   `json:"target_enabled,omitempty" xml:"target_enabled,omitempty" yaml:"target_enabled,omitempty"`
    25  	IconName      string `json:"icon_name,omitempty" xml:"icon_name,omitempty" yaml:"icon_name,omitempty"`
    26  	IconEnabled   bool   `json:"icon_enabled,omitempty" xml:"icon_enabled,omitempty" yaml:"icon_enabled,omitempty"`
    27  }