class Sparoid::Config::Profile

Overview

Keys and the commands to run when a packet is authenticated by one of them. The top level of the config file is the unnamed default profile, each [section] is a named profile.

Defined in:

config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String) #

[View source]

Instance Method Detail

def close_cmd : String #

[View source]
def close_cmd=(close_cmd : String) #

[View source]
def hmac_keys : Array(String) #

[View source]
def keys : Array(String) #

[View source]
def name : String #

[View source]
def nftables? : Bool #

[View source]
def nftables_cmd : String #

[View source]
def nftables_cmd=(nftables_cmd : String) #

[View source]
def nftablesv6_cmd : String #

[View source]
def nftablesv6_cmd=(nftablesv6_cmd : String) #

[View source]
def open_cmd : String #

[View source]
def open_cmd=(open_cmd : String) #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]