text
stringlengths 1
22.8M
|
|---|
Raseen Mohammed Imam is a Sri Lankan politician and former Member of Parliament.
Imam was a National List MP for the Tamil National Alliance (TNA) in the Sri Lankan Parliament between February 2008 and February 2010, having taken over from M.K. Eelaventhan MP, who was expelled from Parliament in December 2007.
Imam was not selected as a TNA candidate for the 2010 parliamentary election.
References
Sri Lankan Tamil people
Sri Lankan Muslims
Members of the 13th Parliament of Sri Lanka
Tamil National Alliance politicians
Living people
Year of birth missing (living people)
|
Cinnabar Elementary School District is a public school district based in Petaluma, Sonoma County, California.
References
External links
School districts in Sonoma County, California
|
The 2022 Judo Grand Prix Almada was held in Almada, Portugal, from 28 to 30 January 2022.
It was the first time that Portugal was the stage for a world tour event. This tournament will be repeated annually until at least 2024.
As the qualification for the Olympic Games in Paris lasts for only two years, this tournament had no impact on the ranking for the Olympic Games.
Event videos
The event will air freely on the IJF YouTube channel.
Medal summary
Medal table
Men's events
Women's events
Prize money
The sums written are per medalist, bringing the total prizes awarded to €98,000. (retrieved from:)
References
External links
2022 IJF World Tour
2022 Judo Grand Prix
Judo
Grand Prix 2022
Sport in Almada
Judo
Judo
|
Frank Springer (December 6, 1929 – April 2, 2009) was an American comics artist best known for Marvel Comics' Dazzler and Nick Fury, Agent of S.H.I.E.L.D.. As well, in collaboration with writer Michael O'Donoghue, Springer created one of the first adult-oriented comics features on American newsstands: "The Adventures of Phoebe Zeit-Geist" in the magazine Evergreen Review. A multiple winner of the National Cartoonists Society's Reuben Award, Springer was a president of the Society and a founding member of the Berndt Toast Gang, its Long Island chapter.
Biography
Early life and career
Frank Springer was born in the Jamaica neighborhood of the New York City borough of Queens, and moved with his family to nearby Nassau County, Long Island when he was nearly 10 years old. He graduated from Malverne High School in Malverne, New York, in 1948. He had one sibling, a sister, who predeceased him. Springer, whose art influences included adventure comic strips and magazine-cover illustrations by Norman Rockwell, Dean Cornwell, and J. C. Leyendecker, went on to earn an art degree from Syracuse University in 1952, and after being drafted that year, served with the U.S. Army through 1954. Stationed at Fort Dix, he spent his service, he said, "drawing pictures, drawing charts and that kind of thing. ... I got a lot of training in the army in doing sports cartoons with a deadline and so on." Following his discharge, he began freelancing in New York City, soon becoming assistant to cartoonist George Wunder on the comic strip Terry and the Pirates, on which Wunder had succeeded creator Milt Caniff. Springer recalled in 2008,
Leaving in 1960 to freelance again, Springer entered the comic-book industry two years later to draw Dell Comics' Brain Boy, starring a telepathic government agent, in Four Color Comics #1330 (June 1962). Springer drew the spin-off series' five-issue run of #2-6 (Sept. 1962 - Nov. 1963).
Silver Age comics
During the remainder of the 1960s and early 1970s period fans and historians call the Silver Age of comic books, Springer became a prolific penciler-inker across much of Dell's line, drawing issues of Ghost Stories, Movie Classic, Tales from the Tomb, Toka: Jungle King, and the movie/TV tie-in series The Big Valley, Charlie Chan, Iron Horse and The New People, among other comics.
He debuted at DC Comics with two comics the same month: penciling Batman #197, and both penciling and inking the lead feature, "Dial H for Hero", in House of Mystery #171 (both Dec. 1967). Springer went on to draw an issue each of Detective Comics and Our Army at War; an anthological story in another House of Mystery; and the first two issues of Secret Six — the initial one a rare example of a comic-book beginning its story on the cover rather than on the inside page one.
After that, he found more regular work at rival Marvel Comics, where he debuted on Nick Fury, Agent of S.H.I.E.L.D. #4 (Sept. 1968), a fill-in issue of writer-artist Jim Steranko's signature series. Springer penciled and inked an origin-story retelling (scripted by Roy Thomas) sandwiched between Steranko's final two issues. Springer then succeeded the departed Steranko, drawing issues #6-11 (Nov. 1968 - April 1969), with Steranko providing the covers of #6-7.
Springer additionally drew Captain Marvel #13-14 (May–June 1969) and a Hercules back-up story in Ka-Zar #1 (Aug. 1970) before concentrating on his ongoing Dell work until 1973, when that company ceased publication.
Later comic books
Springer returned to draw a handful of stories for Marvel's black-and-white horror-comics magazines in 1974 and 1975, and then sprang from title to title, penciling sporadic issues of The Avengers, Captain America, The Spectacular Spider-Man, and Spider-Woman, among others, and also inked many Marvel and DC comics.
He then became regular inker of Marvel's The Savage She-Hulk over penciler Mike Vosburg on issues #10-22 (Nov. 1980 - Nov. 1981). He penciled a longer run of the superheroine series Dazzler from #4-31 and 35 (June 1981 - March 1984 and Jan. 1985), plus the Dazzler stories in What If...? #34 (Aug. 1982) and Marvel Graphic Novel #12 (1984). Springer, additionally, wrote Dazzler #27-28 and co-wrote with Jim Shooter #29 (July–Nov. 1983).
Springer's other 1980s comics include issues of Marvel's Conan the Barbarian and the company's toy-license titles based on the properties G.I. Joe and Transformers; and, for DC, a return to the Secret Six in Action Comics Weekly, and issues of Manhunter and Green Arrow. After a brief hiatus from comics, he returned to co-ink, with Michael Weaver, Claypool Comics' Phantom of Fear City #11-12 (Feb. and May 1995). This was his last confirmed work in comics except for a single-page profile of the DC character Perry White in Superman Secret Files #1 (Jan. 1998).
Miscellanea includes the Atlas/Seaboard series Cougar in the 1970s, and Continuity Comics' Armor in the 1990s.
Adult satire
With the dark-humor writer-provocateur Michael O'Donoghue, Springer from 1965 to 1966 drew "The Adventures of Phoebe Zeit-Geist" in the magazine Evergreen Review. The feature was one of the first mature-audience comics in the U.S., following the French feature "Barbarella" in Evergreen Review in 1965. Others in the vein included Playboys "Little Annie Fanny" and Magazine Enterprises' "The Adventures of Pussycat". Unlike its innocently bawdy contemporaries, "Phoebe Zeit-Geist" had a darker, sometimes brutal edge, with scenes of bondage depicted as actual torture rather than Bettie Page-like playfulness. Evergreen Review publisher Grove Press collected the series as a 1968 book.
Doonesbury comic-strip creator Garry Trudeau cited the strip as an early inspiration, saying, "[A] very heavy influence was a serial in the Sixties called 'Phoebe Zeitgeist'. ... It was an absolutely brilliant, deadpan send-up of adventure comics, but with a very edgy, modernist kind of approach. To this day, I hold virtually every panel in my brain. It's very hard not to steal from it."
Springer also drew the series "Frank Fleet" for Evergreen Review from 1969 to 1970. From 1971 to 1988 he was a regular contributor to the satiric magazine National Lampoon, occasionally using the pseudonyms Francis Hollidge and Bob Monhegan'''. He came to National Lampoon, he recalled, through O’Donoghue, who had joined the magazine "and called me up almost right away to do a piece called 'Tarzan of the Cows'. I don’t know what issue it was in, but it was one of the earlier ones. I did several other pieces for the magazine and I worked with several of the other writers, Henry Beard, Doug Kenney, Brian McConnachie; all fabulous writers. These guys were really funny and I think I did some of my best work because the writing was so good."
Comic strips and cartoons
After having assisted Wunder on Terry and the Pirates from 1955 to 1960 and then moving to comic books, Springer returned to comic strips as penciler of the syndicated newspaper strip Rex Morgan, M.D. from 1979 to 1981.<ref> and {{cite web |url= http://www.bpib.com/comicsproj/creditsR.html|title= Rex Morgan, M.D. |publisher= The Comic Strip Project|archive-url= https://web.archive.org/web/20140201233445/http://www.bpib.com/comicsproj/creditsR.html|archive-date= February 1, 2014|url-status= live|df=mdy-all}}</ref> He also drew The Incredible Hulk newspaper strip, starring the Marvel Comics' antihero; the romance strip The Virtue of Vera Valiant, with writer Stan Lee; and The Adventures of Hedley Kase in the 1990s. Springer's cartoon art has appeared in Games Magazine, Muppets Magazine, the New York Daily News, Playboy, Sports Illustrated for Kids, and elsewhere.
In the mid-1960s, he did freelance work on the animated TV series Space Ghost, collaborating with a partner to produce "key drawings" of action for which "in-betweener" animators did connecting art. "It was part-time stuff, but that was enjoyable. It was a different phase of cartooning," Springer recalled.
Springer also did a small amount of uncredited penciling on the comic strip The Phantom, assisting Sy Barry, and "for a really brief period" worked with writer-artist Stan Drake on The Heart of Juliet Jones. Without mentioning the strip's name, Springer said in the mid-2000s that, "I worked with Leonard Starr for some years doing part of that strip," presumably Starrs' On Stage, later titled Mary Perkins, On Stage. "Leonard always handled the figures but I’d come in once a week and do the backgrounds, pick up a check and leave." He additionally did uncredited work on the comic strip Friday Foster, drawn in Spain by Jorge Longarón. "I knew the [strip's] writer [Jim Lawrence], who lived here in New Jersey, ... [and] I got a call a couple of times from Lawrence who said they hadn’t gotten the material through from Spain" and Springer was asked to fill in. "I guess over the years I did two Sunday pages, maybe three."
Later years and death
In 1980, just shy of his 51st birthday, Springer ran the New York City Marathon. In 1995, after spending the majority of his life on Long Island (mostly in the towns of Lynbrook, Massapequa Park, and Greenlawn), Springer and wife Barbara, whom he married in c. 1956-1957, moved to Maine, where the artist turned to oil painting. He said in 2004, "There were some raggedy times, but I always had work, raised five kids, bought some houses, bought some cars. ... I've been lucky".
Springer at one point was president of the National Cartoonists Society, and was a founding member of the Berndt Toast Gang, its Long Island chapter.
Springer died on April 2, 2009, at his home in Damariscotta, Maine, of prostate cancer. He was survived by his wife and five grown children: Barbara Edwards, Bill Springer, Jennifer Dills, Jon Springer, and Christopher Springer. Characterizing Springer, Archie comics artist Stan Goldberg said, "Very few people could surpass him as an artist, as a gentleman, and as a true gentleman in my field. ... When you see a Frank Springer job, you know it's going to be the best job in the world".
Awards
National Cartoonists Society Reuben Award — Comic Books (Story): 1973, 1977, and 1981
Inkpot Award: 2004
References
External links
Frank Springer at the National Cartoonists Society
Frank Springer at Mike's Amazing World of Comics
Frank Springer at the Unofficial Handbook of Marvel Comics Creators
1929 births
2009 deaths
American comics artists
DC Comics people
Deaths from cancer in Maine
Deaths from prostate cancer
Inkpot Award winners
Marvel Comics people
People from Damariscotta, Maine
People from Greenlawn, New York
People from Jamaica, Queens
People from Lynbrook, New York
People from Malverne, New York
People from Massapequa Park, New York
Silver Age comics creators
Syracuse University alumni
United States Army soldiers
Malverne High School alumni
|
Ervin is a given name. Notable people with the name include:
Ervin Abel (1929–1984), Estonian actor
Ervin Acél (conductor) (1935–2006), Romanian conductor
Ervin Acel (fencer) (1888–1958), American fencer
Ervin Baktay (1890–1963), author noted for popularizing Indian culture in Hungary
Ervin Baldwin (born 1986), American football defensive end
Ervin Bauer (1890–1938), Hungarian biologist
Ervin Bossányi (1891–1975), Hungarian artist, worked mainly in northern Germany until his emigration in 1934
Ervin Bulku (born 1981), Albanian football player
Ervin Burrell, fictional character on the HBO drama The Wire, played by actor Frankie Faison
Ervin Cseh (1838–1918), Hungarian politician from Slavonia, served as Minister without portfolio of Croatian Affairs
Ervin Drake (1919–2015), American songwriter whose works include such American Songbook standards as "It Was a Very Good Year"
Ervin Eleskovic (born 1987), professional tennis player from Sweden
Ervin Fakaj (born 1976), former Albanian footballer
Ervin Y. Galantay, Professor Emeritus (architecture and planning) of the Swiss Federal Technical University of Lausanne
Ervin Gashi (born 1990), Swiss footballer of Albanian descent
Ervin González (born 1985), Colombian football forward
Ervin Hall (born 1947), American athlete who competed mainly in the 110 metre hurdles
Ervin Hatibi, Albanian poet, essayist and painter
Ervin Hoffmann, Hungarian sprint canoeist who competed from the late 1980s to the late 1990s
Ervin Hunt, former defensive back in the National Football League
Ervin Johnson (born 1967), American former professional basketball player
Ervin Kassai (1925–2012), Hungarian basketball referee
Ervin Katona, (born 1977), Serbian strongman competitor and regular entrant to the World's Strongest Man competition
Ervin Kovács (born 1967), Hungarian football player
Ervin László (born 1932), Hungarian philosopher of science, systems theorist, integral theorist, originally a classical pianist
Ervin Lázár (1936–2006), Hungarian author
Ervin Llani (born 1983), Albanian footballer
Ervin Mészáros (1877–1940), Hungarian Olympic fencer
Ervin McSweeney (born 1957), New Zealand cricketer
Ervin Memetov (born 1990), Ukrainian footballer
Ervin Nagy, Hungarian pianist and composer
Ervin Nyiregyházi (1903–1987), Hungarian-born American pianist
Ervin Õunapuu (born 1956), Estonian writer, playwright, stage designer and filmmaker
Ervin Pringle (1910–1991), Liberal party member of the Canadian House of Commons
Ervin Randle (born 1962), American football linebacker
Ervin J. Rokke, retired lieutenant general and retired President of Moravian College
Ervin Roszner (1852–1928), Hungarian politician, served as Minister besides the King between 1915 and 1917
Ervin Rustemagić, Bosnian comic producer and distributor, born in Sarajevo, Bosnia and Herzegovina currently based in Slovenia
Ervin Santana (born 1982), Major League Baseball right-handed starting pitcher
Ervin Schiffer, Hungarian born professional violist and pedagogue
Ervin Harold Schulz (1911–1978), American businessman, newspaper editor, and politician
Ervin Skela (born 1976), Albanian footballer
Ervin Somogyi (born 1944), pioneer of steel string guitar making
Ervin Sotto (born 1981), Filipino professional basketball player
Ervin Staub, Professor of Psychology, Emeritus, at the University of Massachusetts Amherst
Ervin Szörenyi, Hungarian sprint canoeist who competed in the mid-1950s
Ervin Szerelemhegyi (1891–1969), Hungarian track and field athlete, competed in the 1912 Summer Olympics
Ervin Zádor (1934–2012), Hungarian retired water polo player and former member of the Hungarian national team
See also
Earvin
Ervin (disambiguation)
Ervin (surname)
Erving (disambiguation)
Erwan
Ervine
Erwin (disambiguation)
Irvin
Irvine
Irving
Irwin (disambiguation)
Albanian masculine given names
Estonian masculine given names
Masculine given names
Hungarian masculine given names
no:Ervin
|
```c++
// accompanying file LICENSE_1_0.txt or copy at
// path_to_url
#ifndef BOOST_PROPERTY_HPP
#define BOOST_PROPERTY_HPP
#include <boost/mpl/bool.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/has_xxx.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits.hpp>
#include <boost/static_assert.hpp>
namespace boost {
struct no_property {};
template <class Tag, class T, class Base = no_property>
struct property {
typedef Base next_type;
typedef Tag tag_type;
typedef T value_type;
property(const T& v = T()) : m_value(v) { }
property(const T& v, const Base& b) : m_value(v), m_base(b) { }
// copy constructor and assignment operator will be generated by compiler
T m_value;
Base m_base;
};
// Kinds of properties
namespace graph_introspect_detail {
BOOST_MPL_HAS_XXX_TRAIT_DEF(kind)
template <typename T, bool Cond> struct get_kind {typedef void type;};
template <typename T> struct get_kind<T, true> {typedef typename T::kind type;};
}
// Having a default is to make this trait work for any type, not just valid
// properties, to work around VC++ <= 10 bugs related to SFINAE in
// compressed_sparse_row_graph's get functions and similar
template <class PropertyTag>
struct property_kind:
graph_introspect_detail::get_kind<PropertyTag, graph_introspect_detail::has_kind<PropertyTag>::value>
{};
// Some standard properties defined independently of Boost.Graph:
enum vertex_all_t {vertex_all};
enum edge_all_t {edge_all};
enum graph_all_t {graph_all};
enum vertex_bundle_t {vertex_bundle};
enum edge_bundle_t {edge_bundle};
enum graph_bundle_t {graph_bundle};
// Code to look up one property in a property list:
template <typename PList, typename PropName, typename Enable = void>
struct lookup_one_property_internal {BOOST_STATIC_CONSTANT(bool, found = false); typedef void type;};
// Special-case properties (vertex_all, edge_all, graph_all)
#define BGL_ALL_PROP(tag) \
template <typename T> \
struct lookup_one_property_internal<T, tag> { \
BOOST_STATIC_CONSTANT(bool, found = true); \
typedef T type; \
static T& lookup(T& x, tag) {return x;} \
static const T& lookup(const T& x, tag) {return x;} \
}; \
template <typename Tag, typename T, typename Base> \
struct lookup_one_property_internal<property<Tag, T, Base>, tag> { /* Avoid ambiguity */ \
BOOST_STATIC_CONSTANT(bool, found = true); \
typedef property<Tag, T, Base> type; \
static type& lookup(type& x, tag) {return x;} \
static const type& lookup(const type& x, tag) {return x;} \
};
BGL_ALL_PROP(vertex_all_t)
BGL_ALL_PROP(edge_all_t)
BGL_ALL_PROP(graph_all_t)
#undef BGL_ALL_PROP
// *_bundled; these need to be macros rather than inheritance to resolve ambiguities
#define BGL_DO_ONE_BUNDLE_TYPE(kind) \
template <typename T> \
struct lookup_one_property_internal<T, BOOST_JOIN(kind, _bundle_t)> { \
BOOST_STATIC_CONSTANT(bool, found = true); \
typedef T type; \
static T& lookup(T& x, BOOST_JOIN(kind, _bundle_t)) {return x;} \
static const T& lookup(const T& x, BOOST_JOIN(kind, _bundle_t)) {return x;} \
}; \
\
template <typename Tag, typename T, typename Base> \
struct lookup_one_property_internal<property<Tag, T, Base>, BOOST_JOIN(kind, _bundle_t)>: lookup_one_property_internal<Base, BOOST_JOIN(kind, _bundle_t)> { \
private: \
typedef lookup_one_property_internal<Base, BOOST_JOIN(kind, _bundle_t)> base_type; \
public: \
template <typename BundleTag> \
static typename lazy_enable_if_c<(base_type::found && (is_same<BundleTag, BOOST_JOIN(kind, _bundle_t)>::value)), \
add_reference<typename base_type::type> >::type \
lookup(property<Tag, T, Base>& p, BundleTag) {return base_type::lookup(p.m_base, BOOST_JOIN(kind, _bundle_t)());} \
template <typename BundleTag> \
static typename lazy_enable_if_c<(base_type::found && (is_same<BundleTag, BOOST_JOIN(kind, _bundle_t)>::value)), \
add_reference<const typename base_type::type> >::type \
lookup(const property<Tag, T, Base>& p, BundleTag) {return base_type::lookup(p.m_base, BOOST_JOIN(kind, _bundle_t)());} \
}; \
BGL_DO_ONE_BUNDLE_TYPE(vertex)
BGL_DO_ONE_BUNDLE_TYPE(edge)
BGL_DO_ONE_BUNDLE_TYPE(graph)
#undef BGL_DO_ONE_BUNDLE_TYPE
// Normal old-style properties; second case also handles chaining of bundled property accesses
template <typename Tag, typename T, typename Base>
struct lookup_one_property_internal<boost::property<Tag, T, Base>, Tag> {
BOOST_STATIC_CONSTANT(bool, found = true);
typedef property<Tag, T, Base> prop;
typedef T type;
template <typename U>
static typename enable_if<is_same<prop, U>, T&>::type
lookup(U& prop, const Tag&) {return prop.m_value;}
template <typename U>
static typename enable_if<is_same<prop, U>, const T&>::type
lookup(const U& prop, const Tag&) {return prop.m_value;}
};
template <typename Tag, typename T, typename Base, typename PropName>
struct lookup_one_property_internal<boost::property<Tag, T, Base>, PropName>: lookup_one_property_internal<Base, PropName> {
private:
typedef lookup_one_property_internal<Base, PropName> base_type;
public:
template <typename PL>
static typename lazy_enable_if<is_same<PL, boost::property<Tag, T, Base> >,
add_reference<typename base_type::type> >::type
lookup(PL& prop, const PropName& tag) {
return base_type::lookup(prop.m_base, tag);
}
template <typename PL>
static typename lazy_enable_if<is_same<PL, boost::property<Tag, T, Base> >,
add_reference<const typename base_type::type> >::type
lookup(const PL& prop, const PropName& tag) {
return base_type::lookup(prop.m_base, tag);
}
};
// Pointer-to-member access to bundled properties
#ifndef BOOST_GRAPH_NO_BUNDLED_PROPERTIES
template <typename T, typename TMaybeBase, typename R>
struct lookup_one_property_internal<T, R TMaybeBase::*, typename enable_if<is_base_of<TMaybeBase, T> >::type> {
BOOST_STATIC_CONSTANT(bool, found = true);
typedef R type;
static R& lookup(T& x, R TMaybeBase::*ptr) {return x.*ptr;}
static const R& lookup(const T& x, R TMaybeBase::*ptr) {return x.*ptr;}
};
#endif
// Version of above handling const property lists properly
template <typename T, typename Tag>
struct lookup_one_property: lookup_one_property_internal<T, Tag> {};
template <typename T, typename Tag>
struct lookup_one_property<const T, Tag> {
BOOST_STATIC_CONSTANT(bool, found = (lookup_one_property_internal<T, Tag>::found));
typedef const typename lookup_one_property_internal<T, Tag>::type type;
template <typename U>
static typename lazy_enable_if<is_same<T, U>,
add_reference<const typename lookup_one_property_internal<T, Tag>::type> >::type
lookup(const U& p, Tag tag) {
return lookup_one_property_internal<T, Tag>::lookup(p, tag);
}
};
// The BGL properties specialize property_kind and
// property_num, and use enum's for the Property type (see
// graph/properties.hpp), but the user may want to use a class
// instead with a nested kind type and num. Also, we may want to
// switch BGL back to using class types for properties at some point.
template <class P>
struct has_property : boost::mpl::true_ {};
template <>
struct has_property<no_property> : boost::mpl::false_ {};
} // namespace boost
#include <boost/pending/detail/property.hpp>
namespace boost {
template <class PropertyList, class Tag>
struct property_value: lookup_one_property<PropertyList, Tag> {};
template <class PropertyList, class Tag>
inline typename lookup_one_property<PropertyList, Tag>::type&
get_property_value(PropertyList& p, Tag tag) {
return lookup_one_property<PropertyList, Tag>::lookup(p, tag);
}
template <class PropertyList, class Tag>
inline const typename lookup_one_property<PropertyList, Tag>::type&
get_property_value(const PropertyList& p, Tag tag) {
return lookup_one_property<PropertyList, Tag>::lookup(p, tag);
}
namespace detail {
/** This trait returns true if T is no_property. */
template <typename T>
struct is_no_property
: mpl::bool_<is_same<T, no_property>::value>
{ };
template <typename PList, typename Tag>
class lookup_one_property_f;
template <typename PList, typename Tag, typename F> struct lookup_one_property_f_result;
template <typename PList, typename Tag>
struct lookup_one_property_f_result<PList, Tag, const lookup_one_property_f<PList, Tag>(PList)> {
typedef typename lookup_one_property<PList, Tag>::type type;
};
template <typename PList, typename Tag>
struct lookup_one_property_f_result<PList, Tag, const lookup_one_property_f<PList, Tag>(PList&)> {
typedef typename lookup_one_property<PList, Tag>::type& type;
};
template <typename PList, typename Tag>
struct lookup_one_property_f_result<PList, Tag, const lookup_one_property_f<PList, Tag>(const PList&)> {
typedef const typename lookup_one_property<PList, Tag>::type& type;
};
template <typename PList, typename Tag>
class lookup_one_property_f {
Tag tag;
public:
lookup_one_property_f(Tag tag): tag(tag) {}
template <typename F> struct result: lookup_one_property_f_result<PList, Tag, F> {};
typename lookup_one_property_f_result<PList, Tag, const lookup_one_property_f(PList&)>::type
operator()(PList& pl) const {
return lookup_one_property<PList, Tag>::lookup(pl, tag);
}
};
} // namespace detail
namespace detail {
// Stuff for directed_graph and undirected_graph to skip over their first
// vertex_index and edge_index properties when providing vertex_all and
// edge_all; make sure you know the exact structure of your properties if you
// use there.
struct remove_first_property {
template <typename F>
struct result {
typedef typename boost::function_traits<F>::arg1_type a1;
typedef typename boost::remove_reference<a1>::type non_ref;
typedef typename non_ref::next_type nx;
typedef typename boost::mpl::if_<boost::is_const<non_ref>, boost::add_const<nx>, nx>::type with_const;
typedef typename boost::add_reference<with_const>::type type;
};
template <typename Prop>
typename Prop::next_type& operator()(Prop& p) const {return p.m_base;}
template <typename Prop>
const typename Prop::next_type& operator()(const Prop& p) const {return p.m_base;}
};
}
} // namesapce boost
#endif /* BOOST_PROPERTY_HPP */
```
|
The Incredible String Band is the debut album by the band of the same name, released in the United Kingdom in September 1966 by record label Elektra. It is the only one of the band's albums to feature the original trio line-up with Clive Palmer, Robin Williamson and Mike Heron.
Recording
The trio had been signed to Elektra Records by Joe Boyd, who had seen them play in Glasgow. They recorded the album at the Sound Techniques studio in Chelsea, London in one afternoon in May 1966, with Boyd as producer. Boyd insisted on focusing on the group's own self-written material, rather than the traditional songs and tunes which they had also been performing, and with each performer singing his own material. This had the effect of marginalising Palmer, who had only one of his own songs featured on the record and only played on five songs in total. Less than half of the album featured collective performance. Nine of the album's sixteen songs were solo performances (five by Williamson, three by Heron and one by Palmer). Of the remaining seven songs, four were duets and only three featured all three musicians together.
The album showcased the trio's abilities on a variety of instruments, although the instrumentation is relatively orthodox compared to the band's later work. All three members played guitar and sang, with Palmer also playing banjo and kazoo and Williamson playing mandolin, banjo, tin whistle and fiddle/violin. The psychedelic imagery for which the band would become known is less prevalent on this album than on their later albums, although the liner notes, by Heron, include a surreal tale of the band's encounter with a magic blackbird. However, the album does contain unconventional tunes and singing styles.
Release
The album was released in the United Kingdom in September 1966, and in the USA on Elektra in April 1967 (as attested in Billboard magazine's new album releases in the 9–15 April 1967 issue). The original LP sleeve used in the UK featured a photograph of the band holding up obscure musical instruments in Boyd's office in London. For the US issue, a different photo was used, showing the three musicians posed on what appears to be a rusting bus.
The Incredible String Band did not chart when released, but in the UK following the Top 5 success of The Hangman's Beautiful Daughter it went to number 34 during a three-week run in the summer of 1968.
The trio broke up immediately after recording the album, but Heron and Williamson reunited after a few months to continue the band's name as a duo, later augmented by other musicians.
Critical reception
The Incredible String Band won the title of "Folk Album of the Year" in Melody Maker's annual poll, and in a 1968 Sing Out! magazine interview Bob Dylan praised Williamson's "October Song" as one of his favorite songs of that period. Heron would later describe this album as his own favourite of the band's releases.
In their retrospective review, Lindsay Planer of AllMusic praised the album, calling it "their most simple [album]. It is this minimalism that allowed the natural radiance of the band's (mostly) original material to be evident in the purist sense, and likewise without many of the somewhat intricate distractions and musical tangents that their future work would incorporate".
Track listing
Personnel
Mike Heron – lead vocals on "Maybe Someday", "When The Music Starts to Play", "The Tree", "How Happy I Am", "Can"t Keep Me Here", "Footsteps of the Heron" & "Everything"s Fine Right Now"; guitar on "Maybe Someday", "When The Music Starts to Play", "The Tree", "Dandelion Blues", "How Happy I Am", "Empty Pocket Blues", "Can"t Keep Me Here", "Footsteps of the Heron" & "Everything"s Fine Right Now"; backing vocals on "Dandelion Blues" & "Empty Pocket Blues"
Clive Palmer – lead vocals on "Empty Pocket Blues"; banjo on "Schaeffer"s Jig" & "Niggertown"; guitar on "How Happy I Am", "Empty Pocket Blues" & "Everything"s Fine Right Now"; kazoo on "Everything"s Fine Right Now'; backing vocals on "How Happy I Am"
Robin Williamson – lead vocals on "October Song", "Womankind", "Dandelion Blues", "Smoke Shovelling Song" & "Good As Gone"; violin on "Maybe Someday"; guitar on "October Song", "Womankind", "Dandelion Blues", "Smoke Shovelling Song" & "Good As Gone"; tin whistle on "When The Music Starts to Play", "Whistle Tune" & "Empty Pocket Blues"; fiddle on "Schaeffer"s Jig"; mandolin on "How Happy I Am" & "Everything"s Fine Right Now"; backing vocals on "Maybe Someday", "When The Music Starts to Play", "How Happy I Am", "Empty Pocket Blues" & "Everything"s Fine Right Now"
Charts
References
The Incredible String Band albums
1966 debut albums
Elektra Records albums
Albums produced by Joe Boyd
|
```c++
//your_sha256_hash-----------//
//
// See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
//
// See path_to_url for more information.
//your_sha256_hash-----------//
#ifndef BOOST_COMPUTE_FUNCTIONAL_POPCOUNT_HPP
#define BOOST_COMPUTE_FUNCTIONAL_POPCOUNT_HPP
#include <boost/compute/function.hpp>
#include <boost/compute/type_traits/type_name.hpp>
namespace boost {
namespace compute {
/// Returns the number of non-zero bits in \p x.
///
/// \see_opencl_ref{popcount}
template<class T>
class popcount : public function<T(T)>
{
public:
popcount()
: function<T(T)>("boost_popcount")
{
std::stringstream s;
s << "inline " << type_name<T>() << " boost_popcount"
<< "(const " << type_name<T>() << " x)\n"
<< "{\n"
// use built-in popcount if opencl 1.2 is supported
<< "#if __OPENCL_VERSION__ >= 120\n"
<< " return popcount(x);\n"
// fallback to generic popcount() implementation
<< "#else\n"
<< " " << type_name<T>() << " count = 0;\n"
<< " for(" << type_name<T>() << " i = 0; i < sizeof(i) * CHAR_BIT; i++){\n"
<< " if(x & (" << type_name<T>() << ") 1 << i){\n"
<< " count++;\n"
<< " }\n"
<< " }\n"
<< " return count;\n"
<< "#endif\n"
<< "}\n";
this->set_source(s.str());
}
};
} // end compute namespace
} // end boost namespace
#endif // BOOST_COMPUTE_FUNCTIONAL_POPCOUNT_HPP
```
|
Mohamed Kacimi (born 1955) is an Algerian novelist and playwright.
Early life
Mohamed Kacimi was born in 1955 in El Hamel, French Algeria. He was raised as a Muslim, and he attended both French and Islamic schools as Zawiyet El Hamel. He emigrated to France in 1981, settling in Paris.
Career
Kacimi is the author of several novels, plays and non-fiction books. His first novel, Le mouchoir, was turned down fourteen times before it was published by L'Harmattan in 1987. His 2006 play, Terre sainte, received a good review from Le Figaro when it was performed in Avignon in 2013. Meanwhile, Kacimi also worked as a translator and a ghostwriter. He was also a contributor to Actuel, a French magazine, and he produced Les Chemins de la connaissance on France Culture.
In 2005, he was, with others authors such as Alain Decaux, Richard Millet and Jean-Pierre Thiollet, one of the Beirut Book Fair's guests in the Beirut International Exhibition & Leisure Center, commonly (BIEL).
Kacimi is a critic of Al Jazeera. In the wake of the Charlie Hebdo shooting of 7 January 2015, he wrote a Facebook post relating remarks voiced by teenagers from Val-de-Marne against Charlie Hebdo; however, he was unable to explain where he had heard them specifically, leading Marianne and other media outlets to wonder if he had made them up.
Works
Novels
Plays
Non-fiction
References
Living people
1955 births
People from M'Sila Province
Writers from Paris
Algerian novelists
Algerian dramatists and playwrights
Algerian emigrants to France
Algerian Muslims
|
Asher Jay is a designer, artist, and conservationist. In 2012, Jay was named a USNC United Nations Women Design Star, and, in 2014, she was designated an Emerging Explorer by National Geographic. In 2013 she created a large animated digital billboard for 'March For Elephants' which was viewed by over 1.5 million people in New York's Times Square. Jay has contributed work to Faberge's The Big Egg Hunt with the proceeds supporting anti-poaching efforts in Africa. She also created Garbagea, an online parody project where users interact in and experience the United Flotsam of Garbagea. Jay holds a BFA in Fashion Design from Parsons School of Design.
Exhibits, clients, commissions and installations
Jay has exhibited at/ or created works for the following; National Geographic, WWF, Wild Aid, American Museum of Natural History, US-Embassy Kenya, African Wildlife Foundation, Save Our Elephants, Thinking Animals Inc., Frankfurt Zoological Society, Amazon Aid, Elephant Voices, Elephant Family, Wyoming Untrapped, International Anti-poaching Foundation, Rhinos Without Borders, Africa Geographic, Pangea Seed, Elephants DC, Burn The Ivory, March For Elephants, Hands Off Our Elephants, Great Whales Conservancy, Whale and Dolphin Conservation, Mission Blue, TEDx.
Sources
Asher Jay, Creative Conservationist National Geographic
Symbiartic's Top 10 Science Art Gifts Scientific American
Wildlife Agency Seeks Educational Use For Crushed Ivory New York Times
Artist's masterpiece is a load of garbage ScienceLine
Heroines for the planet: Art Activist Asher Jay Eco-Chick
Money on Extinction, but Fighting Nonetheless Scientific American
WildAid launches new campaign with artist Asher Jay Gambling On Extinction
Q&A with Artist Asher Jay "Cut Throat Captivity" National Museum of Animals
A Whole Planet To Love Thinking Animals United
Who is really responsible for plastic waste? Artist Asher Jay's "Garbagea" confronts us with our throwaway culture in this creative project. MNN
Artist Asher Jay highlights the ocean crisis, poaching and conservation through art Treehugger
Asher Jay, Designer. Artist. Writer. Activist. Project Third World
Empress of garbage The Hindu
Asher Jay, Creative Conservationist
External links
[www.asherjay.com Official website]
Living people
20th-century Indian women artists
Year of birth missing (living people)
|
```objective-c
/***
***
*** The information and source code contained herein is the exclusive
*** property of Intel Corporation and may not be disclosed, examined
*** or reproduced in whole or in part without explicit written authorization
*** from the company.
***
****/
/*
* emmintrin.h
*
* Principal header file for Willamette New Instruction intrinsics
*
* The intrinsics package can be used in 2 ways, based whether or not
* _EMM_FUNCTIONALITY is defined; if it is, the C implementation
* will be used (the "functional intrinsics").
*/
#pragma once
#if !defined(_M_IX86) && !defined(_M_X64)
#error This header is specific to X86 and X64 targets
#endif
#ifndef _INCLUDED_EMM
#define _INCLUDED_EMM
#ifndef __midl
#if !defined _M_IX86 && !defined _M_X64
#error This header is specific to X86 and X64 targets
#endif
#if defined (_M_CEE_PURE)
#error ERROR: EMM intrinsics not supported in the pure mode!
#else /* defined (_M_CEE_PURE) */
/*
* the __m128 & __m64 types are required for the intrinsics
*/
#include <xmmintrin.h>
typedef union __declspec(intrin_type) __declspec(align(16)) __m128i {
__int8 m128i_i8[16];
__int16 m128i_i16[8];
__int32 m128i_i32[4];
__int64 m128i_i64[2];
unsigned __int8 m128i_u8[16];
unsigned __int16 m128i_u16[8];
unsigned __int32 m128i_u32[4];
unsigned __int64 m128i_u64[2];
} __m128i;
typedef struct __declspec(intrin_type) __declspec(align(16)) __m128d {
double m128d_f64[2];
} __m128d;
/*
* Macro function for shuffle
*/
#define _MM_SHUFFLE2(x,y) (((x)<<1) | (y))
/*****************************************************/
/* INTRINSICS FUNCTION PROTOTYPES START HERE */
/*****************************************************/
#if defined __cplusplus
extern "C" { /* Begin "C" */
/* Intrinsics use C name-mangling. */
#endif /* defined __cplusplus */
/*
* DP, arithmetic
*/
extern __m128d _mm_add_sd(__m128d _A, __m128d _B);
extern __m128d _mm_add_pd(__m128d _A, __m128d _B);
extern __m128d _mm_sub_sd(__m128d _A, __m128d _B);
extern __m128d _mm_sub_pd(__m128d _A, __m128d _B);
extern __m128d _mm_mul_sd(__m128d _A, __m128d _B);
extern __m128d _mm_mul_pd(__m128d _A, __m128d _B);
extern __m128d _mm_sqrt_sd(__m128d _A, __m128d _B);
extern __m128d _mm_sqrt_pd(__m128d _A);
extern __m128d _mm_div_sd(__m128d _A, __m128d _B);
extern __m128d _mm_div_pd(__m128d _A, __m128d _B);
extern __m128d _mm_min_sd(__m128d _A, __m128d _B);
extern __m128d _mm_min_pd(__m128d _A, __m128d _B);
extern __m128d _mm_max_sd(__m128d _A, __m128d _B);
extern __m128d _mm_max_pd(__m128d _A, __m128d _B);
/*
* DP, logicals
*/
extern __m128d _mm_and_pd(__m128d _A, __m128d _B);
extern __m128d _mm_andnot_pd(__m128d _A, __m128d _B);
extern __m128d _mm_or_pd(__m128d _A, __m128d _B);
extern __m128d _mm_xor_pd(__m128d _A, __m128d _B);
/*
* DP, comparisons
*/
extern __m128d _mm_cmpeq_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpeq_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmplt_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmplt_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmple_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmple_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpgt_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpgt_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpge_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpge_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpneq_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpneq_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnlt_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnlt_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnle_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnle_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpngt_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpngt_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnge_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpnge_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpord_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpord_sd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpunord_pd(__m128d _A, __m128d _B);
extern __m128d _mm_cmpunord_sd(__m128d _A, __m128d _B);
extern int _mm_comieq_sd(__m128d _A, __m128d _B);
extern int _mm_comilt_sd(__m128d _A, __m128d _B);
extern int _mm_comile_sd(__m128d _A, __m128d _B);
extern int _mm_comigt_sd(__m128d _A, __m128d _B);
extern int _mm_comige_sd(__m128d _A, __m128d _B);
extern int _mm_comineq_sd(__m128d _A, __m128d _B);
extern int _mm_ucomieq_sd(__m128d _A, __m128d _B);
extern int _mm_ucomilt_sd(__m128d _A, __m128d _B);
extern int _mm_ucomile_sd(__m128d _A, __m128d _B);
extern int _mm_ucomigt_sd(__m128d _A, __m128d _B);
extern int _mm_ucomige_sd(__m128d _A, __m128d _B);
extern int _mm_ucomineq_sd(__m128d _A, __m128d _B);
/*
* DP, converts
*/
extern __m128d _mm_cvtepi32_pd(__m128i _A);
extern __m128i _mm_cvtpd_epi32(__m128d _A);
extern __m128i _mm_cvttpd_epi32(__m128d _A);
extern __m128 _mm_cvtepi32_ps(__m128i _A);
extern __m128i _mm_cvtps_epi32(__m128 _A);
extern __m128i _mm_cvttps_epi32(__m128 _A);
extern __m128 _mm_cvtpd_ps(__m128d _A);
extern __m128d _mm_cvtps_pd(__m128 _A);
extern __m128 _mm_cvtsd_ss(__m128 _A, __m128d _B);
extern __m128d _mm_cvtss_sd(__m128d _A, __m128 _B);
extern int _mm_cvtsd_si32(__m128d _A);
extern int _mm_cvttsd_si32(__m128d _A);
extern __m128d _mm_cvtsi32_sd(__m128d _A, int _B);
#if defined(_M_IX86)
extern __m64 _mm_cvtpd_pi32(__m128d _A);
extern __m64 _mm_cvttpd_pi32(__m128d _A);
extern __m128d _mm_cvtpi32_pd(__m64 _A);
#endif
/*
* DP, misc
*/
extern __m128d _mm_unpackhi_pd(__m128d _A, __m128d _B);
extern __m128d _mm_unpacklo_pd(__m128d _A, __m128d _B);
extern int _mm_movemask_pd(__m128d _A);
extern __m128d _mm_shuffle_pd(__m128d _A, __m128d _B, int _I);
/*
* DP, loads
*/
extern __m128d _mm_load_pd(double const*_Dp);
extern __m128d _mm_load1_pd(double const*_Dp);
extern __m128d _mm_loadr_pd(double const*_Dp);
extern __m128d _mm_loadu_pd(double const*_Dp);
extern __m128d _mm_load_sd(double const*_Dp);
extern __m128d _mm_loadh_pd(__m128d _A, double const*_Dp);
extern __m128d _mm_loadl_pd(__m128d _A, double const*_Dp);
/*
* DP, sets
*/
extern __m128d _mm_set_sd(double _W);
extern __m128d _mm_set1_pd(double _A);
extern __m128d _mm_set_pd(double _Z, double _Y);
extern __m128d _mm_setr_pd(double _Y, double _Z);
extern __m128d _mm_setzero_pd(void);
extern __m128d _mm_move_sd(__m128d _A, __m128d _B);
/*
* DP, stores
*/
extern void _mm_store_sd(double *_Dp, __m128d _A);
extern void _mm_store1_pd(double *_Dp, __m128d _A);
extern void _mm_store_pd(double *_Dp, __m128d _A);
extern void _mm_storeu_pd(double *_Dp, __m128d _A);
extern void _mm_storer_pd(double *_Dp, __m128d _A);
extern void _mm_storeh_pd(double *_Dp, __m128d _A);
extern void _mm_storel_pd(double *_Dp, __m128d _A);
/*
* Integer, arithmetic
*/
extern __m128i _mm_add_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_add_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_add_epi32(__m128i _A, __m128i _B);
#if defined(_M_IX86)
extern __m64 _mm_add_si64(__m64 _A, __m64 _B);
#endif
extern __m128i _mm_add_epi64(__m128i _A, __m128i _B);
extern __m128i _mm_adds_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_adds_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_adds_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_adds_epu16(__m128i _A, __m128i _B);
extern __m128i _mm_avg_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_avg_epu16(__m128i _A, __m128i _B);
extern __m128i _mm_madd_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_max_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_max_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_min_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_min_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_mulhi_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_mulhi_epu16(__m128i _A, __m128i _B);
extern __m128i _mm_mullo_epi16(__m128i _A, __m128i _B);
#if defined(_M_IX86)
extern __m64 _mm_mul_su32(__m64 _A, __m64 _B);
#endif
extern __m128i _mm_mul_epu32(__m128i _A, __m128i _B);
extern __m128i _mm_sad_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_sub_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_sub_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_sub_epi32(__m128i _A, __m128i _B);
#if defined(_M_IX86)
extern __m64 _mm_sub_si64(__m64 _A, __m64 _B);
#endif
extern __m128i _mm_sub_epi64(__m128i _A, __m128i _B);
extern __m128i _mm_subs_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_subs_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_subs_epu8(__m128i _A, __m128i _B);
extern __m128i _mm_subs_epu16(__m128i _A, __m128i _B);
/*
* Integer, logicals
*/
extern __m128i _mm_and_si128(__m128i _A, __m128i _B);
extern __m128i _mm_andnot_si128(__m128i _A, __m128i _B);
extern __m128i _mm_or_si128(__m128i _A, __m128i _B);
extern __m128i _mm_xor_si128(__m128i _A, __m128i _B);
/*
* Integer, shifts
*/
extern __m128i _mm_slli_si128(__m128i _A, int _Imm);
extern __m128i _mm_slli_epi16(__m128i _A, int _Count);
extern __m128i _mm_sll_epi16(__m128i _A, __m128i _Count);
extern __m128i _mm_slli_epi32(__m128i _A, int _Count);
extern __m128i _mm_sll_epi32(__m128i _A, __m128i _Count);
extern __m128i _mm_slli_epi64(__m128i _A, int _Count);
extern __m128i _mm_sll_epi64(__m128i _A, __m128i _Count);
extern __m128i _mm_srai_epi16(__m128i _A, int _Count);
extern __m128i _mm_sra_epi16(__m128i _A, __m128i _Count);
extern __m128i _mm_srai_epi32(__m128i _A, int _Count);
extern __m128i _mm_sra_epi32(__m128i _A, __m128i _Count);
extern __m128i _mm_srli_si128(__m128i _A, int _Imm);
extern __m128i _mm_srli_epi16(__m128i _A, int _Count);
extern __m128i _mm_srl_epi16(__m128i _A, __m128i _Count);
extern __m128i _mm_srli_epi32(__m128i _A, int _Count);
extern __m128i _mm_srl_epi32(__m128i _A, __m128i _Count);
extern __m128i _mm_srli_epi64(__m128i _A, int _Count);
extern __m128i _mm_srl_epi64(__m128i _A, __m128i _Count);
/*
* Integer, comparisons
*/
extern __m128i _mm_cmpeq_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_cmpeq_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_cmpeq_epi32(__m128i _A, __m128i _B);
extern __m128i _mm_cmpgt_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_cmpgt_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_cmpgt_epi32(__m128i _A, __m128i _B);
extern __m128i _mm_cmplt_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_cmplt_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_cmplt_epi32(__m128i _A, __m128i _B);
/*
* Integer, converts
*/
extern __m128i _mm_cvtsi32_si128(int _A);
extern int _mm_cvtsi128_si32(__m128i _A);
/*
* Integer, misc
*/
extern __m128i _mm_packs_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_packs_epi32(__m128i _A, __m128i _B);
extern __m128i _mm_packus_epi16(__m128i _A, __m128i _B);
extern int _mm_extract_epi16(__m128i _A, int _Imm);
extern __m128i _mm_insert_epi16(__m128i _A, int _B, int _Imm);
extern int _mm_movemask_epi8(__m128i _A);
extern __m128i _mm_shuffle_epi32(__m128i _A, int _Imm);
extern __m128i _mm_shufflehi_epi16(__m128i _A, int _Imm);
extern __m128i _mm_shufflelo_epi16(__m128i _A, int _Imm);
extern __m128i _mm_unpackhi_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_unpackhi_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_unpackhi_epi32(__m128i _A, __m128i _B);
extern __m128i _mm_unpackhi_epi64(__m128i _A, __m128i _B);
extern __m128i _mm_unpacklo_epi8(__m128i _A, __m128i _B);
extern __m128i _mm_unpacklo_epi16(__m128i _A, __m128i _B);
extern __m128i _mm_unpacklo_epi32(__m128i _A, __m128i _B);
extern __m128i _mm_unpacklo_epi64(__m128i _A, __m128i _B);
/*
* Integer, loads
*/
extern __m128i _mm_load_si128(__m128i const*_P);
extern __m128i _mm_loadu_si128(__m128i const*_P);
extern __m128i _mm_loadl_epi64(__m128i const*_P);
/*
* Integer, sets
*/
#if defined(_M_IX86)
extern __m128i _mm_set_epi64(__m64 _Q1, __m64 _Q0);
#endif
extern __m128i _mm_set_epi64x(__int64 _I1,__int64 _I0);
extern __m128i _mm_set_epi32(int _I3, int _I2, int _I1, int _I0);
extern __m128i _mm_set_epi16(short _W7, short _W6, short _W5, short _W4,
short _W3, short _W2, short _W1, short _W0);
extern __m128i _mm_set_epi8(char _B15, char _B14, char _B13, char _B12,
char _B11, char _B10, char _B9, char _B8,
char _B7, char _B6, char _B5, char _B4,
char _B3, char _B2, char _B1, char _B0);
#if defined(_M_IX86)
extern __m128i _mm_set1_epi64(__m64 _Q);
#endif
extern __m128i _mm_set1_epi64x(__int64 i);
extern __m128i _mm_set1_epi32(int _I);
extern __m128i _mm_set1_epi16(short _W);
extern __m128i _mm_set1_epi8(char _B);
extern __m128i _mm_setl_epi64(__m128i _Q);
#if defined(_M_IX86)
extern __m128i _mm_setr_epi64(__m64 _Q0, __m64 _Q1);
#endif
extern __m128i _mm_setr_epi32(int _I0, int _I1, int _I2, int _I3);
extern __m128i _mm_setr_epi16(short _W0, short _W1, short _W2, short _W3,
short _W4, short _W5, short _W6, short _W7);
extern __m128i _mm_setr_epi8(char _B15, char _B14, char _B13, char _B12,
char _B11, char _B10, char _B9, char _B8,
char _B7, char _B6, char _B5, char _B4,
char _B3, char _B2, char _B1, char _B0);
extern __m128i _mm_setzero_si128(void);
/*
* Integer, stores
*/
extern void _mm_store_si128(__m128i *_P, __m128i _B);
extern void _mm_storeu_si128(__m128i *_P, __m128i _B);
extern void _mm_storel_epi64(__m128i *_P, __m128i _Q);
extern void _mm_maskmoveu_si128(__m128i _D, __m128i _N, char *_P);
/*
* Integer, moves
*/
extern __m128i _mm_move_epi64(__m128i _Q);
#if defined(_M_IX86)
extern __m128i _mm_movpi64_epi64(__m64 _Q);
extern __m64 _mm_movepi64_pi64(__m128i _Q);
#endif
/*
* Cacheability support
*/
extern void _mm_stream_pd(double *_Dp, __m128d _A);
extern void _mm_stream_si128(__m128i *_P, __m128i _A);
extern void _mm_clflush(void const*_P);
extern void _mm_lfence(void);
extern void _mm_mfence(void);
extern void _mm_stream_si32(int *_P, int _I);
extern void _mm_pause(void);
/*
* New convert to float
*/
extern double _mm_cvtsd_f64(__m128d _A);
/*
* Support for casting between various SP, DP, INT vector types.
* Note that these do no conversion of values, they just change
* the type.
*/
extern __m128 _mm_castpd_ps(__m128d);
extern __m128i _mm_castpd_si128(__m128d);
extern __m128d _mm_castps_pd(__m128);
extern __m128i _mm_castps_si128(__m128);
extern __m128 _mm_castsi128_ps(__m128i);
extern __m128d _mm_castsi128_pd(__m128i);
/*
* Support for 64-bit extension intrinsics
*/
#if defined (_M_X64)
extern __int64 _mm_cvtsd_si64(__m128d);
extern __int64 _mm_cvttsd_si64(__m128d);
extern __m128d _mm_cvtsi64_sd(__m128d, __int64);
extern __m128i _mm_cvtsi64_si128(__int64);
extern __int64 _mm_cvtsi128_si64(__m128i);
/* Alternate intrinsic name definitions */
#define _mm_stream_si64 _mm_stream_si64x
#endif /* defined (_M_X64) */
#if defined __cplusplus
}; /* End "C" */
#endif /* defined __cplusplus */
#endif /* defined (_M_CEE_PURE) */
#endif /* __midl */
#endif /* _INCLUDED_EMM */
```
|
```smalltalk
using System;
using System.Runtime.InteropServices;
#region Namespaces
using SkiaSharp.Resources;
#endregion
#region Class declarations
using gr_backendrendertarget_t = System.IntPtr;
using gr_backendtexture_t = System.IntPtr;
using gr_direct_context_t = System.IntPtr;
using gr_glinterface_t = System.IntPtr;
using gr_recording_context_t = System.IntPtr;
using gr_vk_extensions_t = System.IntPtr;
using gr_vk_memory_allocator_t = System.IntPtr;
using gr_vkinterface_t = System.IntPtr;
using sk_bitmap_t = System.IntPtr;
using sk_blender_t = System.IntPtr;
using sk_canvas_t = System.IntPtr;
using sk_codec_t = System.IntPtr;
using sk_colorfilter_t = System.IntPtr;
using sk_colorspace_icc_profile_t = System.IntPtr;
using sk_colorspace_t = System.IntPtr;
using sk_compatpaint_t = System.IntPtr;
using sk_data_t = System.IntPtr;
using sk_document_t = System.IntPtr;
using sk_drawable_t = System.IntPtr;
using sk_flattenable_t = System.IntPtr;
using sk_font_t = System.IntPtr;
using sk_fontmgr_t = System.IntPtr;
using sk_fontstyle_t = System.IntPtr;
using sk_fontstyleset_t = System.IntPtr;
using sk_image_t = System.IntPtr;
using sk_imagefilter_t = System.IntPtr;
using sk_manageddrawable_t = System.IntPtr;
using sk_managedtracememorydump_t = System.IntPtr;
using sk_maskfilter_t = System.IntPtr;
using sk_nodraw_canvas_t = System.IntPtr;
using sk_nvrefcnt_t = System.IntPtr;
using sk_nway_canvas_t = System.IntPtr;
using sk_opbuilder_t = System.IntPtr;
using sk_overdraw_canvas_t = System.IntPtr;
using sk_paint_t = System.IntPtr;
using sk_path_effect_t = System.IntPtr;
using sk_path_iterator_t = System.IntPtr;
using sk_path_rawiterator_t = System.IntPtr;
using sk_path_t = System.IntPtr;
using sk_pathmeasure_t = System.IntPtr;
using sk_picture_recorder_t = System.IntPtr;
using sk_picture_t = System.IntPtr;
using sk_pixelref_factory_t = System.IntPtr;
using sk_pixmap_t = System.IntPtr;
using sk_refcnt_t = System.IntPtr;
using sk_region_cliperator_t = System.IntPtr;
using sk_region_iterator_t = System.IntPtr;
using sk_region_spanerator_t = System.IntPtr;
using sk_region_t = System.IntPtr;
using sk_rrect_t = System.IntPtr;
using sk_runtimeeffect_t = System.IntPtr;
using sk_shader_t = System.IntPtr;
using sk_stream_asset_t = System.IntPtr;
using sk_stream_filestream_t = System.IntPtr;
using sk_stream_managedstream_t = System.IntPtr;
using sk_stream_memorystream_t = System.IntPtr;
using sk_stream_streamrewindable_t = System.IntPtr;
using sk_stream_t = System.IntPtr;
using sk_string_t = System.IntPtr;
using sk_surface_t = System.IntPtr;
using sk_surfaceprops_t = System.IntPtr;
using sk_svgcanvas_t = System.IntPtr;
using sk_textblob_builder_t = System.IntPtr;
using sk_textblob_t = System.IntPtr;
using sk_tracememorydump_t = System.IntPtr;
using sk_typeface_t = System.IntPtr;
using sk_vertices_t = System.IntPtr;
using sk_wstream_dynamicmemorystream_t = System.IntPtr;
using sk_wstream_filestream_t = System.IntPtr;
using sk_wstream_managedstream_t = System.IntPtr;
using sk_wstream_t = System.IntPtr;
using skottie_animation_builder_t = System.IntPtr;
using skottie_animation_t = System.IntPtr;
using skottie_logger_t = System.IntPtr;
using skottie_marker_observer_t = System.IntPtr;
using skottie_property_observer_t = System.IntPtr;
using skottie_resource_provider_t = System.IntPtr;
using skresources_external_track_asset_t = System.IntPtr;
using skresources_image_asset_t = System.IntPtr;
using skresources_multi_frame_image_asset_t = System.IntPtr;
using skresources_resource_provider_t = System.IntPtr;
using sksg_invalidation_controller_t = System.IntPtr;
using vk_device_t = System.IntPtr;
using vk_instance_t = System.IntPtr;
using vk_physical_device_features_2_t = System.IntPtr;
using vk_physical_device_features_t = System.IntPtr;
using vk_physical_device_t = System.IntPtr;
using vk_queue_t = System.IntPtr;
#endregion
#region Functions
namespace SkiaSharp
{
internal unsafe partial class ResourcesApi
{
#region skresources_resource_provider.h
// skresources_resource_provider_t* skresources_caching_resource_provider_proxy_make(skresources_resource_provider_t* rp)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern skresources_resource_provider_t skresources_caching_resource_provider_proxy_make (skresources_resource_provider_t rp);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate skresources_resource_provider_t skresources_caching_resource_provider_proxy_make (skresources_resource_provider_t rp);
}
private static Delegates.skresources_caching_resource_provider_proxy_make skresources_caching_resource_provider_proxy_make_delegate;
internal static skresources_resource_provider_t skresources_caching_resource_provider_proxy_make (skresources_resource_provider_t rp) =>
(skresources_caching_resource_provider_proxy_make_delegate ??= GetSymbol<Delegates.skresources_caching_resource_provider_proxy_make> ("skresources_caching_resource_provider_proxy_make")).Invoke (rp);
#endif
// skresources_resource_provider_t* skresources_data_uri_resource_provider_proxy_make(skresources_resource_provider_t* rp, bool predecode)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern skresources_resource_provider_t skresources_data_uri_resource_provider_proxy_make (skresources_resource_provider_t rp, [MarshalAs (UnmanagedType.I1)] bool predecode);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate skresources_resource_provider_t skresources_data_uri_resource_provider_proxy_make (skresources_resource_provider_t rp, [MarshalAs (UnmanagedType.I1)] bool predecode);
}
private static Delegates.skresources_data_uri_resource_provider_proxy_make skresources_data_uri_resource_provider_proxy_make_delegate;
internal static skresources_resource_provider_t skresources_data_uri_resource_provider_proxy_make (skresources_resource_provider_t rp, [MarshalAs (UnmanagedType.I1)] bool predecode) =>
(skresources_data_uri_resource_provider_proxy_make_delegate ??= GetSymbol<Delegates.skresources_data_uri_resource_provider_proxy_make> ("skresources_data_uri_resource_provider_proxy_make")).Invoke (rp, predecode);
#endif
// skresources_resource_provider_t* skresources_file_resource_provider_make(sk_string_t* base_dir, bool predecode)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern skresources_resource_provider_t skresources_file_resource_provider_make (sk_string_t base_dir, [MarshalAs (UnmanagedType.I1)] bool predecode);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate skresources_resource_provider_t skresources_file_resource_provider_make (sk_string_t base_dir, [MarshalAs (UnmanagedType.I1)] bool predecode);
}
private static Delegates.skresources_file_resource_provider_make skresources_file_resource_provider_make_delegate;
internal static skresources_resource_provider_t skresources_file_resource_provider_make (sk_string_t base_dir, [MarshalAs (UnmanagedType.I1)] bool predecode) =>
(skresources_file_resource_provider_make_delegate ??= GetSymbol<Delegates.skresources_file_resource_provider_make> ("skresources_file_resource_provider_make")).Invoke (base_dir, predecode);
#endif
// void skresources_resource_provider_delete(skresources_resource_provider_t* instance)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern void skresources_resource_provider_delete (skresources_resource_provider_t instance);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void skresources_resource_provider_delete (skresources_resource_provider_t instance);
}
private static Delegates.skresources_resource_provider_delete skresources_resource_provider_delete_delegate;
internal static void skresources_resource_provider_delete (skresources_resource_provider_t instance) =>
(skresources_resource_provider_delete_delegate ??= GetSymbol<Delegates.skresources_resource_provider_delete> ("skresources_resource_provider_delete")).Invoke (instance);
#endif
// sk_data_t* skresources_resource_provider_load(skresources_resource_provider_t* instance, const char* path, const char* name)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern sk_data_t skresources_resource_provider_load (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate sk_data_t skresources_resource_provider_load (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name);
}
private static Delegates.skresources_resource_provider_load skresources_resource_provider_load_delegate;
internal static sk_data_t skresources_resource_provider_load (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name) =>
(skresources_resource_provider_load_delegate ??= GetSymbol<Delegates.skresources_resource_provider_load> ("skresources_resource_provider_load")).Invoke (instance, path, name);
#endif
// skresources_external_track_asset_t* skresources_resource_provider_load_audio_asset(skresources_resource_provider_t* instance, const char* path, const char* name, const char* id)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern skresources_external_track_asset_t skresources_resource_provider_load_audio_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate skresources_external_track_asset_t skresources_resource_provider_load_audio_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id);
}
private static Delegates.skresources_resource_provider_load_audio_asset skresources_resource_provider_load_audio_asset_delegate;
internal static skresources_external_track_asset_t skresources_resource_provider_load_audio_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id) =>
(skresources_resource_provider_load_audio_asset_delegate ??= GetSymbol<Delegates.skresources_resource_provider_load_audio_asset> ("skresources_resource_provider_load_audio_asset")).Invoke (instance, path, name, id);
#endif
// skresources_image_asset_t* skresources_resource_provider_load_image_asset(skresources_resource_provider_t* instance, const char* path, const char* name, const char* id)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern skresources_image_asset_t skresources_resource_provider_load_image_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate skresources_image_asset_t skresources_resource_provider_load_image_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id);
}
private static Delegates.skresources_resource_provider_load_image_asset skresources_resource_provider_load_image_asset_delegate;
internal static skresources_image_asset_t skresources_resource_provider_load_image_asset (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String path, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String id) =>
(skresources_resource_provider_load_image_asset_delegate ??= GetSymbol<Delegates.skresources_resource_provider_load_image_asset> ("skresources_resource_provider_load_image_asset")).Invoke (instance, path, name, id);
#endif
// sk_typeface_t* skresources_resource_provider_load_typeface(skresources_resource_provider_t* instance, const char* name, const char* url)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern sk_typeface_t skresources_resource_provider_load_typeface (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String url);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate sk_typeface_t skresources_resource_provider_load_typeface (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String url);
}
private static Delegates.skresources_resource_provider_load_typeface skresources_resource_provider_load_typeface_delegate;
internal static sk_typeface_t skresources_resource_provider_load_typeface (skresources_resource_provider_t instance, [MarshalAs (UnmanagedType.LPStr)] String name, [MarshalAs (UnmanagedType.LPStr)] String url) =>
(skresources_resource_provider_load_typeface_delegate ??= GetSymbol<Delegates.skresources_resource_provider_load_typeface> ("skresources_resource_provider_load_typeface")).Invoke (instance, name, url);
#endif
// void skresources_resource_provider_ref(skresources_resource_provider_t* instance)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern void skresources_resource_provider_ref (skresources_resource_provider_t instance);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void skresources_resource_provider_ref (skresources_resource_provider_t instance);
}
private static Delegates.skresources_resource_provider_ref skresources_resource_provider_ref_delegate;
internal static void skresources_resource_provider_ref (skresources_resource_provider_t instance) =>
(skresources_resource_provider_ref_delegate ??= GetSymbol<Delegates.skresources_resource_provider_ref> ("skresources_resource_provider_ref")).Invoke (instance);
#endif
// void skresources_resource_provider_unref(skresources_resource_provider_t* instance)
#if !USE_DELEGATES
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
internal static extern void skresources_resource_provider_unref (skresources_resource_provider_t instance);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void skresources_resource_provider_unref (skresources_resource_provider_t instance);
}
private static Delegates.skresources_resource_provider_unref skresources_resource_provider_unref_delegate;
internal static void skresources_resource_provider_unref (skresources_resource_provider_t instance) =>
(skresources_resource_provider_unref_delegate ??= GetSymbol<Delegates.skresources_resource_provider_unref> ("skresources_resource_provider_unref")).Invoke (instance);
#endif
#endregion
}
}
#endregion Functions
#region Delegates
#endregion
#region Structs
#endregion
#region Enums
#endregion
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var inherit = require( '@stdlib/utils/inherit' );
var Number = require( '@stdlib/number/ctor' );
var instanceOf = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof instanceOf, 'function', 'main export is a function' );
t.end();
});
tape( 'the function throws an error if provided a constructor argument which is not callable', function test( t ) {
var values;
var i;
values = [
'5',
5,
NaN,
true,
false,
null,
void 0,
[],
{}
];
for ( i = 0; i < values.length; i++ ) {
t.throws( badValue( values[i] ), TypeError, 'throws a type error when provided '+values[i] );
}
t.end();
function badValue( value ) {
return function badValue() {
instanceOf( {}, value );
};
}
});
tape( 'the function returns `true` if provided a value which is an instance of a provided constructor', function test( t ) {
var bool;
bool = instanceOf( [], Array );
t.strictEqual( bool, true, 'returns expected value' );
bool = instanceOf( [], Object );
t.strictEqual( bool, true, 'returns expected value' );
bool = instanceOf( new Object(), Object ); // eslint-disable-line no-new-object
t.strictEqual( bool, true, 'returns expected value' );
bool = instanceOf( instanceOf, Function );
t.strictEqual( bool, true, 'returns expected value' );
bool = instanceOf( new Date(), Date );
t.strictEqual( bool, true, 'returns expected value' );
bool = instanceOf( /.*/, RegExp );
t.strictEqual( bool, true, 'returns expected value' );
// eslint-disable-next-line prefer-regex-literals
bool = instanceOf( new RegExp( '.*' ), RegExp );
t.strictEqual( bool, true, 'returns expected value' );
t.end();
});
tape( 'the function returns `true` when provided an object literal and the `Object` constructor (exception)', function test( t ) {
var bool = instanceOf( {}, Object );
t.strictEqual( bool, true, 'returns expected value' );
t.end();
});
tape( 'the function returns `true` if a provided a value which is an instance of a provided constructor (inheritance)', function test( t ) {
var bool;
var bar;
function Foo() {
return this;
}
function Bar() {
return this;
}
inherit( Bar, Foo );
bar = new Bar();
bool = instanceOf( bar, Foo );
t.strictEqual( bool, true, 'returns true' );
t.strictEqual( bar instanceof Bar, true, 'is instance of Bar' );
t.strictEqual( bar instanceof Foo, true, 'is instance of Foo' );
t.end();
});
tape( 'the function returns `false` if provided a test value which is not an instance of a provided constructor (primitives)', function test( t ) {
var values;
var bool;
var i;
values = [
'5',
5,
NaN,
true,
false,
null,
void 0
];
for ( i = 0; i < values.length; i++ ) {
bool = instanceOf( values[i], Object );
t.strictEqual( bool, false, 'returns false when provided '+values[i] );
}
t.end();
});
tape( 'the function returns `false` if a provided value which is not an instance of a provided constructor (inheritance)', function test( t ) {
var bool;
var bar;
function Foo() {
return this;
}
function Bar() {
return this;
}
bar = new Bar();
bool = instanceOf( bar, Foo );
t.strictEqual( bool, false, 'returns false' );
t.strictEqual( bar instanceof Bar, true, 'is instance of Bar' );
t.strictEqual( bar instanceof Foo, false, 'is not instance of Foo' );
t.end();
});
tape( 'the function returns `false` if provided primitives and their corresponding object constructors', function test( t ) {
var bool;
bool = instanceOf( true, Boolean );
t.strictEqual( bool, false, 'returns expected value' );
bool = instanceOf( 'beep', String );
t.strictEqual( bool, false, 'returns expected value' );
bool = instanceOf( 5, Number );
t.strictEqual( bool, false, 'returns expected value' );
t.end();
});
```
|
```kotlin
package tornadofx.testapps
import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleStringProperty
import javafx.collections.FXCollections
import javafx.scene.control.SelectionMode
import javafx.scene.control.TableView
import javafx.scene.control.TableView.CONSTRAINED_RESIZE_POLICY
import javafx.scene.text.FontWeight
import tornadofx.*
import java.util.*
class TableViewDirtyTestApp : WorkspaceApp(TableViewDirtyTest::class)
class TableViewDirtyTest : View("Dirty Tables") {
val customers = FXCollections.observableArrayList(Customer("Thomas", "Nield"), Customer("Matthew", "Turnblom"), Customer("Edvin", "Syse"))
var table: TableView<Customer> by singleAssign()
override val root = borderpane {
center {
tableview(customers) {
table = this
prefHeight = 200.0
column("First Name", Customer::firstNameProperty) {
makeEditable()
cellDecorator {
style {
fontWeight = FontWeight.BOLD
}
}
}
column("Last Name", Customer::lastNameProperty).makeEditable()
enableCellEditing()
regainFocusAfterEdit()
enableDirtyTracking()
selectOnDrag()
contextmenu {
item(stringBinding(selectionModel.selectedCells) { "Rollback ${selectedColumn?.text}" }) {
disableWhen { editModel.selectedItemDirty.not() }
action { editModel.rollback(selectedItem, selectedColumn) }
}
item(stringBinding(selectionModel.selectedCells) { "Commit ${selectedColumn?.text}" }) {
disableWhen { editModel.selectedItemDirty.not() }
action { editModel.commit(selectedItem, selectedColumn) }
}
}
selectionModel.selectionMode = SelectionMode.MULTIPLE
columnResizePolicy = CONSTRAINED_RESIZE_POLICY
}
}
bottom {
hbox(10) {
paddingAll = 4
button("Commit row") {
disableWhen { table.editModel.selectedItemDirty.not() }
action { table.editModel.commitSelected() }
}
button("Rollback row") {
disableWhen { table.editModel.selectedItemDirty.not() }
action { table.editModel.rollbackSelected() }
}
}
}
}
override fun onSave() {
table.editModel.commit()
}
override fun onRefresh() {
table.editModel.rollback()
}
init {
icon = FX.icon
}
class Customer(firstName: String, lastName: String) {
val idProperty = SimpleObjectProperty<UUID>(UUID.randomUUID())
var id by idProperty
val firstNameProperty = SimpleStringProperty(firstName)
var firstName by firstNameProperty
val lastNameProperty = SimpleStringProperty(lastName)
val lastName by lastNameProperty
override fun toString() = "$firstName $lastName"
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other?.javaClass != javaClass) return false
other as Customer
if (id != other.id) return false
return true
}
override fun hashCode(): Int {
return id.hashCode()
}
}
}
```
|
The State Theatre Center for the Arts (formerly State Theatre) in Uniontown, Pennsylvania was designed by Thomas W. Lamb and constructed in 1922.
History
In 1921, the Penn Amusement Company commissioned prominent architect Thomas Lamb to design a “picture palace” to be constructed in Uniontown, PA. Upon opening on October 30, 1922, the theatre was hailed as “the largest, finest, and most beautiful playhouse in Western Pennsylvania.” The theatre began showing silent movies and hosting Vaudeville acts from the B.F. Keith Circuit. Additionally, the orchestra pit contained a Pleubet Master Organ for the purpose of accompany silent films.
During the rise of swing music and the big band, the theatre began to see more live music performances. Among the most noted performers were Paul Whiteman, Glen Gray, and the Dorsey Brothers. These live music shows continued to be a cornerstone of the theatre's productions until the rise of “talkies”, driving the performances away from the Vaudeville and big band shows as the movie industry developed.
Despite the popularity of movie palaces, the rise of television ultimately took its toll on the theatre. This shift in the way people watched movies lead to the development of theatres with multiple screens to show different movies at the same time. This growth in specialization caused the State Theatre to close down in June 1973.
The community did not take well to having the theatre closed. A number of years later, the theatre was reopened and used once again as a concert hall where many country musicians perform. However, the theatre saw even less success as a concert hall and subsequently closed once again, much to the dismay of the residents of Uniontown.
In 1988 the Greater Uniontown Heritage Consortium purchased the theatre and began presenting a series of nationally touring professional productions ranging from Broadway musicals to Big Bands, symphonies, dance and dramatic performances. In 2007, The Theatre began offering a Classic Film Series, showing the greatest movies ever made on the big screen and returning the theatre to a “picture palace.” The Education Series offers field trip opportunities to school children and is often the first theatre experience local children enjoy. The theatre also hosts professionally promoted concerts, local dance recitals, high school musicals, and civic events.
Architecture
The State Theatre Center for the Arts was constructed using the Beaux Arts style, which originated in the École des Beaux Arts in Paris. The construction involved art designers from the Ingstrip-Burke Company of Chicago, led by Michael Tomlin, who decorated the interior in Adam Style. This theme was intended to create a “refinement of line and chasteness of ornamentation.” This style was commonly used in the United States in the 19th century to pay homage to the ancient Greek and Roman architecture styles, making use of such features as columns, pilasters, triangular pieces, large stairways, elaborate ornamentation, and balconies. The designs were always symmetrical, and the buildings were constructed with stone.
Notable Performers
The State Theatre Center for the Arts has been known to have very popular entertainers and productions hosted throughout the past 90 years. The most notable names are jazz musicians Paul Whiteman and Glen Gray, The Dorsey Brothers, popular musicians Johnny Cash, Slim Whitman, Waylon Jennings, Glen Campbell, Anne Murray, Chubby Checker and the Statler Brothers.
References
External links
Theatres in Pennsylvania
Buildings and structures in Fayette County, Pennsylvania
Theatres completed in 1922
1922 establishments in Pennsylvania
Thomas W. Lamb buildings
|
```javascript
var test = function () {
'use strict';
var test = 'test';
};
```
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\DataCatalog;
class GoogleCloudDatacatalogV1beta1UsageSignal extends \Google\Model
{
public $updateTime;
protected $usageWithinTimeRangeType = GoogleCloudDatacatalogV1beta1UsageStats::class;
protected $usageWithinTimeRangeDataType = 'map';
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param GoogleCloudDatacatalogV1beta1UsageStats[]
*/
public function setUsageWithinTimeRange($usageWithinTimeRange)
{
$this->usageWithinTimeRange = $usageWithinTimeRange;
}
/**
* @return GoogleCloudDatacatalogV1beta1UsageStats[]
*/
public function getUsageWithinTimeRange()
{
return $this->usageWithinTimeRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDatacatalogV1beta1UsageSignal::class, your_sha256_hashnal');
```
|
```objective-c
//
// MBProgressHUD.h
// Version 1.0.0
// Created by Matej Bukovinski on 2.4.09.
//
// This code is distributed under the terms and conditions of the MIT license.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>
@class MBBackgroundView;
@protocol MBProgressHUDDelegate;
extern CGFloat const MBProgressMaxOffset;
typedef NS_ENUM(NSInteger, MBProgressHUDMode) {
/// UIActivityIndicatorView.
MBProgressHUDModeIndeterminate,
/// A round, pie-chart like, progress view.
MBProgressHUDModeDeterminate,
/// Horizontal progress bar.
MBProgressHUDModeDeterminateHorizontalBar,
/// Ring-shaped progress view.
MBProgressHUDModeAnnularDeterminate,
/// Shows a custom view.
MBProgressHUDModeCustomView,
/// Shows only labels.
MBProgressHUDModeText
};
typedef NS_ENUM(NSInteger, MBProgressHUDAnimation) {
/// Opacity animation
MBProgressHUDAnimationFade,
/// Opacity + scale animation (zoom in when appearing zoom out when disappearing)
MBProgressHUDAnimationZoom,
/// Opacity + scale animation (zoom out style)
MBProgressHUDAnimationZoomOut,
/// Opacity + scale animation (zoom in style)
MBProgressHUDAnimationZoomIn
};
typedef NS_ENUM(NSInteger, MBProgressHUDBackgroundStyle) {
/// Solid color background
MBProgressHUDBackgroundStyleSolidColor,
/// UIVisualEffectView or UIToolbar.layer background view
MBProgressHUDBackgroundStyleBlur
};
typedef void (^MBProgressHUDCompletionBlock)();
NS_ASSUME_NONNULL_BEGIN
/**
* Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
*
* This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.
* The MBProgressHUD window spans over the entire space given to it by the initWithFrame: constructor and catches all
* user input on this region, thereby preventing the user operations on components below the view.
*
* @note To still allow touches to pass through the HUD, you can set hud.userInteractionEnabled = NO.
* @attention MBProgressHUD is a UI class and should therefore only be accessed on the main thread.
*/
@interface MBProgressHUD : UIView
/**
* Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
*
* @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
*
* @param view The view that the HUD will be added to
* @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
* animations while appearing.
* @return A reference to the created HUD.
*
* @see hideHUDForView:animated:
* @see animationType
*/
+ (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
/// @name Showing and hiding
/**
* Finds the top-most HUD subview and hides it. The counterpart to this method is showHUDAddedTo:animated:.
*
* @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
*
* @param view The view that is going to be searched for a HUD subview.
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
* animations while disappearing.
* @return YES if a HUD was found and removed, NO otherwise.
*
* @see showHUDAddedTo:animated:
* @see animationType
*/
+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
/**
* Finds the top-most HUD subview and returns it.
*
* @param view The view that is going to be searched.
* @return A reference to the last HUD subview discovered.
*/
+ (nullable MBProgressHUD *)HUDForView:(UIView *)view;
/**
* A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
* view.bounds as the parameter.
*
* @param view The view instance that will provide the bounds for the HUD. Should be the same instance as
* the HUD's superview (i.e., the view that the HUD will be added to).
*/
- (instancetype)initWithView:(UIView *)view;
/**
* Displays the HUD.
*
* @note You need to make sure that the main thread completes its run loop soon after this method call so that
* the user interface can be updated. Call this method when your task is already set up to be executed in a new thread
* (e.g., when using something like NSOperation or making an asynchronous call like NSURLRequest).
*
* @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
* animations while appearing.
*
* @see animationType
*/
- (void)showAnimated:(BOOL)animated;
/**
* Hides the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
* hide the HUD when your task completes.
*
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
* animations while disappearing.
*
* @see animationType
*/
- (void)hideAnimated:(BOOL)animated;
/**
* Hides the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
* hide the HUD when your task completes.
*
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
* animations while disappearing.
* @param delay Delay in seconds until the HUD is hidden.
*
* @see animationType
*/
- (void)hideAnimated:(BOOL)animated afterDelay:(NSTimeInterval)delay;
/**
* The HUD delegate object. Receives HUD state notifications.
*/
@property (weak, nonatomic) id<MBProgressHUDDelegate> delegate;
/**
* Called after the HUD is hiden.
*/
@property (copy, nullable) MBProgressHUDCompletionBlock completionBlock;
/*
* Grace period is the time (in seconds) that the invoked method may be run without
* showing the HUD. If the task finishes before the grace time runs out, the HUD will
* not be shown at all.
* This may be used to prevent HUD display for very short tasks.
* Defaults to 0 (no grace time).
*/
@property (assign, nonatomic) NSTimeInterval graceTime;
/**
* The minimum time (in seconds) that the HUD is shown.
* This avoids the problem of the HUD being shown and than instantly hidden.
* Defaults to 0 (no minimum show time).
*/
@property (assign, nonatomic) NSTimeInterval minShowTime;
/**
* Removes the HUD from its parent view when hidden.
* Defaults to NO.
*/
@property (assign, nonatomic) BOOL removeFromSuperViewOnHide;
/// @name Appearance
/**
* MBProgressHUD operation mode. The default is MBProgressHUDModeIndeterminate.
*/
@property (assign, nonatomic) MBProgressHUDMode mode;
/**
* A color that gets forwarded to all labels and supported indicators. Also sets the tintColor
* for custom views on iOS 7+. Set to nil to manage color individually.
* Defaults to semi-translucent black on iOS 7 and later and white on earlier iOS versions.
*/
@property (strong, nonatomic, nullable) UIColor *contentColor UI_APPEARANCE_SELECTOR;
/**
* The animation type that should be used when the HUD is shown and hidden.
*/
@property (assign, nonatomic) MBProgressHUDAnimation animationType UI_APPEARANCE_SELECTOR;
/**
* The bezel offset relative to the center of the view. You can use MBProgressMaxOffset
* and -MBProgressMaxOffset to move the HUD all the way to the screen edge in each direction.
* E.g., CGPointMake(0.f, MBProgressMaxOffset) would position the HUD centered on the bottom edge.
*/
@property (assign, nonatomic) CGPoint offset UI_APPEARANCE_SELECTOR;
/**
* The amount of space between the HUD edge and the HUD elements (labels, indicators or custom views).
* This also represents the minimum bezel distance to the edge of the HUD view.
* Defaults to 20.f
*/
@property (assign, nonatomic) CGFloat margin UI_APPEARANCE_SELECTOR;
/**
* The minimum size of the HUD bezel. Defaults to CGSizeZero (no minimum size).
*/
@property (assign, nonatomic) CGSize minSize UI_APPEARANCE_SELECTOR;
/**
* Force the HUD dimensions to be equal if possible.
*/
@property (assign, nonatomic, getter = isSquare) BOOL square UI_APPEARANCE_SELECTOR;
/**
* When enabled, the bezel center gets slightly affected by the device accelerometer data.
* Has no effect on iOS < 7.0. Defaults to YES.
*/
@property (assign, nonatomic, getter=areDefaultMotionEffectsEnabled) BOOL defaultMotionEffectsEnabled UI_APPEARANCE_SELECTOR;
/// @name Progress
/**
* The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0.
*/
@property (assign, nonatomic) float progress;
/// @name ProgressObject
/**
* The NSProgress object feeding the progress information to the progress indicator.
*/
@property (strong, nonatomic, nullable) NSProgress *progressObject;
/// @name Views
/**
* The view containing the labels and indicator (or customView).
*/
@property (strong, nonatomic, readonly) MBBackgroundView *bezelView;
/**
* View covering the entire HUD area, placed behind bezelView.
*/
@property (strong, nonatomic, readonly) MBBackgroundView *backgroundView;
/**
* The UIView (e.g., a UIImageView) to be shown when the HUD is in MBProgressHUDModeCustomView.
* The view should implement intrinsicContentSize for proper sizing. For best results use approximately 37 by 37 pixels.
*/
@property (strong, nonatomic, nullable) UIView *customView;
/**
* A label that holds an optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit
* the entire text.
*/
@property (strong, nonatomic, readonly) UILabel *label;
/**
* A label that holds an optional details message displayed below the labelText message. The details text can span multiple lines.
*/
@property (strong, nonatomic, readonly) UILabel *detailsLabel;
/**
* A button that is placed below the labels. Visible only if a target / action is added.
*/
@property (strong, nonatomic, readonly) UIButton *button;
@end
@protocol MBProgressHUDDelegate <NSObject>
@optional
/**
* Called after the HUD was fully hidden from the screen.
*/
- (void)hudWasHidden:(MBProgressHUD *)hud;
@end
/**
* A progress view for showing definite progress by filling up a circle (pie chart).
*/
@interface MBRoundProgressView : UIView
/**
* Progress (0.0 to 1.0)
*/
@property (nonatomic, assign) float progress;
/**
* Indicator progress color.
* Defaults to white [UIColor whiteColor].
*/
@property (nonatomic, strong) UIColor *progressTintColor;
/**
* Indicator background (non-progress) color.
* Only applicable on iOS versions older than iOS 7.
* Defaults to translucent white (alpha 0.1).
*/
@property (nonatomic, strong) UIColor *backgroundTintColor;
/*
* Display mode - NO = round or YES = annular. Defaults to round.
*/
@property (nonatomic, assign, getter = isAnnular) BOOL annular;
@end
/**
* A flat bar progress view.
*/
@interface MBBarProgressView : UIView
/**
* Progress (0.0 to 1.0)
*/
@property (nonatomic, assign) float progress;
/**
* Bar border line color.
* Defaults to white [UIColor whiteColor].
*/
@property (nonatomic, strong) UIColor *lineColor;
/**
* Bar background color.
* Defaults to clear [UIColor clearColor];
*/
@property (nonatomic, strong) UIColor *progressRemainingColor;
/**
* Bar progress color.
* Defaults to white [UIColor whiteColor].
*/
@property (nonatomic, strong) UIColor *progressColor;
@end
@interface MBBackgroundView : UIView
/**
* The background style.
* Defaults to MBProgressHUDBackgroundStyleBlur on iOS 7 or later and MBProgressHUDBackgroundStyleSolidColor otherwise.
* @note Due to iOS 7 not supporting UIVisualEffectView, the blur effect differs slightly between iOS 7 and later versions.
*/
@property (nonatomic) MBProgressHUDBackgroundStyle style;
/**
* The background color or the blur tint color.
* @note Due to iOS 7 not supporting UIVisualEffectView, the blur effect differs slightly between iOS 7 and later versions.
*/
@property (nonatomic, strong) UIColor *color;
@end
@interface MBProgressHUD (Deprecated)
+ (NSArray *)allHUDsForView:(UIView *)view __attribute__((deprecated("Store references when using more than one HUD per view.")));
+ (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated __attribute__((deprecated("Store references when using more than one HUD per view.")));
- (id)initWithWindow:(UIWindow *)window __attribute__((deprecated("Use initWithView: instead.")));
- (void)show:(BOOL)animated __attribute__((deprecated("Use showAnimated: instead.")));
- (void)hide:(BOOL)animated __attribute__((deprecated("Use hideAnimated: instead.")));
- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay __attribute__((deprecated("Use hideAnimated:afterDelay: instead.")));
- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated __attribute__((deprecated("Use GCD directly.")));
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block __attribute__((deprecated("Use GCD directly.")));
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(nullable MBProgressHUDCompletionBlock)completion __attribute__((deprecated("Use GCD directly.")));
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue __attribute__((deprecated("Use GCD directly.")));
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue
completionBlock:(nullable MBProgressHUDCompletionBlock)completion __attribute__((deprecated("Use GCD directly.")));
@property (assign) BOOL taskInProgress __attribute__((deprecated("No longer needed.")));
@property (nonatomic, copy) NSString *labelText __attribute__((deprecated("Use label.text instead.")));
@property (nonatomic, strong) UIFont *labelFont __attribute__((deprecated("Use label.font instead.")));
@property (nonatomic, strong) UIColor *labelColor __attribute__((deprecated("Use label.textColor instead.")));
@property (nonatomic, copy) NSString *detailsLabelText __attribute__((deprecated("Use detailsLabel.text instead.")));
@property (nonatomic, strong) UIFont *detailsLabelFont __attribute__((deprecated("Use detailsLabel.font instead.")));
@property (nonatomic, strong) UIColor *detailsLabelColor __attribute__((deprecated("Use detailsLabel.textColor instead.")));
@property (assign, nonatomic) CGFloat opacity __attribute__((deprecated("Customize bezelView properties instead.")));
@property (strong, nonatomic) UIColor *color __attribute__((deprecated("Customize the bezelView color instead.")));
@property (assign, nonatomic) CGFloat xOffset __attribute__((deprecated("Set offset.x instead.")));
@property (assign, nonatomic) CGFloat yOffset __attribute__((deprecated("Set offset.y instead.")));
@property (assign, nonatomic) CGFloat cornerRadius __attribute__((deprecated("Set bezelView.layer.cornerRadius instead.")));
@property (assign, nonatomic) BOOL dimBackground __attribute__((deprecated("Customize HUD background properties instead.")));
@property (strong, nonatomic) UIColor *activityIndicatorColor __attribute__((deprecated("Use UIAppearance to customize UIActivityIndicatorView. E.g.: [UIActivityIndicatorView appearanceWhenContainedIn:[MBProgressHUD class], nil].color = [UIColor redColor];")));
@property (atomic, assign, readonly) CGSize size __attribute__((deprecated("Get the bezelView.frame.size instead.")));
@end
NS_ASSUME_NONNULL_END
```
|
McKay McKinnon is an American physician specializing in plastic surgery. He works at Saint Joseph Hospital in Chicago, Illinois, Cedars-Sinai Medical Center in Los Angeles, California and the French-Vietnam Hospital in Ho Chi Minh City, Vietnam.
He graduated from medical school at the University of North Carolina School of Medicine. He completed his general surgery residency at Harvard University and his plastic surgery residency at the University of Miami. He completed plastic surgery fellowships at Children's Hospital in Boston, Massachusetts, University of Miami, and in Paris, France. He formerly served on the faculty at the University of Chicago Medical Center and worked at Lurie Children's Hospital in Chicago, Illinois.
Tumor removal and craniofacial surgeries
In 1999, McKinnon treated a Michigan woman with a large tumor disorder, neurofibroma, at the University of Chicago. He removed her 200-pound tumor in an 18-hour operation that drew worldwide attention, according to USA Today. McKinnon was subsequently featured on the Oprah Winfrey Show for successfully removing the world’s biggest solid tumor.
In 2004, McKinnon was invited on a mission to Romania to treat a similar patient with a giant neurofibroma tumor. With a team of doctors, he performed a 10-hour operation and successfully removed an 80-pound tumor from a 47-year-old woman that suffers from a genetic disorder causing tumors to grow on her body, according to BBC News.
From 1985-2014 he led missions to Choluteca, Honduras where he performed cleft lip and palate and other reconstructive surgery.
In 2011, on request of US 501(c) Tree of Life International, Sam-Ottawa of Canada-based Virtual Medical Miracle Network (VM2N) connected McKinnon to Nguyen Duy Hai of Dalat Lam Dong, Vietnam, who suffered from a non-cancerous tumor weighing 198-pound (90 kg), which was growing on the right side of his abdomen. A successful 12-hour operation was performed at French Vietnam Hospital in Saigon on January 5, 2012.
In October 2012, McKinnon was featured in the television program My Giant Face Tumor on the TLC Network. In the program, he successfully removed large facial tumors from two patients, one in Ohio and the other in Thailand, who suffer from neurofibromatosis.
References
Further reading
American plastic surgeons
Living people
Year of birth missing (living people)
University of Chicago faculty
University of North Carolina School of Medicine alumni
University of Miami staff
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// DO NOT EDIT. THIS FILE IS AUTO-GENERATED BY $KUBEROOT/hack/update-generated-conversions.sh
package v1
import (
reflect "reflect"
api "k8s.io/kubernetes/pkg/api"
resource "k8s.io/kubernetes/pkg/api/resource"
unversioned "k8s.io/kubernetes/pkg/api/unversioned"
conversion "k8s.io/kubernetes/pkg/conversion"
runtime "k8s.io/kubernetes/pkg/runtime"
)
func your_sha256_hashcBlockStoreVolumeSource(in *api.AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.AWSElasticBlockStoreVolumeSource))(in)
}
out.VolumeID = in.VolumeID
out.FSType = in.FSType
out.Partition = int32(in.Partition)
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashckStoreVolumeSource(in *api.AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, s conversion.Scope) error {
return your_sha256_hashcBlockStoreVolumeSource(in, out, s)
}
func your_sha256_hashe(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.AzureFileVolumeSource))(in)
}
out.SecretName = in.SecretName
out.ShareName = in.ShareName
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Binding))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Target, &out.Target, s); err != nil {
return err
}
return nil
}
func Convert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error {
return autoConvert_api_Binding_To_v1_Binding(in, out, s)
}
func autoConvert_api_Capabilities_To_v1_Capabilities(in *api.Capabilities, out *Capabilities, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Capabilities))(in)
}
if in.Add != nil {
out.Add = make([]Capability, len(in.Add))
for i := range in.Add {
out.Add[i] = Capability(in.Add[i])
}
} else {
out.Add = nil
}
if in.Drop != nil {
out.Drop = make([]Capability, len(in.Drop))
for i := range in.Drop {
out.Drop[i] = Capability(in.Drop[i])
}
} else {
out.Drop = nil
}
return nil
}
func Convert_api_Capabilities_To_v1_Capabilities(in *api.Capabilities, out *Capabilities, s conversion.Scope) error {
return autoConvert_api_Capabilities_To_v1_Capabilities(in, out, s)
}
func autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in *api.CephFSVolumeSource, out *CephFSVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.CephFSVolumeSource))(in)
}
if in.Monitors != nil {
out.Monitors = make([]string, len(in.Monitors))
for i := range in.Monitors {
out.Monitors[i] = in.Monitors[i]
}
} else {
out.Monitors = nil
}
out.Path = in.Path
out.User = in.User
out.SecretFile = in.SecretFile
// unable to generate simple pointer conversion for api.LocalObjectReference -> v1.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(LocalObjectReference)
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in *api.CephFSVolumeSource, out *CephFSVolumeSource, s conversion.Scope) error {
return autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in, out, s)
}
func autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in *api.CinderVolumeSource, out *CinderVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.CinderVolumeSource))(in)
}
out.VolumeID = in.VolumeID
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in *api.CinderVolumeSource, out *CinderVolumeSource, s conversion.Scope) error {
return autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in, out, s)
}
func autoConvert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCondition, out *ComponentCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ComponentCondition))(in)
}
out.Type = ComponentConditionType(in.Type)
out.Status = ConditionStatus(in.Status)
out.Message = in.Message
out.Error = in.Error
return nil
}
func Convert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCondition, out *ComponentCondition, s conversion.Scope) error {
return autoConvert_api_ComponentCondition_To_v1_ComponentCondition(in, out, s)
}
func autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ComponentStatus))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Conditions != nil {
out.Conditions = make([]ComponentCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_api_ComponentCondition_To_v1_ComponentCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
return nil
}
func Convert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error {
return autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in, out, s)
}
func autoConvert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.ComponentStatusList, out *ComponentStatusList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ComponentStatusList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]ComponentStatus, len(in.Items))
for i := range in.Items {
if err := Convert_api_ComponentStatus_To_v1_ComponentStatus(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.ComponentStatusList, out *ComponentStatusList, s conversion.Scope) error {
return autoConvert_api_ComponentStatusList_To_v1_ComponentStatusList(in, out, s)
}
func autoConvert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ConfigMap))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Data != nil {
out.Data = make(map[string]string)
for key, val := range in.Data {
out.Data[key] = val
}
} else {
out.Data = nil
}
return nil
}
func Convert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error {
return autoConvert_api_ConfigMap_To_v1_ConfigMap(in, out, s)
}
func autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigMapKeySelector, out *ConfigMapKeySelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ConfigMapKeySelector))(in)
}
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
out.Key = in.Key
return nil
}
func Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigMapKeySelector, out *ConfigMapKeySelector, s conversion.Scope) error {
return autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in, out, s)
}
func autoConvert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *ConfigMapList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ConfigMapList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]ConfigMap, len(in.Items))
for i := range in.Items {
if err := Convert_api_ConfigMap_To_v1_ConfigMap(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *ConfigMapList, s conversion.Scope) error {
return autoConvert_api_ConfigMapList_To_v1_ConfigMapList(in, out, s)
}
func your_sha256_hashe(in *api.ConfigMapVolumeSource, out *ConfigMapVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ConfigMapVolumeSource))(in)
}
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]KeyToPath, len(in.Items))
for i := range in.Items {
if err := Convert_api_KeyToPath_To_v1_KeyToPath(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.ConfigMapVolumeSource, out *ConfigMapVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_api_Container_To_v1_Container(in *api.Container, out *Container, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Container))(in)
}
out.Name = in.Name
out.Image = in.Image
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
if in.Args != nil {
out.Args = make([]string, len(in.Args))
for i := range in.Args {
out.Args[i] = in.Args[i]
}
} else {
out.Args = nil
}
out.WorkingDir = in.WorkingDir
if in.Ports != nil {
out.Ports = make([]ContainerPort, len(in.Ports))
for i := range in.Ports {
if err := Convert_api_ContainerPort_To_v1_ContainerPort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
if in.Env != nil {
out.Env = make([]EnvVar, len(in.Env))
for i := range in.Env {
if err := Convert_api_EnvVar_To_v1_EnvVar(&in.Env[i], &out.Env[i], s); err != nil {
return err
}
}
} else {
out.Env = nil
}
if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
return err
}
if in.VolumeMounts != nil {
out.VolumeMounts = make([]VolumeMount, len(in.VolumeMounts))
for i := range in.VolumeMounts {
if err := Convert_api_VolumeMount_To_v1_VolumeMount(&in.VolumeMounts[i], &out.VolumeMounts[i], s); err != nil {
return err
}
}
} else {
out.VolumeMounts = nil
}
// unable to generate simple pointer conversion for api.Probe -> v1.Probe
if in.LivenessProbe != nil {
out.LivenessProbe = new(Probe)
if err := Convert_api_Probe_To_v1_Probe(in.LivenessProbe, out.LivenessProbe, s); err != nil {
return err
}
} else {
out.LivenessProbe = nil
}
// unable to generate simple pointer conversion for api.Probe -> v1.Probe
if in.ReadinessProbe != nil {
out.ReadinessProbe = new(Probe)
if err := Convert_api_Probe_To_v1_Probe(in.ReadinessProbe, out.ReadinessProbe, s); err != nil {
return err
}
} else {
out.ReadinessProbe = nil
}
// unable to generate simple pointer conversion for api.Lifecycle -> v1.Lifecycle
if in.Lifecycle != nil {
out.Lifecycle = new(Lifecycle)
if err := Convert_api_Lifecycle_To_v1_Lifecycle(in.Lifecycle, out.Lifecycle, s); err != nil {
return err
}
} else {
out.Lifecycle = nil
}
out.TerminationMessagePath = in.TerminationMessagePath
out.ImagePullPolicy = PullPolicy(in.ImagePullPolicy)
// unable to generate simple pointer conversion for api.SecurityContext -> v1.SecurityContext
if in.SecurityContext != nil {
out.SecurityContext = new(SecurityContext)
if err := Convert_api_SecurityContext_To_v1_SecurityContext(in.SecurityContext, out.SecurityContext, s); err != nil {
return err
}
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.StdinOnce = in.StdinOnce
out.TTY = in.TTY
return nil
}
func Convert_api_Container_To_v1_Container(in *api.Container, out *Container, s conversion.Scope) error {
return autoConvert_api_Container_To_v1_Container(in, out, s)
}
func autoConvert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out *ContainerImage, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerImage))(in)
}
if in.Names != nil {
out.Names = make([]string, len(in.Names))
for i := range in.Names {
out.Names[i] = in.Names[i]
}
} else {
out.Names = nil
}
out.SizeBytes = in.SizeBytes
return nil
}
func Convert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out *ContainerImage, s conversion.Scope) error {
return autoConvert_api_ContainerImage_To_v1_ContainerImage(in, out, s)
}
func autoConvert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *ContainerPort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerPort))(in)
}
out.Name = in.Name
out.HostPort = int32(in.HostPort)
out.ContainerPort = int32(in.ContainerPort)
out.Protocol = Protocol(in.Protocol)
out.HostIP = in.HostIP
return nil
}
func Convert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *ContainerPort, s conversion.Scope) error {
return autoConvert_api_ContainerPort_To_v1_ContainerPort(in, out, s)
}
func autoConvert_api_ContainerState_To_v1_ContainerState(in *api.ContainerState, out *ContainerState, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerState))(in)
}
// unable to generate simple pointer conversion for api.ContainerStateWaiting -> v1.ContainerStateWaiting
if in.Waiting != nil {
out.Waiting = new(ContainerStateWaiting)
if err := Convert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(in.Waiting, out.Waiting, s); err != nil {
return err
}
} else {
out.Waiting = nil
}
// unable to generate simple pointer conversion for api.ContainerStateRunning -> v1.ContainerStateRunning
if in.Running != nil {
out.Running = new(ContainerStateRunning)
if err := Convert_api_ContainerStateRunning_To_v1_ContainerStateRunning(in.Running, out.Running, s); err != nil {
return err
}
} else {
out.Running = nil
}
// unable to generate simple pointer conversion for api.ContainerStateTerminated -> v1.ContainerStateTerminated
if in.Terminated != nil {
out.Terminated = new(ContainerStateTerminated)
if err := your_sha256_hashted(in.Terminated, out.Terminated, s); err != nil {
return err
}
} else {
out.Terminated = nil
}
return nil
}
func Convert_api_ContainerState_To_v1_ContainerState(in *api.ContainerState, out *ContainerState, s conversion.Scope) error {
return autoConvert_api_ContainerState_To_v1_ContainerState(in, out, s)
}
func your_sha256_hashg(in *api.ContainerStateRunning, out *ContainerStateRunning, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerStateRunning))(in)
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil {
return err
}
return nil
}
func Convert_api_ContainerStateRunning_To_v1_ContainerStateRunning(in *api.ContainerStateRunning, out *ContainerStateRunning, s conversion.Scope) error {
return your_sha256_hashg(in, out, s)
}
func your_sha256_hashminated(in *api.ContainerStateTerminated, out *ContainerStateTerminated, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerStateTerminated))(in)
}
out.ExitCode = int32(in.ExitCode)
out.Signal = int32(in.Signal)
out.Reason = in.Reason
out.Message = in.Message
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FinishedAt, &out.FinishedAt, s); err != nil {
return err
}
out.ContainerID = in.ContainerID
return nil
}
func your_sha256_hashted(in *api.ContainerStateTerminated, out *ContainerStateTerminated, s conversion.Scope) error {
return your_sha256_hashminated(in, out, s)
}
func your_sha256_hashg(in *api.ContainerStateWaiting, out *ContainerStateWaiting, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerStateWaiting))(in)
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(in *api.ContainerStateWaiting, out *ContainerStateWaiting, s conversion.Scope) error {
return your_sha256_hashg(in, out, s)
}
func autoConvert_api_ContainerStatus_To_v1_ContainerStatus(in *api.ContainerStatus, out *ContainerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ContainerStatus))(in)
}
out.Name = in.Name
if err := Convert_api_ContainerState_To_v1_ContainerState(&in.State, &out.State, s); err != nil {
return err
}
if err := Convert_api_ContainerState_To_v1_ContainerState(&in.LastTerminationState, &out.LastTerminationState, s); err != nil {
return err
}
out.Ready = in.Ready
out.RestartCount = int32(in.RestartCount)
out.Image = in.Image
out.ImageID = in.ImageID
out.ContainerID = in.ContainerID
return nil
}
func Convert_api_ContainerStatus_To_v1_ContainerStatus(in *api.ContainerStatus, out *ContainerStatus, s conversion.Scope) error {
return autoConvert_api_ContainerStatus_To_v1_ContainerStatus(in, out, s)
}
func autoConvert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in *api.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.DaemonEndpoint))(in)
}
out.Port = int32(in.Port)
return nil
}
func Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in *api.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error {
return autoConvert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in, out, s)
}
func autoConvert_api_DeleteOptions_To_v1_DeleteOptions(in *api.DeleteOptions, out *DeleteOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.DeleteOptions))(in)
}
if in.GracePeriodSeconds != nil {
out.GracePeriodSeconds = new(int64)
*out.GracePeriodSeconds = *in.GracePeriodSeconds
} else {
out.GracePeriodSeconds = nil
}
return nil
}
func Convert_api_DeleteOptions_To_v1_DeleteOptions(in *api.DeleteOptions, out *DeleteOptions, s conversion.Scope) error {
return autoConvert_api_DeleteOptions_To_v1_DeleteOptions(in, out, s)
}
func your_sha256_hashe(in *api.DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.DownwardAPIVolumeFile))(in)
}
out.Path = in.Path
if err := Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(&in.FieldRef, &out.FieldRef, s); err != nil {
return err
}
return nil
}
func Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func your_sha256_hashource(in *api.DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.DownwardAPIVolumeSource))(in)
}
if in.Items != nil {
out.Items = make([]DownwardAPIVolumeFile, len(in.Items))
for i := range in.Items {
if err := Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashe(in *api.DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, s conversion.Scope) error {
return your_sha256_hashource(in, out, s)
}
func autoConvert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDirVolumeSource, out *EmptyDirVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EmptyDirVolumeSource))(in)
}
out.Medium = StorageMedium(in.Medium)
return nil
}
func Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDirVolumeSource, out *EmptyDirVolumeSource, s conversion.Scope) error {
return autoConvert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in, out, s)
}
func autoConvert_api_EndpointAddress_To_v1_EndpointAddress(in *api.EndpointAddress, out *EndpointAddress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EndpointAddress))(in)
}
out.IP = in.IP
// unable to generate simple pointer conversion for api.ObjectReference -> v1.ObjectReference
if in.TargetRef != nil {
out.TargetRef = new(ObjectReference)
if err := Convert_api_ObjectReference_To_v1_ObjectReference(in.TargetRef, out.TargetRef, s); err != nil {
return err
}
} else {
out.TargetRef = nil
}
return nil
}
func Convert_api_EndpointAddress_To_v1_EndpointAddress(in *api.EndpointAddress, out *EndpointAddress, s conversion.Scope) error {
return autoConvert_api_EndpointAddress_To_v1_EndpointAddress(in, out, s)
}
func autoConvert_api_EndpointPort_To_v1_EndpointPort(in *api.EndpointPort, out *EndpointPort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EndpointPort))(in)
}
out.Name = in.Name
out.Port = int32(in.Port)
out.Protocol = Protocol(in.Protocol)
return nil
}
func Convert_api_EndpointPort_To_v1_EndpointPort(in *api.EndpointPort, out *EndpointPort, s conversion.Scope) error {
return autoConvert_api_EndpointPort_To_v1_EndpointPort(in, out, s)
}
func autoConvert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out *EndpointSubset, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EndpointSubset))(in)
}
if in.Addresses != nil {
out.Addresses = make([]EndpointAddress, len(in.Addresses))
for i := range in.Addresses {
if err := Convert_api_EndpointAddress_To_v1_EndpointAddress(&in.Addresses[i], &out.Addresses[i], s); err != nil {
return err
}
}
} else {
out.Addresses = nil
}
if in.NotReadyAddresses != nil {
out.NotReadyAddresses = make([]EndpointAddress, len(in.NotReadyAddresses))
for i := range in.NotReadyAddresses {
if err := Convert_api_EndpointAddress_To_v1_EndpointAddress(&in.NotReadyAddresses[i], &out.NotReadyAddresses[i], s); err != nil {
return err
}
}
} else {
out.NotReadyAddresses = nil
}
if in.Ports != nil {
out.Ports = make([]EndpointPort, len(in.Ports))
for i := range in.Ports {
if err := Convert_api_EndpointPort_To_v1_EndpointPort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
return nil
}
func Convert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out *EndpointSubset, s conversion.Scope) error {
return autoConvert_api_EndpointSubset_To_v1_EndpointSubset(in, out, s)
}
func autoConvert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Endpoints))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Subsets != nil {
out.Subsets = make([]EndpointSubset, len(in.Subsets))
for i := range in.Subsets {
if err := Convert_api_EndpointSubset_To_v1_EndpointSubset(&in.Subsets[i], &out.Subsets[i], s); err != nil {
return err
}
}
} else {
out.Subsets = nil
}
return nil
}
func Convert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error {
return autoConvert_api_Endpoints_To_v1_Endpoints(in, out, s)
}
func autoConvert_api_EndpointsList_To_v1_EndpointsList(in *api.EndpointsList, out *EndpointsList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EndpointsList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Endpoints, len(in.Items))
for i := range in.Items {
if err := Convert_api_Endpoints_To_v1_Endpoints(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_EndpointsList_To_v1_EndpointsList(in *api.EndpointsList, out *EndpointsList, s conversion.Scope) error {
return autoConvert_api_EndpointsList_To_v1_EndpointsList(in, out, s)
}
func autoConvert_api_EnvVar_To_v1_EnvVar(in *api.EnvVar, out *EnvVar, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EnvVar))(in)
}
out.Name = in.Name
out.Value = in.Value
// unable to generate simple pointer conversion for api.EnvVarSource -> v1.EnvVarSource
if in.ValueFrom != nil {
out.ValueFrom = new(EnvVarSource)
if err := Convert_api_EnvVarSource_To_v1_EnvVarSource(in.ValueFrom, out.ValueFrom, s); err != nil {
return err
}
} else {
out.ValueFrom = nil
}
return nil
}
func Convert_api_EnvVar_To_v1_EnvVar(in *api.EnvVar, out *EnvVar, s conversion.Scope) error {
return autoConvert_api_EnvVar_To_v1_EnvVar(in, out, s)
}
func autoConvert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvVarSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EnvVarSource))(in)
}
// unable to generate simple pointer conversion for api.ObjectFieldSelector -> v1.ObjectFieldSelector
if in.FieldRef != nil {
out.FieldRef = new(ObjectFieldSelector)
if err := Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in.FieldRef, out.FieldRef, s); err != nil {
return err
}
} else {
out.FieldRef = nil
}
// unable to generate simple pointer conversion for api.ConfigMapKeySelector -> v1.ConfigMapKeySelector
if in.ConfigMapKeyRef != nil {
out.ConfigMapKeyRef = new(ConfigMapKeySelector)
if err := Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in.ConfigMapKeyRef, out.ConfigMapKeyRef, s); err != nil {
return err
}
} else {
out.ConfigMapKeyRef = nil
}
// unable to generate simple pointer conversion for api.SecretKeySelector -> v1.SecretKeySelector
if in.SecretKeyRef != nil {
out.SecretKeyRef = new(SecretKeySelector)
if err := Convert_api_SecretKeySelector_To_v1_SecretKeySelector(in.SecretKeyRef, out.SecretKeyRef, s); err != nil {
return err
}
} else {
out.SecretKeyRef = nil
}
return nil
}
func Convert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvVarSource, s conversion.Scope) error {
return autoConvert_api_EnvVarSource_To_v1_EnvVarSource(in, out, s)
}
func autoConvert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Event))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
if err := Convert_api_EventSource_To_v1_EventSource(&in.Source, &out.Source, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FirstTimestamp, &out.FirstTimestamp, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTimestamp, &out.LastTimestamp, s); err != nil {
return err
}
out.Count = int32(in.Count)
out.Type = in.Type
return nil
}
func Convert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error {
return autoConvert_api_Event_To_v1_Event(in, out, s)
}
func autoConvert_api_EventList_To_v1_EventList(in *api.EventList, out *EventList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EventList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Event, len(in.Items))
for i := range in.Items {
if err := Convert_api_Event_To_v1_Event(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_EventList_To_v1_EventList(in *api.EventList, out *EventList, s conversion.Scope) error {
return autoConvert_api_EventList_To_v1_EventList(in, out, s)
}
func autoConvert_api_EventSource_To_v1_EventSource(in *api.EventSource, out *EventSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.EventSource))(in)
}
out.Component = in.Component
out.Host = in.Host
return nil
}
func Convert_api_EventSource_To_v1_EventSource(in *api.EventSource, out *EventSource, s conversion.Scope) error {
return autoConvert_api_EventSource_To_v1_EventSource(in, out, s)
}
func autoConvert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ExecAction))(in)
}
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
return nil
}
func Convert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction, s conversion.Scope) error {
return autoConvert_api_ExecAction_To_v1_ExecAction(in, out, s)
}
func autoConvert_api_FCVolumeSource_To_v1_FCVolumeSource(in *api.FCVolumeSource, out *FCVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.FCVolumeSource))(in)
}
if in.TargetWWNs != nil {
out.TargetWWNs = make([]string, len(in.TargetWWNs))
for i := range in.TargetWWNs {
out.TargetWWNs[i] = in.TargetWWNs[i]
}
} else {
out.TargetWWNs = nil
}
if in.Lun != nil {
out.Lun = new(int32)
*out.Lun = int32(*in.Lun)
} else {
out.Lun = nil
}
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_FCVolumeSource_To_v1_FCVolumeSource(in *api.FCVolumeSource, out *FCVolumeSource, s conversion.Scope) error {
return autoConvert_api_FCVolumeSource_To_v1_FCVolumeSource(in, out, s)
}
func autoConvert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in *api.FlexVolumeSource, out *FlexVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.FlexVolumeSource))(in)
}
out.Driver = in.Driver
out.FSType = in.FSType
// unable to generate simple pointer conversion for api.LocalObjectReference -> v1.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(LocalObjectReference)
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
if in.Options != nil {
out.Options = make(map[string]string)
for key, val := range in.Options {
out.Options[key] = val
}
} else {
out.Options = nil
}
return nil
}
func Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in *api.FlexVolumeSource, out *FlexVolumeSource, s conversion.Scope) error {
return autoConvert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in, out, s)
}
func autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in *api.FlockerVolumeSource, out *FlockerVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.FlockerVolumeSource))(in)
}
out.DatasetName = in.DatasetName
return nil
}
func Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in *api.FlockerVolumeSource, out *FlockerVolumeSource, s conversion.Scope) error {
return autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in, out, s)
}
func your_sha256_hashtDiskVolumeSource(in *api.GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.GCEPersistentDiskVolumeSource))(in)
}
out.PDName = in.PDName
out.FSType = in.FSType
out.Partition = int32(in.Partition)
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashkVolumeSource(in *api.GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, s conversion.Scope) error {
return your_sha256_hashtDiskVolumeSource(in, out, s)
}
func autoConvert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in *api.GitRepoVolumeSource, out *GitRepoVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.GitRepoVolumeSource))(in)
}
out.Repository = in.Repository
out.Revision = in.Revision
out.Directory = in.Directory
return nil
}
func Convert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in *api.GitRepoVolumeSource, out *GitRepoVolumeSource, s conversion.Scope) error {
return autoConvert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in, out, s)
}
func your_sha256_hashe(in *api.GlusterfsVolumeSource, out *GlusterfsVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.GlusterfsVolumeSource))(in)
}
out.EndpointsName = in.EndpointsName
out.Path = in.Path
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in *api.GlusterfsVolumeSource, out *GlusterfsVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_api_HTTPGetAction_To_v1_HTTPGetAction(in *api.HTTPGetAction, out *HTTPGetAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.HTTPGetAction))(in)
}
out.Path = in.Path
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil {
return err
}
out.Host = in.Host
out.Scheme = URIScheme(in.Scheme)
if in.HTTPHeaders != nil {
out.HTTPHeaders = make([]HTTPHeader, len(in.HTTPHeaders))
for i := range in.HTTPHeaders {
if err := Convert_api_HTTPHeader_To_v1_HTTPHeader(&in.HTTPHeaders[i], &out.HTTPHeaders[i], s); err != nil {
return err
}
}
} else {
out.HTTPHeaders = nil
}
return nil
}
func Convert_api_HTTPGetAction_To_v1_HTTPGetAction(in *api.HTTPGetAction, out *HTTPGetAction, s conversion.Scope) error {
return autoConvert_api_HTTPGetAction_To_v1_HTTPGetAction(in, out, s)
}
func autoConvert_api_HTTPHeader_To_v1_HTTPHeader(in *api.HTTPHeader, out *HTTPHeader, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.HTTPHeader))(in)
}
out.Name = in.Name
out.Value = in.Value
return nil
}
func Convert_api_HTTPHeader_To_v1_HTTPHeader(in *api.HTTPHeader, out *HTTPHeader, s conversion.Scope) error {
return autoConvert_api_HTTPHeader_To_v1_HTTPHeader(in, out, s)
}
func autoConvert_api_Handler_To_v1_Handler(in *api.Handler, out *Handler, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Handler))(in)
}
// unable to generate simple pointer conversion for api.ExecAction -> v1.ExecAction
if in.Exec != nil {
out.Exec = new(ExecAction)
if err := Convert_api_ExecAction_To_v1_ExecAction(in.Exec, out.Exec, s); err != nil {
return err
}
} else {
out.Exec = nil
}
// unable to generate simple pointer conversion for api.HTTPGetAction -> v1.HTTPGetAction
if in.HTTPGet != nil {
out.HTTPGet = new(HTTPGetAction)
if err := Convert_api_HTTPGetAction_To_v1_HTTPGetAction(in.HTTPGet, out.HTTPGet, s); err != nil {
return err
}
} else {
out.HTTPGet = nil
}
// unable to generate simple pointer conversion for api.TCPSocketAction -> v1.TCPSocketAction
if in.TCPSocket != nil {
out.TCPSocket = new(TCPSocketAction)
if err := Convert_api_TCPSocketAction_To_v1_TCPSocketAction(in.TCPSocket, out.TCPSocket, s); err != nil {
return err
}
} else {
out.TCPSocket = nil
}
return nil
}
func Convert_api_Handler_To_v1_Handler(in *api.Handler, out *Handler, s conversion.Scope) error {
return autoConvert_api_Handler_To_v1_Handler(in, out, s)
}
func autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in *api.HostPathVolumeSource, out *HostPathVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.HostPathVolumeSource))(in)
}
out.Path = in.Path
return nil
}
func Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in *api.HostPathVolumeSource, out *HostPathVolumeSource, s conversion.Scope) error {
return autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in, out, s)
}
func autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSource, out *ISCSIVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ISCSIVolumeSource))(in)
}
out.TargetPortal = in.TargetPortal
out.IQN = in.IQN
out.Lun = int32(in.Lun)
out.ISCSIInterface = in.ISCSIInterface
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSource, out *ISCSIVolumeSource, s conversion.Scope) error {
return autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in, out, s)
}
func autoConvert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.KeyToPath))(in)
}
out.Key = in.Key
out.Path = in.Path
return nil
}
func Convert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, s conversion.Scope) error {
return autoConvert_api_KeyToPath_To_v1_KeyToPath(in, out, s)
}
func autoConvert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Lifecycle))(in)
}
// unable to generate simple pointer conversion for api.Handler -> v1.Handler
if in.PostStart != nil {
out.PostStart = new(Handler)
if err := Convert_api_Handler_To_v1_Handler(in.PostStart, out.PostStart, s); err != nil {
return err
}
} else {
out.PostStart = nil
}
// unable to generate simple pointer conversion for api.Handler -> v1.Handler
if in.PreStop != nil {
out.PreStop = new(Handler)
if err := Convert_api_Handler_To_v1_Handler(in.PreStop, out.PreStop, s); err != nil {
return err
}
} else {
out.PreStop = nil
}
return nil
}
func Convert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, s conversion.Scope) error {
return autoConvert_api_Lifecycle_To_v1_Lifecycle(in, out, s)
}
func autoConvert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LimitRange))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
func Convert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error {
return autoConvert_api_LimitRange_To_v1_LimitRange(in, out, s)
}
func autoConvert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out *LimitRangeItem, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LimitRangeItem))(in)
}
out.Type = LimitType(in.Type)
if in.Max != nil {
out.Max = make(ResourceList)
for key, val := range in.Max {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Max[ResourceName(key)] = newVal
}
} else {
out.Max = nil
}
if in.Min != nil {
out.Min = make(ResourceList)
for key, val := range in.Min {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Min[ResourceName(key)] = newVal
}
} else {
out.Min = nil
}
if in.Default != nil {
out.Default = make(ResourceList)
for key, val := range in.Default {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Default[ResourceName(key)] = newVal
}
} else {
out.Default = nil
}
if in.DefaultRequest != nil {
out.DefaultRequest = make(ResourceList)
for key, val := range in.DefaultRequest {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.DefaultRequest[ResourceName(key)] = newVal
}
} else {
out.DefaultRequest = nil
}
if in.MaxLimitRequestRatio != nil {
out.MaxLimitRequestRatio = make(ResourceList)
for key, val := range in.MaxLimitRequestRatio {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.MaxLimitRequestRatio[ResourceName(key)] = newVal
}
} else {
out.MaxLimitRequestRatio = nil
}
return nil
}
func Convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out *LimitRangeItem, s conversion.Scope) error {
return autoConvert_api_LimitRangeItem_To_v1_LimitRangeItem(in, out, s)
}
func autoConvert_api_LimitRangeList_To_v1_LimitRangeList(in *api.LimitRangeList, out *LimitRangeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LimitRangeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]LimitRange, len(in.Items))
for i := range in.Items {
if err := Convert_api_LimitRange_To_v1_LimitRange(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_LimitRangeList_To_v1_LimitRangeList(in *api.LimitRangeList, out *LimitRangeList, s conversion.Scope) error {
return autoConvert_api_LimitRangeList_To_v1_LimitRangeList(in, out, s)
}
func autoConvert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in *api.LimitRangeSpec, out *LimitRangeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LimitRangeSpec))(in)
}
if in.Limits != nil {
out.Limits = make([]LimitRangeItem, len(in.Limits))
for i := range in.Limits {
if err := Convert_api_LimitRangeItem_To_v1_LimitRangeItem(&in.Limits[i], &out.Limits[i], s); err != nil {
return err
}
}
} else {
out.Limits = nil
}
return nil
}
func Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in *api.LimitRangeSpec, out *LimitRangeSpec, s conversion.Scope) error {
return autoConvert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in, out, s)
}
func autoConvert_api_List_To_v1_List(in *api.List, out *List, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.List))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]runtime.RawExtension, len(in.Items))
for i := range in.Items {
if err := s.Convert(&in.Items[i], &out.Items[i], 0); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_List_To_v1_List(in *api.List, out *List, s conversion.Scope) error {
return autoConvert_api_List_To_v1_List(in, out, s)
}
func autoConvert_api_ListOptions_To_v1_ListOptions(in *api.ListOptions, out *ListOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ListOptions))(in)
}
if err := api.Convert_labels_Selector_To_string(&in.LabelSelector, &out.LabelSelector, s); err != nil {
return err
}
if err := api.Convert_fields_Selector_To_string(&in.FieldSelector, &out.FieldSelector, s); err != nil {
return err
}
out.Watch = in.Watch
out.ResourceVersion = in.ResourceVersion
if in.TimeoutSeconds != nil {
out.TimeoutSeconds = new(int64)
*out.TimeoutSeconds = *in.TimeoutSeconds
} else {
out.TimeoutSeconds = nil
}
return nil
}
func Convert_api_ListOptions_To_v1_ListOptions(in *api.ListOptions, out *ListOptions, s conversion.Scope) error {
return autoConvert_api_ListOptions_To_v1_ListOptions(in, out, s)
}
func autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in *api.LoadBalancerIngress, out *LoadBalancerIngress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LoadBalancerIngress))(in)
}
out.IP = in.IP
out.Hostname = in.Hostname
return nil
}
func Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in *api.LoadBalancerIngress, out *LoadBalancerIngress, s conversion.Scope) error {
return autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in, out, s)
}
func autoConvert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in *api.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LoadBalancerStatus))(in)
}
if in.Ingress != nil {
out.Ingress = make([]LoadBalancerIngress, len(in.Ingress))
for i := range in.Ingress {
if err := Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(&in.Ingress[i], &out.Ingress[i], s); err != nil {
return err
}
}
} else {
out.Ingress = nil
}
return nil
}
func Convert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in *api.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error {
return autoConvert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in, out, s)
}
func autoConvert_api_LocalObjectReference_To_v1_LocalObjectReference(in *api.LocalObjectReference, out *LocalObjectReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.LocalObjectReference))(in)
}
out.Name = in.Name
return nil
}
func Convert_api_LocalObjectReference_To_v1_LocalObjectReference(in *api.LocalObjectReference, out *LocalObjectReference, s conversion.Scope) error {
return autoConvert_api_LocalObjectReference_To_v1_LocalObjectReference(in, out, s)
}
func autoConvert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource, out *NFSVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NFSVolumeSource))(in)
}
out.Server = in.Server
out.Path = in.Path
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource, out *NFSVolumeSource, s conversion.Scope) error {
return autoConvert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in, out, s)
}
func autoConvert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Namespace))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_NamespaceSpec_To_v1_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_NamespaceStatus_To_v1_NamespaceStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error {
return autoConvert_api_Namespace_To_v1_Namespace(in, out, s)
}
func autoConvert_api_NamespaceList_To_v1_NamespaceList(in *api.NamespaceList, out *NamespaceList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NamespaceList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Namespace, len(in.Items))
for i := range in.Items {
if err := Convert_api_Namespace_To_v1_Namespace(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_NamespaceList_To_v1_NamespaceList(in *api.NamespaceList, out *NamespaceList, s conversion.Scope) error {
return autoConvert_api_NamespaceList_To_v1_NamespaceList(in, out, s)
}
func autoConvert_api_NamespaceSpec_To_v1_NamespaceSpec(in *api.NamespaceSpec, out *NamespaceSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NamespaceSpec))(in)
}
if in.Finalizers != nil {
out.Finalizers = make([]FinalizerName, len(in.Finalizers))
for i := range in.Finalizers {
out.Finalizers[i] = FinalizerName(in.Finalizers[i])
}
} else {
out.Finalizers = nil
}
return nil
}
func Convert_api_NamespaceSpec_To_v1_NamespaceSpec(in *api.NamespaceSpec, out *NamespaceSpec, s conversion.Scope) error {
return autoConvert_api_NamespaceSpec_To_v1_NamespaceSpec(in, out, s)
}
func autoConvert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus, out *NamespaceStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NamespaceStatus))(in)
}
out.Phase = NamespacePhase(in.Phase)
return nil
}
func Convert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus, out *NamespaceStatus, s conversion.Scope) error {
return autoConvert_api_NamespaceStatus_To_v1_NamespaceStatus(in, out, s)
}
func autoConvert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Node))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_NodeSpec_To_v1_NodeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_NodeStatus_To_v1_NodeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error {
return autoConvert_api_Node_To_v1_Node(in, out, s)
}
func autoConvert_api_NodeAddress_To_v1_NodeAddress(in *api.NodeAddress, out *NodeAddress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeAddress))(in)
}
out.Type = NodeAddressType(in.Type)
out.Address = in.Address
return nil
}
func Convert_api_NodeAddress_To_v1_NodeAddress(in *api.NodeAddress, out *NodeAddress, s conversion.Scope) error {
return autoConvert_api_NodeAddress_To_v1_NodeAddress(in, out, s)
}
func autoConvert_api_NodeCondition_To_v1_NodeCondition(in *api.NodeCondition, out *NodeCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeCondition))(in)
}
out.Type = NodeConditionType(in.Type)
out.Status = ConditionStatus(in.Status)
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastHeartbeatTime, &out.LastHeartbeatTime, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_api_NodeCondition_To_v1_NodeCondition(in *api.NodeCondition, out *NodeCondition, s conversion.Scope) error {
return autoConvert_api_NodeCondition_To_v1_NodeCondition(in, out, s)
}
func autoConvert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in *api.NodeDaemonEndpoints, out *NodeDaemonEndpoints, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeDaemonEndpoints))(in)
}
if err := Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint(&in.KubeletEndpoint, &out.KubeletEndpoint, s); err != nil {
return err
}
return nil
}
func Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in *api.NodeDaemonEndpoints, out *NodeDaemonEndpoints, s conversion.Scope) error {
return autoConvert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in, out, s)
}
func autoConvert_api_NodeList_To_v1_NodeList(in *api.NodeList, out *NodeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Node, len(in.Items))
for i := range in.Items {
if err := Convert_api_Node_To_v1_Node(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_NodeList_To_v1_NodeList(in *api.NodeList, out *NodeList, s conversion.Scope) error {
return autoConvert_api_NodeList_To_v1_NodeList(in, out, s)
}
func autoConvert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in *api.NodeProxyOptions, out *NodeProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in *api.NodeProxyOptions, out *NodeProxyOptions, s conversion.Scope) error {
return autoConvert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in, out, s)
}
func autoConvert_api_NodeSpec_To_v1_NodeSpec(in *api.NodeSpec, out *NodeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeSpec))(in)
}
out.PodCIDR = in.PodCIDR
out.ExternalID = in.ExternalID
out.ProviderID = in.ProviderID
out.Unschedulable = in.Unschedulable
return nil
}
func Convert_api_NodeSpec_To_v1_NodeSpec(in *api.NodeSpec, out *NodeSpec, s conversion.Scope) error {
return autoConvert_api_NodeSpec_To_v1_NodeSpec(in, out, s)
}
func autoConvert_api_NodeStatus_To_v1_NodeStatus(in *api.NodeStatus, out *NodeStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeStatus))(in)
}
if in.Capacity != nil {
out.Capacity = make(ResourceList)
for key, val := range in.Capacity {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Capacity[ResourceName(key)] = newVal
}
} else {
out.Capacity = nil
}
if in.Allocatable != nil {
out.Allocatable = make(ResourceList)
for key, val := range in.Allocatable {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Allocatable[ResourceName(key)] = newVal
}
} else {
out.Allocatable = nil
}
out.Phase = NodePhase(in.Phase)
if in.Conditions != nil {
out.Conditions = make([]NodeCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_api_NodeCondition_To_v1_NodeCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
if in.Addresses != nil {
out.Addresses = make([]NodeAddress, len(in.Addresses))
for i := range in.Addresses {
if err := Convert_api_NodeAddress_To_v1_NodeAddress(&in.Addresses[i], &out.Addresses[i], s); err != nil {
return err
}
}
} else {
out.Addresses = nil
}
if err := Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(&in.DaemonEndpoints, &out.DaemonEndpoints, s); err != nil {
return err
}
if err := Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo(&in.NodeInfo, &out.NodeInfo, s); err != nil {
return err
}
if in.Images != nil {
out.Images = make([]ContainerImage, len(in.Images))
for i := range in.Images {
if err := Convert_api_ContainerImage_To_v1_ContainerImage(&in.Images[i], &out.Images[i], s); err != nil {
return err
}
}
} else {
out.Images = nil
}
return nil
}
func Convert_api_NodeStatus_To_v1_NodeStatus(in *api.NodeStatus, out *NodeStatus, s conversion.Scope) error {
return autoConvert_api_NodeStatus_To_v1_NodeStatus(in, out, s)
}
func autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo, out *NodeSystemInfo, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.NodeSystemInfo))(in)
}
out.MachineID = in.MachineID
out.SystemUUID = in.SystemUUID
out.BootID = in.BootID
out.KernelVersion = in.KernelVersion
out.OSImage = in.OSImage
out.ContainerRuntimeVersion = in.ContainerRuntimeVersion
out.KubeletVersion = in.KubeletVersion
out.KubeProxyVersion = in.KubeProxyVersion
return nil
}
func Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo, out *NodeSystemInfo, s conversion.Scope) error {
return autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in, out, s)
}
func autoConvert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in *api.ObjectFieldSelector, out *ObjectFieldSelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ObjectFieldSelector))(in)
}
out.APIVersion = in.APIVersion
out.FieldPath = in.FieldPath
return nil
}
func Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in *api.ObjectFieldSelector, out *ObjectFieldSelector, s conversion.Scope) error {
return autoConvert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in, out, s)
}
func autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *ObjectMeta, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ObjectMeta))(in)
}
out.Name = in.Name
out.GenerateName = in.GenerateName
out.Namespace = in.Namespace
out.SelfLink = in.SelfLink
out.UID = in.UID
out.ResourceVersion = in.ResourceVersion
out.Generation = in.Generation
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.CreationTimestamp, &out.CreationTimestamp, s); err != nil {
return err
}
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.DeletionTimestamp != nil {
out.DeletionTimestamp = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.DeletionTimestamp, out.DeletionTimestamp, s); err != nil {
return err
}
} else {
out.DeletionTimestamp = nil
}
if in.DeletionGracePeriodSeconds != nil {
out.DeletionGracePeriodSeconds = new(int64)
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
} else {
out.DeletionGracePeriodSeconds = nil
}
if in.Labels != nil {
out.Labels = make(map[string]string)
for key, val := range in.Labels {
out.Labels[key] = val
}
} else {
out.Labels = nil
}
if in.Annotations != nil {
out.Annotations = make(map[string]string)
for key, val := range in.Annotations {
out.Annotations[key] = val
}
} else {
out.Annotations = nil
}
return nil
}
func Convert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *ObjectMeta, s conversion.Scope) error {
return autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in, out, s)
}
func autoConvert_api_ObjectReference_To_v1_ObjectReference(in *api.ObjectReference, out *ObjectReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ObjectReference))(in)
}
out.Kind = in.Kind
out.Namespace = in.Namespace
out.Name = in.Name
out.UID = in.UID
out.APIVersion = in.APIVersion
out.ResourceVersion = in.ResourceVersion
out.FieldPath = in.FieldPath
return nil
}
func Convert_api_ObjectReference_To_v1_ObjectReference(in *api.ObjectReference, out *ObjectReference, s conversion.Scope) error {
return autoConvert_api_ObjectReference_To_v1_ObjectReference(in, out, s)
}
func autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolume))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error {
return autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in, out, s)
}
func your_sha256_hashm(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeClaim))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := your_sha256_hashmSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := your_sha256_hashaimStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error {
return your_sha256_hashm(in, out, s)
}
func your_sha256_hashClaimList(in *api.PersistentVolumeClaimList, out *PersistentVolumeClaimList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeClaimList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]PersistentVolumeClaim, len(in.Items))
for i := range in.Items {
if err := Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashmList(in *api.PersistentVolumeClaimList, out *PersistentVolumeClaimList, s conversion.Scope) error {
return your_sha256_hashClaimList(in, out, s)
}
func your_sha256_hashClaimSpec(in *api.PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeClaimSpec))(in)
}
if in.AccessModes != nil {
out.AccessModes = make([]PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
return err
}
out.VolumeName = in.VolumeName
return nil
}
func your_sha256_hashmSpec(in *api.PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, s conversion.Scope) error {
return your_sha256_hashClaimSpec(in, out, s)
}
func your_sha256_hashmeClaimStatus(in *api.PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeClaimStatus))(in)
}
out.Phase = PersistentVolumeClaimPhase(in.Phase)
if in.AccessModes != nil {
out.AccessModes = make([]PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
if in.Capacity != nil {
out.Capacity = make(ResourceList)
for key, val := range in.Capacity {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Capacity[ResourceName(key)] = newVal
}
} else {
out.Capacity = nil
}
return nil
}
func your_sha256_hashaimStatus(in *api.PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, s conversion.Scope) error {
return your_sha256_hashmeClaimStatus(in, out, s)
}
func your_sha256_hashntVolumeClaimVolumeSource(in *api.PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeClaimVolumeSource))(in)
}
out.ClaimName = in.ClaimName
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashlumeClaimVolumeSource(in *api.PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, s conversion.Scope) error {
return your_sha256_hashntVolumeClaimVolumeSource(in, out, s)
}
func autoConvert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in *api.PersistentVolumeList, out *PersistentVolumeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]PersistentVolume, len(in.Items))
for i := range in.Items {
if err := Convert_api_PersistentVolume_To_v1_PersistentVolume(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in *api.PersistentVolumeList, out *PersistentVolumeList, s conversion.Scope) error {
return autoConvert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in, out, s)
}
func your_sha256_hashrce(in *api.PersistentVolumeSource, out *PersistentVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeSource))(in)
}
// unable to generate simple pointer conversion for api.GCEPersistentDiskVolumeSource -> v1.GCEPersistentDiskVolumeSource
if in.GCEPersistentDisk != nil {
out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
if err := your_sha256_hashkVolumeSource(in.GCEPersistentDisk, out.GCEPersistentDisk, s); err != nil {
return err
}
} else {
out.GCEPersistentDisk = nil
}
// unable to generate simple pointer conversion for api.AWSElasticBlockStoreVolumeSource -> v1.AWSElasticBlockStoreVolumeSource
if in.AWSElasticBlockStore != nil {
out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
if err := your_sha256_hashckStoreVolumeSource(in.AWSElasticBlockStore, out.AWSElasticBlockStore, s); err != nil {
return err
}
} else {
out.AWSElasticBlockStore = nil
}
// unable to generate simple pointer conversion for api.HostPathVolumeSource -> v1.HostPathVolumeSource
if in.HostPath != nil {
out.HostPath = new(HostPathVolumeSource)
if err := Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in.HostPath, out.HostPath, s); err != nil {
return err
}
} else {
out.HostPath = nil
}
// unable to generate simple pointer conversion for api.GlusterfsVolumeSource -> v1.GlusterfsVolumeSource
if in.Glusterfs != nil {
out.Glusterfs = new(GlusterfsVolumeSource)
if err := Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in.Glusterfs, out.Glusterfs, s); err != nil {
return err
}
} else {
out.Glusterfs = nil
}
// unable to generate simple pointer conversion for api.NFSVolumeSource -> v1.NFSVolumeSource
if in.NFS != nil {
out.NFS = new(NFSVolumeSource)
if err := Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in.NFS, out.NFS, s); err != nil {
return err
}
} else {
out.NFS = nil
}
// unable to generate simple pointer conversion for api.RBDVolumeSource -> v1.RBDVolumeSource
if in.RBD != nil {
out.RBD = new(RBDVolumeSource)
if err := Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in.RBD, out.RBD, s); err != nil {
return err
}
} else {
out.RBD = nil
}
// unable to generate simple pointer conversion for api.ISCSIVolumeSource -> v1.ISCSIVolumeSource
if in.ISCSI != nil {
out.ISCSI = new(ISCSIVolumeSource)
if err := Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in.ISCSI, out.ISCSI, s); err != nil {
return err
}
} else {
out.ISCSI = nil
}
// unable to generate simple pointer conversion for api.FlexVolumeSource -> v1.FlexVolumeSource
if in.FlexVolume != nil {
out.FlexVolume = new(FlexVolumeSource)
if err := Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in.FlexVolume, out.FlexVolume, s); err != nil {
return err
}
} else {
out.FlexVolume = nil
}
// unable to generate simple pointer conversion for api.CinderVolumeSource -> v1.CinderVolumeSource
if in.Cinder != nil {
out.Cinder = new(CinderVolumeSource)
if err := Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in.Cinder, out.Cinder, s); err != nil {
return err
}
} else {
out.Cinder = nil
}
// unable to generate simple pointer conversion for api.CephFSVolumeSource -> v1.CephFSVolumeSource
if in.CephFS != nil {
out.CephFS = new(CephFSVolumeSource)
if err := Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in.CephFS, out.CephFS, s); err != nil {
return err
}
} else {
out.CephFS = nil
}
// unable to generate simple pointer conversion for api.FCVolumeSource -> v1.FCVolumeSource
if in.FC != nil {
out.FC = new(FCVolumeSource)
if err := Convert_api_FCVolumeSource_To_v1_FCVolumeSource(in.FC, out.FC, s); err != nil {
return err
}
} else {
out.FC = nil
}
// unable to generate simple pointer conversion for api.FlockerVolumeSource -> v1.FlockerVolumeSource
if in.Flocker != nil {
out.Flocker = new(FlockerVolumeSource)
if err := Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in.Flocker, out.Flocker, s); err != nil {
return err
}
} else {
out.Flocker = nil
}
// unable to generate simple pointer conversion for api.AzureFileVolumeSource -> v1.AzureFileVolumeSource
if in.AzureFile != nil {
out.AzureFile = new(AzureFileVolumeSource)
if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
return err
}
} else {
out.AzureFile = nil
}
return nil
}
func Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api.PersistentVolumeSource, out *PersistentVolumeSource, s conversion.Scope) error {
return your_sha256_hashrce(in, out, s)
}
func autoConvert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in *api.PersistentVolumeSpec, out *PersistentVolumeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeSpec))(in)
}
if in.Capacity != nil {
out.Capacity = make(ResourceList)
for key, val := range in.Capacity {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Capacity[ResourceName(key)] = newVal
}
} else {
out.Capacity = nil
}
if err := Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, s); err != nil {
return err
}
if in.AccessModes != nil {
out.AccessModes = make([]PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
// unable to generate simple pointer conversion for api.ObjectReference -> v1.ObjectReference
if in.ClaimRef != nil {
out.ClaimRef = new(ObjectReference)
if err := Convert_api_ObjectReference_To_v1_ObjectReference(in.ClaimRef, out.ClaimRef, s); err != nil {
return err
}
} else {
out.ClaimRef = nil
}
out.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy)
return nil
}
func Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in *api.PersistentVolumeSpec, out *PersistentVolumeSpec, s conversion.Scope) error {
return autoConvert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in, out, s)
}
func your_sha256_hashtus(in *api.PersistentVolumeStatus, out *PersistentVolumeStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PersistentVolumeStatus))(in)
}
out.Phase = PersistentVolumePhase(in.Phase)
out.Message = in.Message
out.Reason = in.Reason
return nil
}
func Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in *api.PersistentVolumeStatus, out *PersistentVolumeStatus, s conversion.Scope) error {
return your_sha256_hashtus(in, out, s)
}
func autoConvert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Pod))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func autoConvert_api_PodAttachOptions_To_v1_PodAttachOptions(in *api.PodAttachOptions, out *PodAttachOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodAttachOptions))(in)
}
out.Stdin = in.Stdin
out.Stdout = in.Stdout
out.Stderr = in.Stderr
out.TTY = in.TTY
out.Container = in.Container
return nil
}
func Convert_api_PodAttachOptions_To_v1_PodAttachOptions(in *api.PodAttachOptions, out *PodAttachOptions, s conversion.Scope) error {
return autoConvert_api_PodAttachOptions_To_v1_PodAttachOptions(in, out, s)
}
func autoConvert_api_PodCondition_To_v1_PodCondition(in *api.PodCondition, out *PodCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodCondition))(in)
}
out.Type = PodConditionType(in.Type)
out.Status = ConditionStatus(in.Status)
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastProbeTime, &out.LastProbeTime, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_api_PodCondition_To_v1_PodCondition(in *api.PodCondition, out *PodCondition, s conversion.Scope) error {
return autoConvert_api_PodCondition_To_v1_PodCondition(in, out, s)
}
func autoConvert_api_PodExecOptions_To_v1_PodExecOptions(in *api.PodExecOptions, out *PodExecOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodExecOptions))(in)
}
out.Stdin = in.Stdin
out.Stdout = in.Stdout
out.Stderr = in.Stderr
out.TTY = in.TTY
out.Container = in.Container
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
return nil
}
func Convert_api_PodExecOptions_To_v1_PodExecOptions(in *api.PodExecOptions, out *PodExecOptions, s conversion.Scope) error {
return autoConvert_api_PodExecOptions_To_v1_PodExecOptions(in, out, s)
}
func autoConvert_api_PodList_To_v1_PodList(in *api.PodList, out *PodList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Pod, len(in.Items))
for i := range in.Items {
if err := Convert_api_Pod_To_v1_Pod(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_PodList_To_v1_PodList(in *api.PodList, out *PodList, s conversion.Scope) error {
return autoConvert_api_PodList_To_v1_PodList(in, out, s)
}
func autoConvert_api_PodLogOptions_To_v1_PodLogOptions(in *api.PodLogOptions, out *PodLogOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodLogOptions))(in)
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
if in.SinceSeconds != nil {
out.SinceSeconds = new(int64)
*out.SinceSeconds = *in.SinceSeconds
} else {
out.SinceSeconds = nil
}
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.SinceTime != nil {
out.SinceTime = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.SinceTime, out.SinceTime, s); err != nil {
return err
}
} else {
out.SinceTime = nil
}
out.Timestamps = in.Timestamps
if in.TailLines != nil {
out.TailLines = new(int64)
*out.TailLines = *in.TailLines
} else {
out.TailLines = nil
}
if in.LimitBytes != nil {
out.LimitBytes = new(int64)
*out.LimitBytes = *in.LimitBytes
} else {
out.LimitBytes = nil
}
return nil
}
func Convert_api_PodLogOptions_To_v1_PodLogOptions(in *api.PodLogOptions, out *PodLogOptions, s conversion.Scope) error {
return autoConvert_api_PodLogOptions_To_v1_PodLogOptions(in, out, s)
}
func autoConvert_api_PodProxyOptions_To_v1_PodProxyOptions(in *api.PodProxyOptions, out *PodProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_api_PodProxyOptions_To_v1_PodProxyOptions(in *api.PodProxyOptions, out *PodProxyOptions, s conversion.Scope) error {
return autoConvert_api_PodProxyOptions_To_v1_PodProxyOptions(in, out, s)
}
func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodSpec))(in)
}
if in.Volumes != nil {
out.Volumes = make([]Volume, len(in.Volumes))
for i := range in.Volumes {
if err := Convert_api_Volume_To_v1_Volume(&in.Volumes[i], &out.Volumes[i], s); err != nil {
return err
}
}
} else {
out.Volumes = nil
}
if in.Containers != nil {
out.Containers = make([]Container, len(in.Containers))
for i := range in.Containers {
if err := Convert_api_Container_To_v1_Container(&in.Containers[i], &out.Containers[i], s); err != nil {
return err
}
}
} else {
out.Containers = nil
}
out.RestartPolicy = RestartPolicy(in.RestartPolicy)
if in.TerminationGracePeriodSeconds != nil {
out.TerminationGracePeriodSeconds = new(int64)
*out.TerminationGracePeriodSeconds = *in.TerminationGracePeriodSeconds
} else {
out.TerminationGracePeriodSeconds = nil
}
if in.ActiveDeadlineSeconds != nil {
out.ActiveDeadlineSeconds = new(int64)
*out.ActiveDeadlineSeconds = *in.ActiveDeadlineSeconds
} else {
out.ActiveDeadlineSeconds = nil
}
out.DNSPolicy = DNSPolicy(in.DNSPolicy)
if in.NodeSelector != nil {
out.NodeSelector = make(map[string]string)
for key, val := range in.NodeSelector {
out.NodeSelector[key] = val
}
} else {
out.NodeSelector = nil
}
out.ServiceAccountName = in.ServiceAccountName
out.NodeName = in.NodeName
// unable to generate simple pointer conversion for api.PodSecurityContext -> v1.PodSecurityContext
if in.SecurityContext != nil {
if err := s.Convert(&in.SecurityContext, &out.SecurityContext, 0); err != nil {
return err
}
} else {
out.SecurityContext = nil
}
if in.ImagePullSecrets != nil {
out.ImagePullSecrets = make([]LocalObjectReference, len(in.ImagePullSecrets))
for i := range in.ImagePullSecrets {
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.ImagePullSecrets[i], &out.ImagePullSecrets[i], s); err != nil {
return err
}
}
} else {
out.ImagePullSecrets = nil
}
return nil
}
func autoConvert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodStatus))(in)
}
out.Phase = PodPhase(in.Phase)
if in.Conditions != nil {
out.Conditions = make([]PodCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_api_PodCondition_To_v1_PodCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
out.Message = in.Message
out.Reason = in.Reason
out.HostIP = in.HostIP
out.PodIP = in.PodIP
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.StartTime != nil {
out.StartTime = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.StartTime, out.StartTime, s); err != nil {
return err
}
} else {
out.StartTime = nil
}
if in.ContainerStatuses != nil {
out.ContainerStatuses = make([]ContainerStatus, len(in.ContainerStatuses))
for i := range in.ContainerStatuses {
if err := Convert_api_ContainerStatus_To_v1_ContainerStatus(&in.ContainerStatuses[i], &out.ContainerStatuses[i], s); err != nil {
return err
}
}
} else {
out.ContainerStatuses = nil
}
return nil
}
func Convert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, s conversion.Scope) error {
return autoConvert_api_PodStatus_To_v1_PodStatus(in, out, s)
}
func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodStatusResult))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error {
return autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in, out, s)
}
func autoConvert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodTemplate))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err
}
return nil
}
func Convert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error {
return autoConvert_api_PodTemplate_To_v1_PodTemplate(in, out, s)
}
func autoConvert_api_PodTemplateList_To_v1_PodTemplateList(in *api.PodTemplateList, out *PodTemplateList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodTemplateList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]PodTemplate, len(in.Items))
for i := range in.Items {
if err := Convert_api_PodTemplate_To_v1_PodTemplate(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_PodTemplateList_To_v1_PodTemplateList(in *api.PodTemplateList, out *PodTemplateList, s conversion.Scope) error {
return autoConvert_api_PodTemplateList_To_v1_PodTemplateList(in, out, s)
}
func autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.PodTemplateSpec))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
func Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error {
return autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in, out, s)
}
func autoConvert_api_Probe_To_v1_Probe(in *api.Probe, out *Probe, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Probe))(in)
}
if err := Convert_api_Handler_To_v1_Handler(&in.Handler, &out.Handler, s); err != nil {
return err
}
out.InitialDelaySeconds = int32(in.InitialDelaySeconds)
out.TimeoutSeconds = int32(in.TimeoutSeconds)
out.PeriodSeconds = int32(in.PeriodSeconds)
out.SuccessThreshold = int32(in.SuccessThreshold)
out.FailureThreshold = int32(in.FailureThreshold)
return nil
}
func Convert_api_Probe_To_v1_Probe(in *api.Probe, out *Probe, s conversion.Scope) error {
return autoConvert_api_Probe_To_v1_Probe(in, out, s)
}
func autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, out *RBDVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.RBDVolumeSource))(in)
}
if in.CephMonitors != nil {
out.CephMonitors = make([]string, len(in.CephMonitors))
for i := range in.CephMonitors {
out.CephMonitors[i] = in.CephMonitors[i]
}
} else {
out.CephMonitors = nil
}
out.RBDImage = in.RBDImage
out.FSType = in.FSType
out.RBDPool = in.RBDPool
out.RadosUser = in.RadosUser
out.Keyring = in.Keyring
// unable to generate simple pointer conversion for api.LocalObjectReference -> v1.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(LocalObjectReference)
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, out *RBDVolumeSource, s conversion.Scope) error {
return autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in, out, s)
}
func autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.RangeAllocation))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
out.Range = in.Range
if err := conversion.ByteSliceCopy(&in.Data, &out.Data, s); err != nil {
return err
}
return nil
}
func Convert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error {
return autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in, out, s)
}
func your_sha256_hashr(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ReplicationController))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := your_sha256_hashrSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := your_sha256_hashlerStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_ReplicationController_To_v1_ReplicationController(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error {
return your_sha256_hashr(in, out, s)
}
func your_sha256_hashollerList(in *api.ReplicationControllerList, out *ReplicationControllerList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ReplicationControllerList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]ReplicationController, len(in.Items))
for i := range in.Items {
if err := Convert_api_ReplicationController_To_v1_ReplicationController(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashrList(in *api.ReplicationControllerList, out *ReplicationControllerList, s conversion.Scope) error {
return your_sha256_hashollerList(in, out, s)
}
func your_sha256_hashollerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ReplicationControllerSpec))(in)
}
if err := s.Convert(&in.Replicas, &out.Replicas, 0); err != nil {
return err
}
if in.Selector != nil {
out.Selector = make(map[string]string)
for key, val := range in.Selector {
out.Selector[key] = val
}
} else {
out.Selector = nil
}
// unable to generate simple pointer conversion for api.PodTemplateSpec -> v1.PodTemplateSpec
if in.Template != nil {
out.Template = new(PodTemplateSpec)
if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in.Template, out.Template, s); err != nil {
return err
}
} else {
out.Template = nil
}
return nil
}
func your_sha256_hashtrollerStatus(in *api.ReplicationControllerStatus, out *ReplicationControllerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ReplicationControllerStatus))(in)
}
out.Replicas = int32(in.Replicas)
out.FullyLabeledReplicas = int32(in.FullyLabeledReplicas)
out.ObservedGeneration = in.ObservedGeneration
return nil
}
func your_sha256_hashlerStatus(in *api.ReplicationControllerStatus, out *ReplicationControllerStatus, s conversion.Scope) error {
return your_sha256_hashtrollerStatus(in, out, s)
}
func autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ResourceQuota))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error {
return autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in, out, s)
}
func autoConvert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in *api.ResourceQuotaList, out *ResourceQuotaList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ResourceQuotaList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]ResourceQuota, len(in.Items))
for i := range in.Items {
if err := Convert_api_ResourceQuota_To_v1_ResourceQuota(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in *api.ResourceQuotaList, out *ResourceQuotaList, s conversion.Scope) error {
return autoConvert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in, out, s)
}
func autoConvert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuotaSpec, out *ResourceQuotaSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ResourceQuotaSpec))(in)
}
if in.Hard != nil {
out.Hard = make(ResourceList)
for key, val := range in.Hard {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Hard[ResourceName(key)] = newVal
}
} else {
out.Hard = nil
}
if in.Scopes != nil {
out.Scopes = make([]ResourceQuotaScope, len(in.Scopes))
for i := range in.Scopes {
out.Scopes[i] = ResourceQuotaScope(in.Scopes[i])
}
} else {
out.Scopes = nil
}
return nil
}
func Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuotaSpec, out *ResourceQuotaSpec, s conversion.Scope) error {
return autoConvert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in, out, s)
}
func autoConvert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQuotaStatus, out *ResourceQuotaStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ResourceQuotaStatus))(in)
}
if in.Hard != nil {
out.Hard = make(ResourceList)
for key, val := range in.Hard {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Hard[ResourceName(key)] = newVal
}
} else {
out.Hard = nil
}
if in.Used != nil {
out.Used = make(ResourceList)
for key, val := range in.Used {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Used[ResourceName(key)] = newVal
}
} else {
out.Used = nil
}
return nil
}
func Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQuotaStatus, out *ResourceQuotaStatus, s conversion.Scope) error {
return autoConvert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in, out, s)
}
func autoConvert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ResourceRequirements))(in)
}
if in.Limits != nil {
out.Limits = make(ResourceList)
for key, val := range in.Limits {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Limits[ResourceName(key)] = newVal
}
} else {
out.Limits = nil
}
if in.Requests != nil {
out.Requests = make(ResourceList)
for key, val := range in.Requests {
newVal := resource.Quantity{}
if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, &newVal, s); err != nil {
return err
}
out.Requests[ResourceName(key)] = newVal
}
} else {
out.Requests = nil
}
return nil
}
func Convert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error {
return autoConvert_api_ResourceRequirements_To_v1_ResourceRequirements(in, out, s)
}
func autoConvert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out *SELinuxOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SELinuxOptions))(in)
}
out.User = in.User
out.Role = in.Role
out.Type = in.Type
out.Level = in.Level
return nil
}
func Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out *SELinuxOptions, s conversion.Scope) error {
return autoConvert_api_SELinuxOptions_To_v1_SELinuxOptions(in, out, s)
}
func autoConvert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Secret))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Data != nil {
out.Data = make(map[string][]uint8)
for key, val := range in.Data {
newVal := []uint8{}
if err := conversion.ByteSliceCopy(&val, &newVal, s); err != nil {
return err
}
out.Data[key] = newVal
}
} else {
out.Data = nil
}
out.Type = SecretType(in.Type)
return nil
}
func Convert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error {
return autoConvert_api_Secret_To_v1_Secret(in, out, s)
}
func autoConvert_api_SecretKeySelector_To_v1_SecretKeySelector(in *api.SecretKeySelector, out *SecretKeySelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SecretKeySelector))(in)
}
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
out.Key = in.Key
return nil
}
func Convert_api_SecretKeySelector_To_v1_SecretKeySelector(in *api.SecretKeySelector, out *SecretKeySelector, s conversion.Scope) error {
return autoConvert_api_SecretKeySelector_To_v1_SecretKeySelector(in, out, s)
}
func autoConvert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SecretList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Secret, len(in.Items))
for i := range in.Items {
if err := Convert_api_Secret_To_v1_Secret(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList, s conversion.Scope) error {
return autoConvert_api_SecretList_To_v1_SecretList(in, out, s)
}
func autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretVolumeSource, out *SecretVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SecretVolumeSource))(in)
}
out.SecretName = in.SecretName
return nil
}
func Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretVolumeSource, out *SecretVolumeSource, s conversion.Scope) error {
return autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in, out, s)
}
func autoConvert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityContext, out *SecurityContext, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SecurityContext))(in)
}
// unable to generate simple pointer conversion for api.Capabilities -> v1.Capabilities
if in.Capabilities != nil {
out.Capabilities = new(Capabilities)
if err := Convert_api_Capabilities_To_v1_Capabilities(in.Capabilities, out.Capabilities, s); err != nil {
return err
}
} else {
out.Capabilities = nil
}
if in.Privileged != nil {
out.Privileged = new(bool)
*out.Privileged = *in.Privileged
} else {
out.Privileged = nil
}
// unable to generate simple pointer conversion for api.SELinuxOptions -> v1.SELinuxOptions
if in.SELinuxOptions != nil {
out.SELinuxOptions = new(SELinuxOptions)
if err := Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in.SELinuxOptions, out.SELinuxOptions, s); err != nil {
return err
}
} else {
out.SELinuxOptions = nil
}
if in.RunAsUser != nil {
out.RunAsUser = new(int64)
*out.RunAsUser = *in.RunAsUser
} else {
out.RunAsUser = nil
}
if in.RunAsNonRoot != nil {
out.RunAsNonRoot = new(bool)
*out.RunAsNonRoot = *in.RunAsNonRoot
} else {
out.RunAsNonRoot = nil
}
if in.ReadOnlyRootFilesystem != nil {
out.ReadOnlyRootFilesystem = new(bool)
*out.ReadOnlyRootFilesystem = *in.ReadOnlyRootFilesystem
} else {
out.ReadOnlyRootFilesystem = nil
}
return nil
}
func Convert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityContext, out *SecurityContext, s conversion.Scope) error {
return autoConvert_api_SecurityContext_To_v1_SecurityContext(in, out, s)
}
func autoConvert_api_SerializedReference_To_v1_SerializedReference(in *api.SerializedReference, out *SerializedReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.SerializedReference))(in)
}
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Reference, &out.Reference, s); err != nil {
return err
}
return nil
}
func Convert_api_SerializedReference_To_v1_SerializedReference(in *api.SerializedReference, out *SerializedReference, s conversion.Scope) error {
return autoConvert_api_SerializedReference_To_v1_SerializedReference(in, out, s)
}
func autoConvert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Service))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_api_ServiceSpec_To_v1_ServiceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_api_ServiceStatus_To_v1_ServiceStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error {
return autoConvert_api_Service_To_v1_Service(in, out, s)
}
func autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceAccount))(in)
}
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Secrets != nil {
out.Secrets = make([]ObjectReference, len(in.Secrets))
for i := range in.Secrets {
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Secrets[i], &out.Secrets[i], s); err != nil {
return err
}
}
} else {
out.Secrets = nil
}
if in.ImagePullSecrets != nil {
out.ImagePullSecrets = make([]LocalObjectReference, len(in.ImagePullSecrets))
for i := range in.ImagePullSecrets {
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.ImagePullSecrets[i], &out.ImagePullSecrets[i], s); err != nil {
return err
}
}
} else {
out.ImagePullSecrets = nil
}
return nil
}
func Convert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error {
return autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in, out, s)
}
func autoConvert_api_ServiceAccountList_To_v1_ServiceAccountList(in *api.ServiceAccountList, out *ServiceAccountList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceAccountList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]ServiceAccount, len(in.Items))
for i := range in.Items {
if err := Convert_api_ServiceAccount_To_v1_ServiceAccount(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ServiceAccountList_To_v1_ServiceAccountList(in *api.ServiceAccountList, out *ServiceAccountList, s conversion.Scope) error {
return autoConvert_api_ServiceAccountList_To_v1_ServiceAccountList(in, out, s)
}
func autoConvert_api_ServiceList_To_v1_ServiceList(in *api.ServiceList, out *ServiceList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]Service, len(in.Items))
for i := range in.Items {
if err := Convert_api_Service_To_v1_Service(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_api_ServiceList_To_v1_ServiceList(in *api.ServiceList, out *ServiceList, s conversion.Scope) error {
return autoConvert_api_ServiceList_To_v1_ServiceList(in, out, s)
}
func autoConvert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *ServicePort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServicePort))(in)
}
out.Name = in.Name
out.Protocol = Protocol(in.Protocol)
out.Port = int32(in.Port)
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.TargetPort, &out.TargetPort, s); err != nil {
return err
}
out.NodePort = int32(in.NodePort)
return nil
}
func Convert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *ServicePort, s conversion.Scope) error {
return autoConvert_api_ServicePort_To_v1_ServicePort(in, out, s)
}
func autoConvert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in *api.ServiceProxyOptions, out *ServiceProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in *api.ServiceProxyOptions, out *ServiceProxyOptions, s conversion.Scope) error {
return autoConvert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in, out, s)
}
func autoConvert_api_ServiceSpec_To_v1_ServiceSpec(in *api.ServiceSpec, out *ServiceSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceSpec))(in)
}
out.Type = ServiceType(in.Type)
if in.Ports != nil {
out.Ports = make([]ServicePort, len(in.Ports))
for i := range in.Ports {
if err := Convert_api_ServicePort_To_v1_ServicePort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
if in.Selector != nil {
out.Selector = make(map[string]string)
for key, val := range in.Selector {
out.Selector[key] = val
}
} else {
out.Selector = nil
}
out.ClusterIP = in.ClusterIP
if in.ExternalIPs != nil {
out.ExternalIPs = make([]string, len(in.ExternalIPs))
for i := range in.ExternalIPs {
out.ExternalIPs[i] = in.ExternalIPs[i]
}
} else {
out.ExternalIPs = nil
}
out.LoadBalancerIP = in.LoadBalancerIP
out.SessionAffinity = ServiceAffinity(in.SessionAffinity)
return nil
}
func autoConvert_api_ServiceStatus_To_v1_ServiceStatus(in *api.ServiceStatus, out *ServiceStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.ServiceStatus))(in)
}
if err := Convert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, s); err != nil {
return err
}
return nil
}
func Convert_api_ServiceStatus_To_v1_ServiceStatus(in *api.ServiceStatus, out *ServiceStatus, s conversion.Scope) error {
return autoConvert_api_ServiceStatus_To_v1_ServiceStatus(in, out, s)
}
func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.TCPSocketAction))(in)
}
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil {
return err
}
return nil
}
func Convert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
return autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in, out, s)
}
func autoConvert_api_Volume_To_v1_Volume(in *api.Volume, out *Volume, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.Volume))(in)
}
out.Name = in.Name
if err := Convert_api_VolumeSource_To_v1_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil {
return err
}
return nil
}
func Convert_api_Volume_To_v1_Volume(in *api.Volume, out *Volume, s conversion.Scope) error {
return autoConvert_api_Volume_To_v1_Volume(in, out, s)
}
func autoConvert_api_VolumeMount_To_v1_VolumeMount(in *api.VolumeMount, out *VolumeMount, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.VolumeMount))(in)
}
out.Name = in.Name
out.ReadOnly = in.ReadOnly
out.MountPath = in.MountPath
return nil
}
func Convert_api_VolumeMount_To_v1_VolumeMount(in *api.VolumeMount, out *VolumeMount, s conversion.Scope) error {
return autoConvert_api_VolumeMount_To_v1_VolumeMount(in, out, s)
}
func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *VolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*api.VolumeSource))(in)
}
// unable to generate simple pointer conversion for api.HostPathVolumeSource -> v1.HostPathVolumeSource
if in.HostPath != nil {
out.HostPath = new(HostPathVolumeSource)
if err := Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in.HostPath, out.HostPath, s); err != nil {
return err
}
} else {
out.HostPath = nil
}
// unable to generate simple pointer conversion for api.EmptyDirVolumeSource -> v1.EmptyDirVolumeSource
if in.EmptyDir != nil {
out.EmptyDir = new(EmptyDirVolumeSource)
if err := Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in.EmptyDir, out.EmptyDir, s); err != nil {
return err
}
} else {
out.EmptyDir = nil
}
// unable to generate simple pointer conversion for api.GCEPersistentDiskVolumeSource -> v1.GCEPersistentDiskVolumeSource
if in.GCEPersistentDisk != nil {
out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
if err := your_sha256_hashkVolumeSource(in.GCEPersistentDisk, out.GCEPersistentDisk, s); err != nil {
return err
}
} else {
out.GCEPersistentDisk = nil
}
// unable to generate simple pointer conversion for api.AWSElasticBlockStoreVolumeSource -> v1.AWSElasticBlockStoreVolumeSource
if in.AWSElasticBlockStore != nil {
out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
if err := your_sha256_hashckStoreVolumeSource(in.AWSElasticBlockStore, out.AWSElasticBlockStore, s); err != nil {
return err
}
} else {
out.AWSElasticBlockStore = nil
}
// unable to generate simple pointer conversion for api.GitRepoVolumeSource -> v1.GitRepoVolumeSource
if in.GitRepo != nil {
out.GitRepo = new(GitRepoVolumeSource)
if err := Convert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in.GitRepo, out.GitRepo, s); err != nil {
return err
}
} else {
out.GitRepo = nil
}
// unable to generate simple pointer conversion for api.SecretVolumeSource -> v1.SecretVolumeSource
if in.Secret != nil {
out.Secret = new(SecretVolumeSource)
if err := Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in.Secret, out.Secret, s); err != nil {
return err
}
} else {
out.Secret = nil
}
// unable to generate simple pointer conversion for api.NFSVolumeSource -> v1.NFSVolumeSource
if in.NFS != nil {
out.NFS = new(NFSVolumeSource)
if err := Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in.NFS, out.NFS, s); err != nil {
return err
}
} else {
out.NFS = nil
}
// unable to generate simple pointer conversion for api.ISCSIVolumeSource -> v1.ISCSIVolumeSource
if in.ISCSI != nil {
out.ISCSI = new(ISCSIVolumeSource)
if err := Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in.ISCSI, out.ISCSI, s); err != nil {
return err
}
} else {
out.ISCSI = nil
}
// unable to generate simple pointer conversion for api.GlusterfsVolumeSource -> v1.GlusterfsVolumeSource
if in.Glusterfs != nil {
out.Glusterfs = new(GlusterfsVolumeSource)
if err := Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in.Glusterfs, out.Glusterfs, s); err != nil {
return err
}
} else {
out.Glusterfs = nil
}
// unable to generate simple pointer conversion for api.PersistentVolumeClaimVolumeSource -> v1.PersistentVolumeClaimVolumeSource
if in.PersistentVolumeClaim != nil {
out.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
if err := your_sha256_hashlumeClaimVolumeSource(in.PersistentVolumeClaim, out.PersistentVolumeClaim, s); err != nil {
return err
}
} else {
out.PersistentVolumeClaim = nil
}
// unable to generate simple pointer conversion for api.RBDVolumeSource -> v1.RBDVolumeSource
if in.RBD != nil {
out.RBD = new(RBDVolumeSource)
if err := Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in.RBD, out.RBD, s); err != nil {
return err
}
} else {
out.RBD = nil
}
// unable to generate simple pointer conversion for api.FlexVolumeSource -> v1.FlexVolumeSource
if in.FlexVolume != nil {
out.FlexVolume = new(FlexVolumeSource)
if err := Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in.FlexVolume, out.FlexVolume, s); err != nil {
return err
}
} else {
out.FlexVolume = nil
}
// unable to generate simple pointer conversion for api.CinderVolumeSource -> v1.CinderVolumeSource
if in.Cinder != nil {
out.Cinder = new(CinderVolumeSource)
if err := Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in.Cinder, out.Cinder, s); err != nil {
return err
}
} else {
out.Cinder = nil
}
// unable to generate simple pointer conversion for api.CephFSVolumeSource -> v1.CephFSVolumeSource
if in.CephFS != nil {
out.CephFS = new(CephFSVolumeSource)
if err := Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in.CephFS, out.CephFS, s); err != nil {
return err
}
} else {
out.CephFS = nil
}
// unable to generate simple pointer conversion for api.FlockerVolumeSource -> v1.FlockerVolumeSource
if in.Flocker != nil {
out.Flocker = new(FlockerVolumeSource)
if err := Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in.Flocker, out.Flocker, s); err != nil {
return err
}
} else {
out.Flocker = nil
}
// unable to generate simple pointer conversion for api.DownwardAPIVolumeSource -> v1.DownwardAPIVolumeSource
if in.DownwardAPI != nil {
out.DownwardAPI = new(DownwardAPIVolumeSource)
if err := your_sha256_hashe(in.DownwardAPI, out.DownwardAPI, s); err != nil {
return err
}
} else {
out.DownwardAPI = nil
}
// unable to generate simple pointer conversion for api.FCVolumeSource -> v1.FCVolumeSource
if in.FC != nil {
out.FC = new(FCVolumeSource)
if err := Convert_api_FCVolumeSource_To_v1_FCVolumeSource(in.FC, out.FC, s); err != nil {
return err
}
} else {
out.FC = nil
}
// unable to generate simple pointer conversion for api.AzureFileVolumeSource -> v1.AzureFileVolumeSource
if in.AzureFile != nil {
out.AzureFile = new(AzureFileVolumeSource)
if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
return err
}
} else {
out.AzureFile = nil
}
// unable to generate simple pointer conversion for api.ConfigMapVolumeSource -> v1.ConfigMapVolumeSource
if in.ConfigMap != nil {
out.ConfigMap = new(ConfigMapVolumeSource)
if err := Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in.ConfigMap, out.ConfigMap, s); err != nil {
return err
}
} else {
out.ConfigMap = nil
}
return nil
}
func Convert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *VolumeSource, s conversion.Scope) error {
return autoConvert_api_VolumeSource_To_v1_VolumeSource(in, out, s)
}
func autoConvert_unversioned_ExportOptions_To_v1_ExportOptions(in *unversioned.ExportOptions, out *ExportOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*unversioned.ExportOptions))(in)
}
out.Export = in.Export
out.Exact = in.Exact
return nil
}
func Convert_unversioned_ExportOptions_To_v1_ExportOptions(in *unversioned.ExportOptions, out *ExportOptions, s conversion.Scope) error {
return autoConvert_unversioned_ExportOptions_To_v1_ExportOptions(in, out, s)
}
func your_sha256_hashcBlockStoreVolumeSource(in *AWSElasticBlockStoreVolumeSource, out *api.AWSElasticBlockStoreVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*AWSElasticBlockStoreVolumeSource))(in)
}
out.VolumeID = in.VolumeID
out.FSType = in.FSType
out.Partition = int(in.Partition)
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashckStoreVolumeSource(in *AWSElasticBlockStoreVolumeSource, out *api.AWSElasticBlockStoreVolumeSource, s conversion.Scope) error {
return your_sha256_hashcBlockStoreVolumeSource(in, out, s)
}
func your_sha256_hashe(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*AzureFileVolumeSource))(in)
}
out.SecretName = in.SecretName
out.ShareName = in.ShareName
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Binding))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Target, &out.Target, s); err != nil {
return err
}
return nil
}
func Convert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error {
return autoConvert_v1_Binding_To_api_Binding(in, out, s)
}
func autoConvert_v1_Capabilities_To_api_Capabilities(in *Capabilities, out *api.Capabilities, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Capabilities))(in)
}
if in.Add != nil {
out.Add = make([]api.Capability, len(in.Add))
for i := range in.Add {
out.Add[i] = api.Capability(in.Add[i])
}
} else {
out.Add = nil
}
if in.Drop != nil {
out.Drop = make([]api.Capability, len(in.Drop))
for i := range in.Drop {
out.Drop[i] = api.Capability(in.Drop[i])
}
} else {
out.Drop = nil
}
return nil
}
func Convert_v1_Capabilities_To_api_Capabilities(in *Capabilities, out *api.Capabilities, s conversion.Scope) error {
return autoConvert_v1_Capabilities_To_api_Capabilities(in, out, s)
}
func autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSource, out *api.CephFSVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*CephFSVolumeSource))(in)
}
if in.Monitors != nil {
out.Monitors = make([]string, len(in.Monitors))
for i := range in.Monitors {
out.Monitors[i] = in.Monitors[i]
}
} else {
out.Monitors = nil
}
out.Path = in.Path
out.User = in.User
out.SecretFile = in.SecretFile
// unable to generate simple pointer conversion for v1.LocalObjectReference -> api.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(api.LocalObjectReference)
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSource, out *api.CephFSVolumeSource, s conversion.Scope) error {
return autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in, out, s)
}
func autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in *CinderVolumeSource, out *api.CinderVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*CinderVolumeSource))(in)
}
out.VolumeID = in.VolumeID
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in *CinderVolumeSource, out *api.CinderVolumeSource, s conversion.Scope) error {
return autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in, out, s)
}
func autoConvert_v1_ComponentCondition_To_api_ComponentCondition(in *ComponentCondition, out *api.ComponentCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ComponentCondition))(in)
}
out.Type = api.ComponentConditionType(in.Type)
out.Status = api.ConditionStatus(in.Status)
out.Message = in.Message
out.Error = in.Error
return nil
}
func Convert_v1_ComponentCondition_To_api_ComponentCondition(in *ComponentCondition, out *api.ComponentCondition, s conversion.Scope) error {
return autoConvert_v1_ComponentCondition_To_api_ComponentCondition(in, out, s)
}
func autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ComponentStatus))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Conditions != nil {
out.Conditions = make([]api.ComponentCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_v1_ComponentCondition_To_api_ComponentCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
return nil
}
func Convert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error {
return autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in, out, s)
}
func autoConvert_v1_ComponentStatusList_To_api_ComponentStatusList(in *ComponentStatusList, out *api.ComponentStatusList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ComponentStatusList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.ComponentStatus, len(in.Items))
for i := range in.Items {
if err := Convert_v1_ComponentStatus_To_api_ComponentStatus(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ComponentStatusList_To_api_ComponentStatusList(in *ComponentStatusList, out *api.ComponentStatusList, s conversion.Scope) error {
return autoConvert_v1_ComponentStatusList_To_api_ComponentStatusList(in, out, s)
}
func autoConvert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ConfigMap))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Data != nil {
out.Data = make(map[string]string)
for key, val := range in.Data {
out.Data[key] = val
}
} else {
out.Data = nil
}
return nil
}
func Convert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error {
return autoConvert_v1_ConfigMap_To_api_ConfigMap(in, out, s)
}
func autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in *ConfigMapKeySelector, out *api.ConfigMapKeySelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ConfigMapKeySelector))(in)
}
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
out.Key = in.Key
return nil
}
func Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in *ConfigMapKeySelector, out *api.ConfigMapKeySelector, s conversion.Scope) error {
return autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in, out, s)
}
func autoConvert_v1_ConfigMapList_To_api_ConfigMapList(in *ConfigMapList, out *api.ConfigMapList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ConfigMapList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.ConfigMap, len(in.Items))
for i := range in.Items {
if err := Convert_v1_ConfigMap_To_api_ConfigMap(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ConfigMapList_To_api_ConfigMapList(in *ConfigMapList, out *api.ConfigMapList, s conversion.Scope) error {
return autoConvert_v1_ConfigMapList_To_api_ConfigMapList(in, out, s)
}
func your_sha256_hashe(in *ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ConfigMapVolumeSource))(in)
}
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.KeyToPath, len(in.Items))
for i := range in.Items {
if err := Convert_v1_KeyToPath_To_api_KeyToPath(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_v1_Container_To_api_Container(in *Container, out *api.Container, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Container))(in)
}
out.Name = in.Name
out.Image = in.Image
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
if in.Args != nil {
out.Args = make([]string, len(in.Args))
for i := range in.Args {
out.Args[i] = in.Args[i]
}
} else {
out.Args = nil
}
out.WorkingDir = in.WorkingDir
if in.Ports != nil {
out.Ports = make([]api.ContainerPort, len(in.Ports))
for i := range in.Ports {
if err := Convert_v1_ContainerPort_To_api_ContainerPort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
if in.Env != nil {
out.Env = make([]api.EnvVar, len(in.Env))
for i := range in.Env {
if err := Convert_v1_EnvVar_To_api_EnvVar(&in.Env[i], &out.Env[i], s); err != nil {
return err
}
}
} else {
out.Env = nil
}
if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
return err
}
if in.VolumeMounts != nil {
out.VolumeMounts = make([]api.VolumeMount, len(in.VolumeMounts))
for i := range in.VolumeMounts {
if err := Convert_v1_VolumeMount_To_api_VolumeMount(&in.VolumeMounts[i], &out.VolumeMounts[i], s); err != nil {
return err
}
}
} else {
out.VolumeMounts = nil
}
// unable to generate simple pointer conversion for v1.Probe -> api.Probe
if in.LivenessProbe != nil {
out.LivenessProbe = new(api.Probe)
if err := Convert_v1_Probe_To_api_Probe(in.LivenessProbe, out.LivenessProbe, s); err != nil {
return err
}
} else {
out.LivenessProbe = nil
}
// unable to generate simple pointer conversion for v1.Probe -> api.Probe
if in.ReadinessProbe != nil {
out.ReadinessProbe = new(api.Probe)
if err := Convert_v1_Probe_To_api_Probe(in.ReadinessProbe, out.ReadinessProbe, s); err != nil {
return err
}
} else {
out.ReadinessProbe = nil
}
// unable to generate simple pointer conversion for v1.Lifecycle -> api.Lifecycle
if in.Lifecycle != nil {
out.Lifecycle = new(api.Lifecycle)
if err := Convert_v1_Lifecycle_To_api_Lifecycle(in.Lifecycle, out.Lifecycle, s); err != nil {
return err
}
} else {
out.Lifecycle = nil
}
out.TerminationMessagePath = in.TerminationMessagePath
out.ImagePullPolicy = api.PullPolicy(in.ImagePullPolicy)
// unable to generate simple pointer conversion for v1.SecurityContext -> api.SecurityContext
if in.SecurityContext != nil {
out.SecurityContext = new(api.SecurityContext)
if err := Convert_v1_SecurityContext_To_api_SecurityContext(in.SecurityContext, out.SecurityContext, s); err != nil {
return err
}
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.StdinOnce = in.StdinOnce
out.TTY = in.TTY
return nil
}
func Convert_v1_Container_To_api_Container(in *Container, out *api.Container, s conversion.Scope) error {
return autoConvert_v1_Container_To_api_Container(in, out, s)
}
func autoConvert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *api.ContainerImage, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerImage))(in)
}
if in.Names != nil {
out.Names = make([]string, len(in.Names))
for i := range in.Names {
out.Names[i] = in.Names[i]
}
} else {
out.Names = nil
}
out.SizeBytes = in.SizeBytes
return nil
}
func Convert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *api.ContainerImage, s conversion.Scope) error {
return autoConvert_v1_ContainerImage_To_api_ContainerImage(in, out, s)
}
func autoConvert_v1_ContainerPort_To_api_ContainerPort(in *ContainerPort, out *api.ContainerPort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerPort))(in)
}
out.Name = in.Name
out.HostPort = int(in.HostPort)
out.ContainerPort = int(in.ContainerPort)
out.Protocol = api.Protocol(in.Protocol)
out.HostIP = in.HostIP
return nil
}
func Convert_v1_ContainerPort_To_api_ContainerPort(in *ContainerPort, out *api.ContainerPort, s conversion.Scope) error {
return autoConvert_v1_ContainerPort_To_api_ContainerPort(in, out, s)
}
func autoConvert_v1_ContainerState_To_api_ContainerState(in *ContainerState, out *api.ContainerState, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerState))(in)
}
// unable to generate simple pointer conversion for v1.ContainerStateWaiting -> api.ContainerStateWaiting
if in.Waiting != nil {
out.Waiting = new(api.ContainerStateWaiting)
if err := Convert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(in.Waiting, out.Waiting, s); err != nil {
return err
}
} else {
out.Waiting = nil
}
// unable to generate simple pointer conversion for v1.ContainerStateRunning -> api.ContainerStateRunning
if in.Running != nil {
out.Running = new(api.ContainerStateRunning)
if err := Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in.Running, out.Running, s); err != nil {
return err
}
} else {
out.Running = nil
}
// unable to generate simple pointer conversion for v1.ContainerStateTerminated -> api.ContainerStateTerminated
if in.Terminated != nil {
out.Terminated = new(api.ContainerStateTerminated)
if err := your_sha256_hashted(in.Terminated, out.Terminated, s); err != nil {
return err
}
} else {
out.Terminated = nil
}
return nil
}
func Convert_v1_ContainerState_To_api_ContainerState(in *ContainerState, out *api.ContainerState, s conversion.Scope) error {
return autoConvert_v1_ContainerState_To_api_ContainerState(in, out, s)
}
func your_sha256_hashg(in *ContainerStateRunning, out *api.ContainerStateRunning, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerStateRunning))(in)
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil {
return err
}
return nil
}
func Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in *ContainerStateRunning, out *api.ContainerStateRunning, s conversion.Scope) error {
return your_sha256_hashg(in, out, s)
}
func your_sha256_hashminated(in *ContainerStateTerminated, out *api.ContainerStateTerminated, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerStateTerminated))(in)
}
out.ExitCode = int(in.ExitCode)
out.Signal = int(in.Signal)
out.Reason = in.Reason
out.Message = in.Message
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FinishedAt, &out.FinishedAt, s); err != nil {
return err
}
out.ContainerID = in.ContainerID
return nil
}
func your_sha256_hashted(in *ContainerStateTerminated, out *api.ContainerStateTerminated, s conversion.Scope) error {
return your_sha256_hashminated(in, out, s)
}
func your_sha256_hashg(in *ContainerStateWaiting, out *api.ContainerStateWaiting, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerStateWaiting))(in)
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(in *ContainerStateWaiting, out *api.ContainerStateWaiting, s conversion.Scope) error {
return your_sha256_hashg(in, out, s)
}
func autoConvert_v1_ContainerStatus_To_api_ContainerStatus(in *ContainerStatus, out *api.ContainerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ContainerStatus))(in)
}
out.Name = in.Name
if err := Convert_v1_ContainerState_To_api_ContainerState(&in.State, &out.State, s); err != nil {
return err
}
if err := Convert_v1_ContainerState_To_api_ContainerState(&in.LastTerminationState, &out.LastTerminationState, s); err != nil {
return err
}
out.Ready = in.Ready
out.RestartCount = int(in.RestartCount)
out.Image = in.Image
out.ImageID = in.ImageID
out.ContainerID = in.ContainerID
return nil
}
func Convert_v1_ContainerStatus_To_api_ContainerStatus(in *ContainerStatus, out *api.ContainerStatus, s conversion.Scope) error {
return autoConvert_v1_ContainerStatus_To_api_ContainerStatus(in, out, s)
}
func autoConvert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in *DaemonEndpoint, out *api.DaemonEndpoint, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*DaemonEndpoint))(in)
}
out.Port = int(in.Port)
return nil
}
func Convert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in *DaemonEndpoint, out *api.DaemonEndpoint, s conversion.Scope) error {
return autoConvert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in, out, s)
}
func autoConvert_v1_DeleteOptions_To_api_DeleteOptions(in *DeleteOptions, out *api.DeleteOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*DeleteOptions))(in)
}
if in.GracePeriodSeconds != nil {
out.GracePeriodSeconds = new(int64)
*out.GracePeriodSeconds = *in.GracePeriodSeconds
} else {
out.GracePeriodSeconds = nil
}
return nil
}
func Convert_v1_DeleteOptions_To_api_DeleteOptions(in *DeleteOptions, out *api.DeleteOptions, s conversion.Scope) error {
return autoConvert_v1_DeleteOptions_To_api_DeleteOptions(in, out, s)
}
func your_sha256_hashe(in *DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*DownwardAPIVolumeFile))(in)
}
out.Path = in.Path
if err := Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(&in.FieldRef, &out.FieldRef, s); err != nil {
return err
}
return nil
}
func Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func your_sha256_hashource(in *DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*DownwardAPIVolumeSource))(in)
}
if in.Items != nil {
out.Items = make([]api.DownwardAPIVolumeFile, len(in.Items))
for i := range in.Items {
if err := Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashe(in *DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error {
return your_sha256_hashource(in, out, s)
}
func autoConvert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in *EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EmptyDirVolumeSource))(in)
}
out.Medium = api.StorageMedium(in.Medium)
return nil
}
func Convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in *EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, s conversion.Scope) error {
return autoConvert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in, out, s)
}
func autoConvert_v1_EndpointAddress_To_api_EndpointAddress(in *EndpointAddress, out *api.EndpointAddress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EndpointAddress))(in)
}
out.IP = in.IP
// unable to generate simple pointer conversion for v1.ObjectReference -> api.ObjectReference
if in.TargetRef != nil {
out.TargetRef = new(api.ObjectReference)
if err := Convert_v1_ObjectReference_To_api_ObjectReference(in.TargetRef, out.TargetRef, s); err != nil {
return err
}
} else {
out.TargetRef = nil
}
return nil
}
func Convert_v1_EndpointAddress_To_api_EndpointAddress(in *EndpointAddress, out *api.EndpointAddress, s conversion.Scope) error {
return autoConvert_v1_EndpointAddress_To_api_EndpointAddress(in, out, s)
}
func autoConvert_v1_EndpointPort_To_api_EndpointPort(in *EndpointPort, out *api.EndpointPort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EndpointPort))(in)
}
out.Name = in.Name
out.Port = int(in.Port)
out.Protocol = api.Protocol(in.Protocol)
return nil
}
func Convert_v1_EndpointPort_To_api_EndpointPort(in *EndpointPort, out *api.EndpointPort, s conversion.Scope) error {
return autoConvert_v1_EndpointPort_To_api_EndpointPort(in, out, s)
}
func autoConvert_v1_EndpointSubset_To_api_EndpointSubset(in *EndpointSubset, out *api.EndpointSubset, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EndpointSubset))(in)
}
if in.Addresses != nil {
out.Addresses = make([]api.EndpointAddress, len(in.Addresses))
for i := range in.Addresses {
if err := Convert_v1_EndpointAddress_To_api_EndpointAddress(&in.Addresses[i], &out.Addresses[i], s); err != nil {
return err
}
}
} else {
out.Addresses = nil
}
if in.NotReadyAddresses != nil {
out.NotReadyAddresses = make([]api.EndpointAddress, len(in.NotReadyAddresses))
for i := range in.NotReadyAddresses {
if err := Convert_v1_EndpointAddress_To_api_EndpointAddress(&in.NotReadyAddresses[i], &out.NotReadyAddresses[i], s); err != nil {
return err
}
}
} else {
out.NotReadyAddresses = nil
}
if in.Ports != nil {
out.Ports = make([]api.EndpointPort, len(in.Ports))
for i := range in.Ports {
if err := Convert_v1_EndpointPort_To_api_EndpointPort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
return nil
}
func Convert_v1_EndpointSubset_To_api_EndpointSubset(in *EndpointSubset, out *api.EndpointSubset, s conversion.Scope) error {
return autoConvert_v1_EndpointSubset_To_api_EndpointSubset(in, out, s)
}
func autoConvert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Endpoints))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Subsets != nil {
out.Subsets = make([]api.EndpointSubset, len(in.Subsets))
for i := range in.Subsets {
if err := Convert_v1_EndpointSubset_To_api_EndpointSubset(&in.Subsets[i], &out.Subsets[i], s); err != nil {
return err
}
}
} else {
out.Subsets = nil
}
return nil
}
func Convert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error {
return autoConvert_v1_Endpoints_To_api_Endpoints(in, out, s)
}
func autoConvert_v1_EndpointsList_To_api_EndpointsList(in *EndpointsList, out *api.EndpointsList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EndpointsList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Endpoints, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Endpoints_To_api_Endpoints(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_EndpointsList_To_api_EndpointsList(in *EndpointsList, out *api.EndpointsList, s conversion.Scope) error {
return autoConvert_v1_EndpointsList_To_api_EndpointsList(in, out, s)
}
func autoConvert_v1_EnvVar_To_api_EnvVar(in *EnvVar, out *api.EnvVar, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EnvVar))(in)
}
out.Name = in.Name
out.Value = in.Value
// unable to generate simple pointer conversion for v1.EnvVarSource -> api.EnvVarSource
if in.ValueFrom != nil {
out.ValueFrom = new(api.EnvVarSource)
if err := Convert_v1_EnvVarSource_To_api_EnvVarSource(in.ValueFrom, out.ValueFrom, s); err != nil {
return err
}
} else {
out.ValueFrom = nil
}
return nil
}
func Convert_v1_EnvVar_To_api_EnvVar(in *EnvVar, out *api.EnvVar, s conversion.Scope) error {
return autoConvert_v1_EnvVar_To_api_EnvVar(in, out, s)
}
func autoConvert_v1_EnvVarSource_To_api_EnvVarSource(in *EnvVarSource, out *api.EnvVarSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EnvVarSource))(in)
}
// unable to generate simple pointer conversion for v1.ObjectFieldSelector -> api.ObjectFieldSelector
if in.FieldRef != nil {
out.FieldRef = new(api.ObjectFieldSelector)
if err := Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in.FieldRef, out.FieldRef, s); err != nil {
return err
}
} else {
out.FieldRef = nil
}
// unable to generate simple pointer conversion for v1.ConfigMapKeySelector -> api.ConfigMapKeySelector
if in.ConfigMapKeyRef != nil {
out.ConfigMapKeyRef = new(api.ConfigMapKeySelector)
if err := Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in.ConfigMapKeyRef, out.ConfigMapKeyRef, s); err != nil {
return err
}
} else {
out.ConfigMapKeyRef = nil
}
// unable to generate simple pointer conversion for v1.SecretKeySelector -> api.SecretKeySelector
if in.SecretKeyRef != nil {
out.SecretKeyRef = new(api.SecretKeySelector)
if err := Convert_v1_SecretKeySelector_To_api_SecretKeySelector(in.SecretKeyRef, out.SecretKeyRef, s); err != nil {
return err
}
} else {
out.SecretKeyRef = nil
}
return nil
}
func Convert_v1_EnvVarSource_To_api_EnvVarSource(in *EnvVarSource, out *api.EnvVarSource, s conversion.Scope) error {
return autoConvert_v1_EnvVarSource_To_api_EnvVarSource(in, out, s)
}
func autoConvert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Event))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
if err := Convert_v1_EventSource_To_api_EventSource(&in.Source, &out.Source, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FirstTimestamp, &out.FirstTimestamp, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTimestamp, &out.LastTimestamp, s); err != nil {
return err
}
out.Count = int(in.Count)
out.Type = in.Type
return nil
}
func Convert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error {
return autoConvert_v1_Event_To_api_Event(in, out, s)
}
func autoConvert_v1_EventList_To_api_EventList(in *EventList, out *api.EventList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EventList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Event, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Event_To_api_Event(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_EventList_To_api_EventList(in *EventList, out *api.EventList, s conversion.Scope) error {
return autoConvert_v1_EventList_To_api_EventList(in, out, s)
}
func autoConvert_v1_EventSource_To_api_EventSource(in *EventSource, out *api.EventSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*EventSource))(in)
}
out.Component = in.Component
out.Host = in.Host
return nil
}
func Convert_v1_EventSource_To_api_EventSource(in *EventSource, out *api.EventSource, s conversion.Scope) error {
return autoConvert_v1_EventSource_To_api_EventSource(in, out, s)
}
func autoConvert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ExecAction))(in)
}
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
return nil
}
func Convert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction, s conversion.Scope) error {
return autoConvert_v1_ExecAction_To_api_ExecAction(in, out, s)
}
func autoConvert_v1_ExportOptions_To_unversioned_ExportOptions(in *ExportOptions, out *unversioned.ExportOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ExportOptions))(in)
}
out.Export = in.Export
out.Exact = in.Exact
return nil
}
func Convert_v1_ExportOptions_To_unversioned_ExportOptions(in *ExportOptions, out *unversioned.ExportOptions, s conversion.Scope) error {
return autoConvert_v1_ExportOptions_To_unversioned_ExportOptions(in, out, s)
}
func autoConvert_v1_FCVolumeSource_To_api_FCVolumeSource(in *FCVolumeSource, out *api.FCVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*FCVolumeSource))(in)
}
if in.TargetWWNs != nil {
out.TargetWWNs = make([]string, len(in.TargetWWNs))
for i := range in.TargetWWNs {
out.TargetWWNs[i] = in.TargetWWNs[i]
}
} else {
out.TargetWWNs = nil
}
if in.Lun != nil {
out.Lun = new(int)
*out.Lun = int(*in.Lun)
} else {
out.Lun = nil
}
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_FCVolumeSource_To_api_FCVolumeSource(in *FCVolumeSource, out *api.FCVolumeSource, s conversion.Scope) error {
return autoConvert_v1_FCVolumeSource_To_api_FCVolumeSource(in, out, s)
}
func autoConvert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in *FlexVolumeSource, out *api.FlexVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*FlexVolumeSource))(in)
}
out.Driver = in.Driver
out.FSType = in.FSType
// unable to generate simple pointer conversion for v1.LocalObjectReference -> api.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(api.LocalObjectReference)
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
if in.Options != nil {
out.Options = make(map[string]string)
for key, val := range in.Options {
out.Options[key] = val
}
} else {
out.Options = nil
}
return nil
}
func Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in *FlexVolumeSource, out *api.FlexVolumeSource, s conversion.Scope) error {
return autoConvert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in, out, s)
}
func autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolumeSource, out *api.FlockerVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*FlockerVolumeSource))(in)
}
out.DatasetName = in.DatasetName
return nil
}
func Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolumeSource, out *api.FlockerVolumeSource, s conversion.Scope) error {
return autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in, out, s)
}
func your_sha256_hashtDiskVolumeSource(in *GCEPersistentDiskVolumeSource, out *api.GCEPersistentDiskVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*GCEPersistentDiskVolumeSource))(in)
}
out.PDName = in.PDName
out.FSType = in.FSType
out.Partition = int(in.Partition)
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashkVolumeSource(in *GCEPersistentDiskVolumeSource, out *api.GCEPersistentDiskVolumeSource, s conversion.Scope) error {
return your_sha256_hashtDiskVolumeSource(in, out, s)
}
func autoConvert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in *GitRepoVolumeSource, out *api.GitRepoVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*GitRepoVolumeSource))(in)
}
out.Repository = in.Repository
out.Revision = in.Revision
out.Directory = in.Directory
return nil
}
func Convert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in *GitRepoVolumeSource, out *api.GitRepoVolumeSource, s conversion.Scope) error {
return autoConvert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in, out, s)
}
func your_sha256_hashe(in *GlusterfsVolumeSource, out *api.GlusterfsVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*GlusterfsVolumeSource))(in)
}
out.EndpointsName = in.EndpointsName
out.Path = in.Path
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in *GlusterfsVolumeSource, out *api.GlusterfsVolumeSource, s conversion.Scope) error {
return your_sha256_hashe(in, out, s)
}
func autoConvert_v1_HTTPGetAction_To_api_HTTPGetAction(in *HTTPGetAction, out *api.HTTPGetAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*HTTPGetAction))(in)
}
out.Path = in.Path
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil {
return err
}
out.Host = in.Host
out.Scheme = api.URIScheme(in.Scheme)
if in.HTTPHeaders != nil {
out.HTTPHeaders = make([]api.HTTPHeader, len(in.HTTPHeaders))
for i := range in.HTTPHeaders {
if err := Convert_v1_HTTPHeader_To_api_HTTPHeader(&in.HTTPHeaders[i], &out.HTTPHeaders[i], s); err != nil {
return err
}
}
} else {
out.HTTPHeaders = nil
}
return nil
}
func Convert_v1_HTTPGetAction_To_api_HTTPGetAction(in *HTTPGetAction, out *api.HTTPGetAction, s conversion.Scope) error {
return autoConvert_v1_HTTPGetAction_To_api_HTTPGetAction(in, out, s)
}
func autoConvert_v1_HTTPHeader_To_api_HTTPHeader(in *HTTPHeader, out *api.HTTPHeader, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*HTTPHeader))(in)
}
out.Name = in.Name
out.Value = in.Value
return nil
}
func Convert_v1_HTTPHeader_To_api_HTTPHeader(in *HTTPHeader, out *api.HTTPHeader, s conversion.Scope) error {
return autoConvert_v1_HTTPHeader_To_api_HTTPHeader(in, out, s)
}
func autoConvert_v1_Handler_To_api_Handler(in *Handler, out *api.Handler, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Handler))(in)
}
// unable to generate simple pointer conversion for v1.ExecAction -> api.ExecAction
if in.Exec != nil {
out.Exec = new(api.ExecAction)
if err := Convert_v1_ExecAction_To_api_ExecAction(in.Exec, out.Exec, s); err != nil {
return err
}
} else {
out.Exec = nil
}
// unable to generate simple pointer conversion for v1.HTTPGetAction -> api.HTTPGetAction
if in.HTTPGet != nil {
out.HTTPGet = new(api.HTTPGetAction)
if err := Convert_v1_HTTPGetAction_To_api_HTTPGetAction(in.HTTPGet, out.HTTPGet, s); err != nil {
return err
}
} else {
out.HTTPGet = nil
}
// unable to generate simple pointer conversion for v1.TCPSocketAction -> api.TCPSocketAction
if in.TCPSocket != nil {
out.TCPSocket = new(api.TCPSocketAction)
if err := Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in.TCPSocket, out.TCPSocket, s); err != nil {
return err
}
} else {
out.TCPSocket = nil
}
return nil
}
func Convert_v1_Handler_To_api_Handler(in *Handler, out *api.Handler, s conversion.Scope) error {
return autoConvert_v1_Handler_To_api_Handler(in, out, s)
}
func autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in *HostPathVolumeSource, out *api.HostPathVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*HostPathVolumeSource))(in)
}
out.Path = in.Path
return nil
}
func Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in *HostPathVolumeSource, out *api.HostPathVolumeSource, s conversion.Scope) error {
return autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in, out, s)
}
func autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in *ISCSIVolumeSource, out *api.ISCSIVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ISCSIVolumeSource))(in)
}
out.TargetPortal = in.TargetPortal
out.IQN = in.IQN
out.Lun = int(in.Lun)
out.ISCSIInterface = in.ISCSIInterface
out.FSType = in.FSType
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in *ISCSIVolumeSource, out *api.ISCSIVolumeSource, s conversion.Scope) error {
return autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in, out, s)
}
func autoConvert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*KeyToPath))(in)
}
out.Key = in.Key
out.Path = in.Path
return nil
}
func Convert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s conversion.Scope) error {
return autoConvert_v1_KeyToPath_To_api_KeyToPath(in, out, s)
}
func autoConvert_v1_Lifecycle_To_api_Lifecycle(in *Lifecycle, out *api.Lifecycle, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Lifecycle))(in)
}
// unable to generate simple pointer conversion for v1.Handler -> api.Handler
if in.PostStart != nil {
out.PostStart = new(api.Handler)
if err := Convert_v1_Handler_To_api_Handler(in.PostStart, out.PostStart, s); err != nil {
return err
}
} else {
out.PostStart = nil
}
// unable to generate simple pointer conversion for v1.Handler -> api.Handler
if in.PreStop != nil {
out.PreStop = new(api.Handler)
if err := Convert_v1_Handler_To_api_Handler(in.PreStop, out.PreStop, s); err != nil {
return err
}
} else {
out.PreStop = nil
}
return nil
}
func Convert_v1_Lifecycle_To_api_Lifecycle(in *Lifecycle, out *api.Lifecycle, s conversion.Scope) error {
return autoConvert_v1_Lifecycle_To_api_Lifecycle(in, out, s)
}
func autoConvert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LimitRange))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
func Convert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error {
return autoConvert_v1_LimitRange_To_api_LimitRange(in, out, s)
}
func autoConvert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *api.LimitRangeItem, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LimitRangeItem))(in)
}
out.Type = api.LimitType(in.Type)
if err := s.Convert(&in.Max, &out.Max, 0); err != nil {
return err
}
if err := s.Convert(&in.Min, &out.Min, 0); err != nil {
return err
}
if err := s.Convert(&in.Default, &out.Default, 0); err != nil {
return err
}
if err := s.Convert(&in.DefaultRequest, &out.DefaultRequest, 0); err != nil {
return err
}
if err := s.Convert(&in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio, 0); err != nil {
return err
}
return nil
}
func Convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *api.LimitRangeItem, s conversion.Scope) error {
return autoConvert_v1_LimitRangeItem_To_api_LimitRangeItem(in, out, s)
}
func autoConvert_v1_LimitRangeList_To_api_LimitRangeList(in *LimitRangeList, out *api.LimitRangeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LimitRangeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.LimitRange, len(in.Items))
for i := range in.Items {
if err := Convert_v1_LimitRange_To_api_LimitRange(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_LimitRangeList_To_api_LimitRangeList(in *LimitRangeList, out *api.LimitRangeList, s conversion.Scope) error {
return autoConvert_v1_LimitRangeList_To_api_LimitRangeList(in, out, s)
}
func autoConvert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in *LimitRangeSpec, out *api.LimitRangeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LimitRangeSpec))(in)
}
if in.Limits != nil {
out.Limits = make([]api.LimitRangeItem, len(in.Limits))
for i := range in.Limits {
if err := Convert_v1_LimitRangeItem_To_api_LimitRangeItem(&in.Limits[i], &out.Limits[i], s); err != nil {
return err
}
}
} else {
out.Limits = nil
}
return nil
}
func Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in *LimitRangeSpec, out *api.LimitRangeSpec, s conversion.Scope) error {
return autoConvert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in, out, s)
}
func autoConvert_v1_List_To_api_List(in *List, out *api.List, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*List))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]runtime.Object, len(in.Items))
for i := range in.Items {
if err := s.Convert(&in.Items[i], &out.Items[i], 0); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_List_To_api_List(in *List, out *api.List, s conversion.Scope) error {
return autoConvert_v1_List_To_api_List(in, out, s)
}
func autoConvert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ListOptions))(in)
}
if err := api.Convert_string_To_labels_Selector(&in.LabelSelector, &out.LabelSelector, s); err != nil {
return err
}
if err := api.Convert_string_To_fields_Selector(&in.FieldSelector, &out.FieldSelector, s); err != nil {
return err
}
out.Watch = in.Watch
out.ResourceVersion = in.ResourceVersion
if in.TimeoutSeconds != nil {
out.TimeoutSeconds = new(int64)
*out.TimeoutSeconds = *in.TimeoutSeconds
} else {
out.TimeoutSeconds = nil
}
return nil
}
func Convert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOptions, s conversion.Scope) error {
return autoConvert_v1_ListOptions_To_api_ListOptions(in, out, s)
}
func autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in *LoadBalancerIngress, out *api.LoadBalancerIngress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LoadBalancerIngress))(in)
}
out.IP = in.IP
out.Hostname = in.Hostname
return nil
}
func Convert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in *LoadBalancerIngress, out *api.LoadBalancerIngress, s conversion.Scope) error {
return autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in, out, s)
}
func autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in *LoadBalancerStatus, out *api.LoadBalancerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LoadBalancerStatus))(in)
}
if in.Ingress != nil {
out.Ingress = make([]api.LoadBalancerIngress, len(in.Ingress))
for i := range in.Ingress {
if err := Convert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(&in.Ingress[i], &out.Ingress[i], s); err != nil {
return err
}
}
} else {
out.Ingress = nil
}
return nil
}
func Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in *LoadBalancerStatus, out *api.LoadBalancerStatus, s conversion.Scope) error {
return autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in, out, s)
}
func autoConvert_v1_LocalObjectReference_To_api_LocalObjectReference(in *LocalObjectReference, out *api.LocalObjectReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*LocalObjectReference))(in)
}
out.Name = in.Name
return nil
}
func Convert_v1_LocalObjectReference_To_api_LocalObjectReference(in *LocalObjectReference, out *api.LocalObjectReference, s conversion.Scope) error {
return autoConvert_v1_LocalObjectReference_To_api_LocalObjectReference(in, out, s)
}
func autoConvert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in *NFSVolumeSource, out *api.NFSVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NFSVolumeSource))(in)
}
out.Server = in.Server
out.Path = in.Path
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in *NFSVolumeSource, out *api.NFSVolumeSource, s conversion.Scope) error {
return autoConvert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in, out, s)
}
func autoConvert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Namespace))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_NamespaceSpec_To_api_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_NamespaceStatus_To_api_NamespaceStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error {
return autoConvert_v1_Namespace_To_api_Namespace(in, out, s)
}
func autoConvert_v1_NamespaceList_To_api_NamespaceList(in *NamespaceList, out *api.NamespaceList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NamespaceList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Namespace, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Namespace_To_api_Namespace(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_NamespaceList_To_api_NamespaceList(in *NamespaceList, out *api.NamespaceList, s conversion.Scope) error {
return autoConvert_v1_NamespaceList_To_api_NamespaceList(in, out, s)
}
func autoConvert_v1_NamespaceSpec_To_api_NamespaceSpec(in *NamespaceSpec, out *api.NamespaceSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NamespaceSpec))(in)
}
if in.Finalizers != nil {
out.Finalizers = make([]api.FinalizerName, len(in.Finalizers))
for i := range in.Finalizers {
out.Finalizers[i] = api.FinalizerName(in.Finalizers[i])
}
} else {
out.Finalizers = nil
}
return nil
}
func Convert_v1_NamespaceSpec_To_api_NamespaceSpec(in *NamespaceSpec, out *api.NamespaceSpec, s conversion.Scope) error {
return autoConvert_v1_NamespaceSpec_To_api_NamespaceSpec(in, out, s)
}
func autoConvert_v1_NamespaceStatus_To_api_NamespaceStatus(in *NamespaceStatus, out *api.NamespaceStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NamespaceStatus))(in)
}
out.Phase = api.NamespacePhase(in.Phase)
return nil
}
func Convert_v1_NamespaceStatus_To_api_NamespaceStatus(in *NamespaceStatus, out *api.NamespaceStatus, s conversion.Scope) error {
return autoConvert_v1_NamespaceStatus_To_api_NamespaceStatus(in, out, s)
}
func autoConvert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Node))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_NodeSpec_To_api_NodeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_NodeStatus_To_api_NodeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error {
return autoConvert_v1_Node_To_api_Node(in, out, s)
}
func autoConvert_v1_NodeAddress_To_api_NodeAddress(in *NodeAddress, out *api.NodeAddress, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeAddress))(in)
}
out.Type = api.NodeAddressType(in.Type)
out.Address = in.Address
return nil
}
func Convert_v1_NodeAddress_To_api_NodeAddress(in *NodeAddress, out *api.NodeAddress, s conversion.Scope) error {
return autoConvert_v1_NodeAddress_To_api_NodeAddress(in, out, s)
}
func autoConvert_v1_NodeCondition_To_api_NodeCondition(in *NodeCondition, out *api.NodeCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeCondition))(in)
}
out.Type = api.NodeConditionType(in.Type)
out.Status = api.ConditionStatus(in.Status)
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastHeartbeatTime, &out.LastHeartbeatTime, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_v1_NodeCondition_To_api_NodeCondition(in *NodeCondition, out *api.NodeCondition, s conversion.Scope) error {
return autoConvert_v1_NodeCondition_To_api_NodeCondition(in, out, s)
}
func autoConvert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in *NodeDaemonEndpoints, out *api.NodeDaemonEndpoints, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeDaemonEndpoints))(in)
}
if err := Convert_v1_DaemonEndpoint_To_api_DaemonEndpoint(&in.KubeletEndpoint, &out.KubeletEndpoint, s); err != nil {
return err
}
return nil
}
func Convert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in *NodeDaemonEndpoints, out *api.NodeDaemonEndpoints, s conversion.Scope) error {
return autoConvert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in, out, s)
}
func autoConvert_v1_NodeList_To_api_NodeList(in *NodeList, out *api.NodeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Node, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Node_To_api_Node(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_NodeList_To_api_NodeList(in *NodeList, out *api.NodeList, s conversion.Scope) error {
return autoConvert_v1_NodeList_To_api_NodeList(in, out, s)
}
func autoConvert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in *NodeProxyOptions, out *api.NodeProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in *NodeProxyOptions, out *api.NodeProxyOptions, s conversion.Scope) error {
return autoConvert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in, out, s)
}
func autoConvert_v1_NodeSpec_To_api_NodeSpec(in *NodeSpec, out *api.NodeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeSpec))(in)
}
out.PodCIDR = in.PodCIDR
out.ExternalID = in.ExternalID
out.ProviderID = in.ProviderID
out.Unschedulable = in.Unschedulable
return nil
}
func Convert_v1_NodeSpec_To_api_NodeSpec(in *NodeSpec, out *api.NodeSpec, s conversion.Scope) error {
return autoConvert_v1_NodeSpec_To_api_NodeSpec(in, out, s)
}
func autoConvert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeStatus))(in)
}
if err := s.Convert(&in.Capacity, &out.Capacity, 0); err != nil {
return err
}
if err := s.Convert(&in.Allocatable, &out.Allocatable, 0); err != nil {
return err
}
out.Phase = api.NodePhase(in.Phase)
if in.Conditions != nil {
out.Conditions = make([]api.NodeCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_v1_NodeCondition_To_api_NodeCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
if in.Addresses != nil {
out.Addresses = make([]api.NodeAddress, len(in.Addresses))
for i := range in.Addresses {
if err := Convert_v1_NodeAddress_To_api_NodeAddress(&in.Addresses[i], &out.Addresses[i], s); err != nil {
return err
}
}
} else {
out.Addresses = nil
}
if err := Convert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(&in.DaemonEndpoints, &out.DaemonEndpoints, s); err != nil {
return err
}
if err := Convert_v1_NodeSystemInfo_To_api_NodeSystemInfo(&in.NodeInfo, &out.NodeInfo, s); err != nil {
return err
}
if in.Images != nil {
out.Images = make([]api.ContainerImage, len(in.Images))
for i := range in.Images {
if err := Convert_v1_ContainerImage_To_api_ContainerImage(&in.Images[i], &out.Images[i], s); err != nil {
return err
}
}
} else {
out.Images = nil
}
return nil
}
func Convert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus, s conversion.Scope) error {
return autoConvert_v1_NodeStatus_To_api_NodeStatus(in, out, s)
}
func autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out *api.NodeSystemInfo, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*NodeSystemInfo))(in)
}
out.MachineID = in.MachineID
out.SystemUUID = in.SystemUUID
out.BootID = in.BootID
out.KernelVersion = in.KernelVersion
out.OSImage = in.OSImage
out.ContainerRuntimeVersion = in.ContainerRuntimeVersion
out.KubeletVersion = in.KubeletVersion
out.KubeProxyVersion = in.KubeProxyVersion
return nil
}
func Convert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out *api.NodeSystemInfo, s conversion.Scope) error {
return autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in, out, s)
}
func autoConvert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in *ObjectFieldSelector, out *api.ObjectFieldSelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ObjectFieldSelector))(in)
}
out.APIVersion = in.APIVersion
out.FieldPath = in.FieldPath
return nil
}
func Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in *ObjectFieldSelector, out *api.ObjectFieldSelector, s conversion.Scope) error {
return autoConvert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in, out, s)
}
func autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.ObjectMeta, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ObjectMeta))(in)
}
out.Name = in.Name
out.GenerateName = in.GenerateName
out.Namespace = in.Namespace
out.SelfLink = in.SelfLink
out.UID = in.UID
out.ResourceVersion = in.ResourceVersion
out.Generation = in.Generation
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.CreationTimestamp, &out.CreationTimestamp, s); err != nil {
return err
}
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.DeletionTimestamp != nil {
out.DeletionTimestamp = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.DeletionTimestamp, out.DeletionTimestamp, s); err != nil {
return err
}
} else {
out.DeletionTimestamp = nil
}
if in.DeletionGracePeriodSeconds != nil {
out.DeletionGracePeriodSeconds = new(int64)
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
} else {
out.DeletionGracePeriodSeconds = nil
}
if in.Labels != nil {
out.Labels = make(map[string]string)
for key, val := range in.Labels {
out.Labels[key] = val
}
} else {
out.Labels = nil
}
if in.Annotations != nil {
out.Annotations = make(map[string]string)
for key, val := range in.Annotations {
out.Annotations[key] = val
}
} else {
out.Annotations = nil
}
return nil
}
func Convert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.ObjectMeta, s conversion.Scope) error {
return autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in, out, s)
}
func autoConvert_v1_ObjectReference_To_api_ObjectReference(in *ObjectReference, out *api.ObjectReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ObjectReference))(in)
}
out.Kind = in.Kind
out.Namespace = in.Namespace
out.Name = in.Name
out.UID = in.UID
out.APIVersion = in.APIVersion
out.ResourceVersion = in.ResourceVersion
out.FieldPath = in.FieldPath
return nil
}
func Convert_v1_ObjectReference_To_api_ObjectReference(in *ObjectReference, out *api.ObjectReference, s conversion.Scope) error {
return autoConvert_v1_ObjectReference_To_api_ObjectReference(in, out, s)
}
func autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolume))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error {
return autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in, out, s)
}
func your_sha256_hashm(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeClaim))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := your_sha256_hashmSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := your_sha256_hashaimStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error {
return your_sha256_hashm(in, out, s)
}
func your_sha256_hashClaimList(in *PersistentVolumeClaimList, out *api.PersistentVolumeClaimList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeClaimList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.PersistentVolumeClaim, len(in.Items))
for i := range in.Items {
if err := Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashmList(in *PersistentVolumeClaimList, out *api.PersistentVolumeClaimList, s conversion.Scope) error {
return your_sha256_hashClaimList(in, out, s)
}
func your_sha256_hashClaimSpec(in *PersistentVolumeClaimSpec, out *api.PersistentVolumeClaimSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeClaimSpec))(in)
}
if in.AccessModes != nil {
out.AccessModes = make([]api.PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = api.PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
return err
}
out.VolumeName = in.VolumeName
return nil
}
func your_sha256_hashmSpec(in *PersistentVolumeClaimSpec, out *api.PersistentVolumeClaimSpec, s conversion.Scope) error {
return your_sha256_hashClaimSpec(in, out, s)
}
func your_sha256_hashmeClaimStatus(in *PersistentVolumeClaimStatus, out *api.PersistentVolumeClaimStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeClaimStatus))(in)
}
out.Phase = api.PersistentVolumeClaimPhase(in.Phase)
if in.AccessModes != nil {
out.AccessModes = make([]api.PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = api.PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
if err := s.Convert(&in.Capacity, &out.Capacity, 0); err != nil {
return err
}
return nil
}
func your_sha256_hashaimStatus(in *PersistentVolumeClaimStatus, out *api.PersistentVolumeClaimStatus, s conversion.Scope) error {
return your_sha256_hashmeClaimStatus(in, out, s)
}
func your_sha256_hashntVolumeClaimVolumeSource(in *PersistentVolumeClaimVolumeSource, out *api.PersistentVolumeClaimVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeClaimVolumeSource))(in)
}
out.ClaimName = in.ClaimName
out.ReadOnly = in.ReadOnly
return nil
}
func your_sha256_hashlumeClaimVolumeSource(in *PersistentVolumeClaimVolumeSource, out *api.PersistentVolumeClaimVolumeSource, s conversion.Scope) error {
return your_sha256_hashntVolumeClaimVolumeSource(in, out, s)
}
func autoConvert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in *PersistentVolumeList, out *api.PersistentVolumeList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.PersistentVolume, len(in.Items))
for i := range in.Items {
if err := Convert_v1_PersistentVolume_To_api_PersistentVolume(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in *PersistentVolumeList, out *api.PersistentVolumeList, s conversion.Scope) error {
return autoConvert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in, out, s)
}
func your_sha256_hashrce(in *PersistentVolumeSource, out *api.PersistentVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeSource))(in)
}
// unable to generate simple pointer conversion for v1.GCEPersistentDiskVolumeSource -> api.GCEPersistentDiskVolumeSource
if in.GCEPersistentDisk != nil {
out.GCEPersistentDisk = new(api.GCEPersistentDiskVolumeSource)
if err := your_sha256_hashkVolumeSource(in.GCEPersistentDisk, out.GCEPersistentDisk, s); err != nil {
return err
}
} else {
out.GCEPersistentDisk = nil
}
// unable to generate simple pointer conversion for v1.AWSElasticBlockStoreVolumeSource -> api.AWSElasticBlockStoreVolumeSource
if in.AWSElasticBlockStore != nil {
out.AWSElasticBlockStore = new(api.AWSElasticBlockStoreVolumeSource)
if err := your_sha256_hashckStoreVolumeSource(in.AWSElasticBlockStore, out.AWSElasticBlockStore, s); err != nil {
return err
}
} else {
out.AWSElasticBlockStore = nil
}
// unable to generate simple pointer conversion for v1.HostPathVolumeSource -> api.HostPathVolumeSource
if in.HostPath != nil {
out.HostPath = new(api.HostPathVolumeSource)
if err := Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in.HostPath, out.HostPath, s); err != nil {
return err
}
} else {
out.HostPath = nil
}
// unable to generate simple pointer conversion for v1.GlusterfsVolumeSource -> api.GlusterfsVolumeSource
if in.Glusterfs != nil {
out.Glusterfs = new(api.GlusterfsVolumeSource)
if err := Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in.Glusterfs, out.Glusterfs, s); err != nil {
return err
}
} else {
out.Glusterfs = nil
}
// unable to generate simple pointer conversion for v1.NFSVolumeSource -> api.NFSVolumeSource
if in.NFS != nil {
out.NFS = new(api.NFSVolumeSource)
if err := Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in.NFS, out.NFS, s); err != nil {
return err
}
} else {
out.NFS = nil
}
// unable to generate simple pointer conversion for v1.RBDVolumeSource -> api.RBDVolumeSource
if in.RBD != nil {
out.RBD = new(api.RBDVolumeSource)
if err := Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in.RBD, out.RBD, s); err != nil {
return err
}
} else {
out.RBD = nil
}
// unable to generate simple pointer conversion for v1.ISCSIVolumeSource -> api.ISCSIVolumeSource
if in.ISCSI != nil {
out.ISCSI = new(api.ISCSIVolumeSource)
if err := Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in.ISCSI, out.ISCSI, s); err != nil {
return err
}
} else {
out.ISCSI = nil
}
// unable to generate simple pointer conversion for v1.CinderVolumeSource -> api.CinderVolumeSource
if in.Cinder != nil {
out.Cinder = new(api.CinderVolumeSource)
if err := Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in.Cinder, out.Cinder, s); err != nil {
return err
}
} else {
out.Cinder = nil
}
// unable to generate simple pointer conversion for v1.CephFSVolumeSource -> api.CephFSVolumeSource
if in.CephFS != nil {
out.CephFS = new(api.CephFSVolumeSource)
if err := Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in.CephFS, out.CephFS, s); err != nil {
return err
}
} else {
out.CephFS = nil
}
// unable to generate simple pointer conversion for v1.FCVolumeSource -> api.FCVolumeSource
if in.FC != nil {
out.FC = new(api.FCVolumeSource)
if err := Convert_v1_FCVolumeSource_To_api_FCVolumeSource(in.FC, out.FC, s); err != nil {
return err
}
} else {
out.FC = nil
}
// unable to generate simple pointer conversion for v1.FlockerVolumeSource -> api.FlockerVolumeSource
if in.Flocker != nil {
out.Flocker = new(api.FlockerVolumeSource)
if err := Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in.Flocker, out.Flocker, s); err != nil {
return err
}
} else {
out.Flocker = nil
}
// unable to generate simple pointer conversion for v1.FlexVolumeSource -> api.FlexVolumeSource
if in.FlexVolume != nil {
out.FlexVolume = new(api.FlexVolumeSource)
if err := Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in.FlexVolume, out.FlexVolume, s); err != nil {
return err
}
} else {
out.FlexVolume = nil
}
// unable to generate simple pointer conversion for v1.AzureFileVolumeSource -> api.AzureFileVolumeSource
if in.AzureFile != nil {
out.AzureFile = new(api.AzureFileVolumeSource)
if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
return err
}
} else {
out.AzureFile = nil
}
return nil
}
func Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *PersistentVolumeSource, out *api.PersistentVolumeSource, s conversion.Scope) error {
return your_sha256_hashrce(in, out, s)
}
func autoConvert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentVolumeSpec, out *api.PersistentVolumeSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeSpec))(in)
}
if err := s.Convert(&in.Capacity, &out.Capacity, 0); err != nil {
return err
}
if err := Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, s); err != nil {
return err
}
if in.AccessModes != nil {
out.AccessModes = make([]api.PersistentVolumeAccessMode, len(in.AccessModes))
for i := range in.AccessModes {
out.AccessModes[i] = api.PersistentVolumeAccessMode(in.AccessModes[i])
}
} else {
out.AccessModes = nil
}
// unable to generate simple pointer conversion for v1.ObjectReference -> api.ObjectReference
if in.ClaimRef != nil {
out.ClaimRef = new(api.ObjectReference)
if err := Convert_v1_ObjectReference_To_api_ObjectReference(in.ClaimRef, out.ClaimRef, s); err != nil {
return err
}
} else {
out.ClaimRef = nil
}
out.PersistentVolumeReclaimPolicy = api.PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy)
return nil
}
func Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentVolumeSpec, out *api.PersistentVolumeSpec, s conversion.Scope) error {
return autoConvert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in, out, s)
}
func your_sha256_hashtus(in *PersistentVolumeStatus, out *api.PersistentVolumeStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PersistentVolumeStatus))(in)
}
out.Phase = api.PersistentVolumePhase(in.Phase)
out.Message = in.Message
out.Reason = in.Reason
return nil
}
func Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(in *PersistentVolumeStatus, out *api.PersistentVolumeStatus, s conversion.Scope) error {
return your_sha256_hashtus(in, out, s)
}
func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Pod))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func autoConvert_v1_PodAttachOptions_To_api_PodAttachOptions(in *PodAttachOptions, out *api.PodAttachOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodAttachOptions))(in)
}
out.Stdin = in.Stdin
out.Stdout = in.Stdout
out.Stderr = in.Stderr
out.TTY = in.TTY
out.Container = in.Container
return nil
}
func Convert_v1_PodAttachOptions_To_api_PodAttachOptions(in *PodAttachOptions, out *api.PodAttachOptions, s conversion.Scope) error {
return autoConvert_v1_PodAttachOptions_To_api_PodAttachOptions(in, out, s)
}
func autoConvert_v1_PodCondition_To_api_PodCondition(in *PodCondition, out *api.PodCondition, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodCondition))(in)
}
out.Type = api.PodConditionType(in.Type)
out.Status = api.ConditionStatus(in.Status)
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastProbeTime, &out.LastProbeTime, s); err != nil {
return err
}
if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
func Convert_v1_PodCondition_To_api_PodCondition(in *PodCondition, out *api.PodCondition, s conversion.Scope) error {
return autoConvert_v1_PodCondition_To_api_PodCondition(in, out, s)
}
func autoConvert_v1_PodExecOptions_To_api_PodExecOptions(in *PodExecOptions, out *api.PodExecOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodExecOptions))(in)
}
out.Stdin = in.Stdin
out.Stdout = in.Stdout
out.Stderr = in.Stderr
out.TTY = in.TTY
out.Container = in.Container
if in.Command != nil {
out.Command = make([]string, len(in.Command))
for i := range in.Command {
out.Command[i] = in.Command[i]
}
} else {
out.Command = nil
}
return nil
}
func Convert_v1_PodExecOptions_To_api_PodExecOptions(in *PodExecOptions, out *api.PodExecOptions, s conversion.Scope) error {
return autoConvert_v1_PodExecOptions_To_api_PodExecOptions(in, out, s)
}
func autoConvert_v1_PodList_To_api_PodList(in *PodList, out *api.PodList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Pod, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Pod_To_api_Pod(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_PodList_To_api_PodList(in *PodList, out *api.PodList, s conversion.Scope) error {
return autoConvert_v1_PodList_To_api_PodList(in, out, s)
}
func autoConvert_v1_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *api.PodLogOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodLogOptions))(in)
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
if in.SinceSeconds != nil {
out.SinceSeconds = new(int64)
*out.SinceSeconds = *in.SinceSeconds
} else {
out.SinceSeconds = nil
}
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.SinceTime != nil {
out.SinceTime = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.SinceTime, out.SinceTime, s); err != nil {
return err
}
} else {
out.SinceTime = nil
}
out.Timestamps = in.Timestamps
if in.TailLines != nil {
out.TailLines = new(int64)
*out.TailLines = *in.TailLines
} else {
out.TailLines = nil
}
if in.LimitBytes != nil {
out.LimitBytes = new(int64)
*out.LimitBytes = *in.LimitBytes
} else {
out.LimitBytes = nil
}
return nil
}
func Convert_v1_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *api.PodLogOptions, s conversion.Scope) error {
return autoConvert_v1_PodLogOptions_To_api_PodLogOptions(in, out, s)
}
func autoConvert_v1_PodProxyOptions_To_api_PodProxyOptions(in *PodProxyOptions, out *api.PodProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_v1_PodProxyOptions_To_api_PodProxyOptions(in *PodProxyOptions, out *api.PodProxyOptions, s conversion.Scope) error {
return autoConvert_v1_PodProxyOptions_To_api_PodProxyOptions(in, out, s)
}
func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodSpec))(in)
}
if in.Volumes != nil {
out.Volumes = make([]api.Volume, len(in.Volumes))
for i := range in.Volumes {
if err := Convert_v1_Volume_To_api_Volume(&in.Volumes[i], &out.Volumes[i], s); err != nil {
return err
}
}
} else {
out.Volumes = nil
}
if in.Containers != nil {
out.Containers = make([]api.Container, len(in.Containers))
for i := range in.Containers {
if err := Convert_v1_Container_To_api_Container(&in.Containers[i], &out.Containers[i], s); err != nil {
return err
}
}
} else {
out.Containers = nil
}
out.RestartPolicy = api.RestartPolicy(in.RestartPolicy)
if in.TerminationGracePeriodSeconds != nil {
out.TerminationGracePeriodSeconds = new(int64)
*out.TerminationGracePeriodSeconds = *in.TerminationGracePeriodSeconds
} else {
out.TerminationGracePeriodSeconds = nil
}
if in.ActiveDeadlineSeconds != nil {
out.ActiveDeadlineSeconds = new(int64)
*out.ActiveDeadlineSeconds = *in.ActiveDeadlineSeconds
} else {
out.ActiveDeadlineSeconds = nil
}
out.DNSPolicy = api.DNSPolicy(in.DNSPolicy)
if in.NodeSelector != nil {
out.NodeSelector = make(map[string]string)
for key, val := range in.NodeSelector {
out.NodeSelector[key] = val
}
} else {
out.NodeSelector = nil
}
out.ServiceAccountName = in.ServiceAccountName
// in.DeprecatedServiceAccount has no peer in out
out.NodeName = in.NodeName
// in.HostNetwork has no peer in out
// in.HostPID has no peer in out
// in.HostIPC has no peer in out
// unable to generate simple pointer conversion for v1.PodSecurityContext -> api.PodSecurityContext
if in.SecurityContext != nil {
if err := s.Convert(&in.SecurityContext, &out.SecurityContext, 0); err != nil {
return err
}
} else {
out.SecurityContext = nil
}
if in.ImagePullSecrets != nil {
out.ImagePullSecrets = make([]api.LocalObjectReference, len(in.ImagePullSecrets))
for i := range in.ImagePullSecrets {
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.ImagePullSecrets[i], &out.ImagePullSecrets[i], s); err != nil {
return err
}
}
} else {
out.ImagePullSecrets = nil
}
return nil
}
func autoConvert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodStatus))(in)
}
out.Phase = api.PodPhase(in.Phase)
if in.Conditions != nil {
out.Conditions = make([]api.PodCondition, len(in.Conditions))
for i := range in.Conditions {
if err := Convert_v1_PodCondition_To_api_PodCondition(&in.Conditions[i], &out.Conditions[i], s); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
out.Message = in.Message
out.Reason = in.Reason
out.HostIP = in.HostIP
out.PodIP = in.PodIP
// unable to generate simple pointer conversion for unversioned.Time -> unversioned.Time
if in.StartTime != nil {
out.StartTime = new(unversioned.Time)
if err := api.Convert_unversioned_Time_To_unversioned_Time(in.StartTime, out.StartTime, s); err != nil {
return err
}
} else {
out.StartTime = nil
}
if in.ContainerStatuses != nil {
out.ContainerStatuses = make([]api.ContainerStatus, len(in.ContainerStatuses))
for i := range in.ContainerStatuses {
if err := Convert_v1_ContainerStatus_To_api_ContainerStatus(&in.ContainerStatuses[i], &out.ContainerStatuses[i], s); err != nil {
return err
}
}
} else {
out.ContainerStatuses = nil
}
return nil
}
func Convert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus, s conversion.Scope) error {
return autoConvert_v1_PodStatus_To_api_PodStatus(in, out, s)
}
func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodStatusResult))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error {
return autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in, out, s)
}
func autoConvert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodTemplate))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err
}
return nil
}
func Convert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error {
return autoConvert_v1_PodTemplate_To_api_PodTemplate(in, out, s)
}
func autoConvert_v1_PodTemplateList_To_api_PodTemplateList(in *PodTemplateList, out *api.PodTemplateList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodTemplateList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.PodTemplate, len(in.Items))
for i := range in.Items {
if err := Convert_v1_PodTemplate_To_api_PodTemplate(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_PodTemplateList_To_api_PodTemplateList(in *PodTemplateList, out *api.PodTemplateList, s conversion.Scope) error {
return autoConvert_v1_PodTemplateList_To_api_PodTemplateList(in, out, s)
}
func autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*PodTemplateSpec))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
func Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error {
return autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in, out, s)
}
func autoConvert_v1_Probe_To_api_Probe(in *Probe, out *api.Probe, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Probe))(in)
}
if err := Convert_v1_Handler_To_api_Handler(&in.Handler, &out.Handler, s); err != nil {
return err
}
out.InitialDelaySeconds = int(in.InitialDelaySeconds)
out.TimeoutSeconds = int(in.TimeoutSeconds)
out.PeriodSeconds = int(in.PeriodSeconds)
out.SuccessThreshold = int(in.SuccessThreshold)
out.FailureThreshold = int(in.FailureThreshold)
return nil
}
func Convert_v1_Probe_To_api_Probe(in *Probe, out *api.Probe, s conversion.Scope) error {
return autoConvert_v1_Probe_To_api_Probe(in, out, s)
}
func autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out *api.RBDVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*RBDVolumeSource))(in)
}
if in.CephMonitors != nil {
out.CephMonitors = make([]string, len(in.CephMonitors))
for i := range in.CephMonitors {
out.CephMonitors[i] = in.CephMonitors[i]
}
} else {
out.CephMonitors = nil
}
out.RBDImage = in.RBDImage
out.FSType = in.FSType
out.RBDPool = in.RBDPool
out.RadosUser = in.RadosUser
out.Keyring = in.Keyring
// unable to generate simple pointer conversion for v1.LocalObjectReference -> api.LocalObjectReference
if in.SecretRef != nil {
out.SecretRef = new(api.LocalObjectReference)
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(in.SecretRef, out.SecretRef, s); err != nil {
return err
}
} else {
out.SecretRef = nil
}
out.ReadOnly = in.ReadOnly
return nil
}
func Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out *api.RBDVolumeSource, s conversion.Scope) error {
return autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in, out, s)
}
func autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*RangeAllocation))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
out.Range = in.Range
if err := conversion.ByteSliceCopy(&in.Data, &out.Data, s); err != nil {
return err
}
return nil
}
func Convert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error {
return autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in, out, s)
}
func your_sha256_hashr(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ReplicationController))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := your_sha256_hashrSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := your_sha256_hashlerStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_ReplicationController_To_api_ReplicationController(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error {
return your_sha256_hashr(in, out, s)
}
func your_sha256_hashollerList(in *ReplicationControllerList, out *api.ReplicationControllerList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ReplicationControllerList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.ReplicationController, len(in.Items))
for i := range in.Items {
if err := Convert_v1_ReplicationController_To_api_ReplicationController(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func your_sha256_hashrList(in *ReplicationControllerList, out *api.ReplicationControllerList, s conversion.Scope) error {
return your_sha256_hashollerList(in, out, s)
}
func your_sha256_hashollerSpec(in *ReplicationControllerSpec, out *api.ReplicationControllerSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ReplicationControllerSpec))(in)
}
// in.Replicas has no peer in out
if in.Selector != nil {
out.Selector = make(map[string]string)
for key, val := range in.Selector {
out.Selector[key] = val
}
} else {
out.Selector = nil
}
// unable to generate simple pointer conversion for v1.PodTemplateSpec -> api.PodTemplateSpec
if in.Template != nil {
out.Template = new(api.PodTemplateSpec)
if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, out.Template, s); err != nil {
return err
}
} else {
out.Template = nil
}
return nil
}
func your_sha256_hashtrollerStatus(in *ReplicationControllerStatus, out *api.ReplicationControllerStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ReplicationControllerStatus))(in)
}
out.Replicas = int(in.Replicas)
out.FullyLabeledReplicas = int(in.FullyLabeledReplicas)
out.ObservedGeneration = in.ObservedGeneration
return nil
}
func your_sha256_hashlerStatus(in *ReplicationControllerStatus, out *api.ReplicationControllerStatus, s conversion.Scope) error {
return your_sha256_hashtrollerStatus(in, out, s)
}
func autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ResourceQuota))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error {
return autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in, out, s)
}
func autoConvert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in *ResourceQuotaList, out *api.ResourceQuotaList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ResourceQuotaList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.ResourceQuota, len(in.Items))
for i := range in.Items {
if err := Convert_v1_ResourceQuota_To_api_ResourceQuota(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in *ResourceQuotaList, out *api.ResourceQuotaList, s conversion.Scope) error {
return autoConvert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in, out, s)
}
func autoConvert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec, out *api.ResourceQuotaSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ResourceQuotaSpec))(in)
}
if err := s.Convert(&in.Hard, &out.Hard, 0); err != nil {
return err
}
if in.Scopes != nil {
out.Scopes = make([]api.ResourceQuotaScope, len(in.Scopes))
for i := range in.Scopes {
out.Scopes[i] = api.ResourceQuotaScope(in.Scopes[i])
}
} else {
out.Scopes = nil
}
return nil
}
func Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec, out *api.ResourceQuotaSpec, s conversion.Scope) error {
return autoConvert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in, out, s)
}
func autoConvert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuotaStatus, out *api.ResourceQuotaStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ResourceQuotaStatus))(in)
}
if err := s.Convert(&in.Hard, &out.Hard, 0); err != nil {
return err
}
if err := s.Convert(&in.Used, &out.Used, 0); err != nil {
return err
}
return nil
}
func Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuotaStatus, out *api.ResourceQuotaStatus, s conversion.Scope) error {
return autoConvert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in, out, s)
}
func autoConvert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceRequirements, out *api.ResourceRequirements, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ResourceRequirements))(in)
}
if err := s.Convert(&in.Limits, &out.Limits, 0); err != nil {
return err
}
if err := s.Convert(&in.Requests, &out.Requests, 0); err != nil {
return err
}
return nil
}
func Convert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceRequirements, out *api.ResourceRequirements, s conversion.Scope) error {
return autoConvert_v1_ResourceRequirements_To_api_ResourceRequirements(in, out, s)
}
func autoConvert_v1_SELinuxOptions_To_api_SELinuxOptions(in *SELinuxOptions, out *api.SELinuxOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SELinuxOptions))(in)
}
out.User = in.User
out.Role = in.Role
out.Type = in.Type
out.Level = in.Level
return nil
}
func Convert_v1_SELinuxOptions_To_api_SELinuxOptions(in *SELinuxOptions, out *api.SELinuxOptions, s conversion.Scope) error {
return autoConvert_v1_SELinuxOptions_To_api_SELinuxOptions(in, out, s)
}
func autoConvert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Secret))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Data != nil {
out.Data = make(map[string][]uint8)
for key, val := range in.Data {
newVal := []uint8{}
if err := conversion.ByteSliceCopy(&val, &newVal, s); err != nil {
return err
}
out.Data[key] = newVal
}
} else {
out.Data = nil
}
out.Type = api.SecretType(in.Type)
return nil
}
func Convert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error {
return autoConvert_v1_Secret_To_api_Secret(in, out, s)
}
func autoConvert_v1_SecretKeySelector_To_api_SecretKeySelector(in *SecretKeySelector, out *api.SecretKeySelector, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SecretKeySelector))(in)
}
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
return err
}
out.Key = in.Key
return nil
}
func Convert_v1_SecretKeySelector_To_api_SecretKeySelector(in *SecretKeySelector, out *api.SecretKeySelector, s conversion.Scope) error {
return autoConvert_v1_SecretKeySelector_To_api_SecretKeySelector(in, out, s)
}
func autoConvert_v1_SecretList_To_api_SecretList(in *SecretList, out *api.SecretList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SecretList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Secret, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Secret_To_api_Secret(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_SecretList_To_api_SecretList(in *SecretList, out *api.SecretList, s conversion.Scope) error {
return autoConvert_v1_SecretList_To_api_SecretList(in, out, s)
}
func autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSource, out *api.SecretVolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SecretVolumeSource))(in)
}
out.SecretName = in.SecretName
return nil
}
func Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSource, out *api.SecretVolumeSource, s conversion.Scope) error {
return autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in, out, s)
}
func autoConvert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext, out *api.SecurityContext, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SecurityContext))(in)
}
// unable to generate simple pointer conversion for v1.Capabilities -> api.Capabilities
if in.Capabilities != nil {
out.Capabilities = new(api.Capabilities)
if err := Convert_v1_Capabilities_To_api_Capabilities(in.Capabilities, out.Capabilities, s); err != nil {
return err
}
} else {
out.Capabilities = nil
}
if in.Privileged != nil {
out.Privileged = new(bool)
*out.Privileged = *in.Privileged
} else {
out.Privileged = nil
}
// unable to generate simple pointer conversion for v1.SELinuxOptions -> api.SELinuxOptions
if in.SELinuxOptions != nil {
out.SELinuxOptions = new(api.SELinuxOptions)
if err := Convert_v1_SELinuxOptions_To_api_SELinuxOptions(in.SELinuxOptions, out.SELinuxOptions, s); err != nil {
return err
}
} else {
out.SELinuxOptions = nil
}
if in.RunAsUser != nil {
out.RunAsUser = new(int64)
*out.RunAsUser = *in.RunAsUser
} else {
out.RunAsUser = nil
}
if in.RunAsNonRoot != nil {
out.RunAsNonRoot = new(bool)
*out.RunAsNonRoot = *in.RunAsNonRoot
} else {
out.RunAsNonRoot = nil
}
if in.ReadOnlyRootFilesystem != nil {
out.ReadOnlyRootFilesystem = new(bool)
*out.ReadOnlyRootFilesystem = *in.ReadOnlyRootFilesystem
} else {
out.ReadOnlyRootFilesystem = nil
}
return nil
}
func Convert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext, out *api.SecurityContext, s conversion.Scope) error {
return autoConvert_v1_SecurityContext_To_api_SecurityContext(in, out, s)
}
func autoConvert_v1_SerializedReference_To_api_SerializedReference(in *SerializedReference, out *api.SerializedReference, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*SerializedReference))(in)
}
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Reference, &out.Reference, s); err != nil {
return err
}
return nil
}
func Convert_v1_SerializedReference_To_api_SerializedReference(in *SerializedReference, out *api.SerializedReference, s conversion.Scope) error {
return autoConvert_v1_SerializedReference_To_api_SerializedReference(in, out, s)
}
func autoConvert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Service))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if err := Convert_v1_ServiceSpec_To_api_ServiceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_ServiceStatus_To_api_ServiceStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
func Convert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error {
return autoConvert_v1_Service_To_api_Service(in, out, s)
}
func autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceAccount))(in)
}
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil {
return err
}
if in.Secrets != nil {
out.Secrets = make([]api.ObjectReference, len(in.Secrets))
for i := range in.Secrets {
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Secrets[i], &out.Secrets[i], s); err != nil {
return err
}
}
} else {
out.Secrets = nil
}
if in.ImagePullSecrets != nil {
out.ImagePullSecrets = make([]api.LocalObjectReference, len(in.ImagePullSecrets))
for i := range in.ImagePullSecrets {
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.ImagePullSecrets[i], &out.ImagePullSecrets[i], s); err != nil {
return err
}
}
} else {
out.ImagePullSecrets = nil
}
return nil
}
func Convert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error {
return autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in, out, s)
}
func autoConvert_v1_ServiceAccountList_To_api_ServiceAccountList(in *ServiceAccountList, out *api.ServiceAccountList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceAccountList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.ServiceAccount, len(in.Items))
for i := range in.Items {
if err := Convert_v1_ServiceAccount_To_api_ServiceAccount(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ServiceAccountList_To_api_ServiceAccountList(in *ServiceAccountList, out *api.ServiceAccountList, s conversion.Scope) error {
return autoConvert_v1_ServiceAccountList_To_api_ServiceAccountList(in, out, s)
}
func autoConvert_v1_ServiceList_To_api_ServiceList(in *ServiceList, out *api.ServiceList, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceList))(in)
}
if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil {
return err
}
if in.Items != nil {
out.Items = make([]api.Service, len(in.Items))
for i := range in.Items {
if err := Convert_v1_Service_To_api_Service(&in.Items[i], &out.Items[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
func Convert_v1_ServiceList_To_api_ServiceList(in *ServiceList, out *api.ServiceList, s conversion.Scope) error {
return autoConvert_v1_ServiceList_To_api_ServiceList(in, out, s)
}
func autoConvert_v1_ServicePort_To_api_ServicePort(in *ServicePort, out *api.ServicePort, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServicePort))(in)
}
out.Name = in.Name
out.Protocol = api.Protocol(in.Protocol)
out.Port = int(in.Port)
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.TargetPort, &out.TargetPort, s); err != nil {
return err
}
out.NodePort = int(in.NodePort)
return nil
}
func Convert_v1_ServicePort_To_api_ServicePort(in *ServicePort, out *api.ServicePort, s conversion.Scope) error {
return autoConvert_v1_ServicePort_To_api_ServicePort(in, out, s)
}
func autoConvert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in *ServiceProxyOptions, out *api.ServiceProxyOptions, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceProxyOptions))(in)
}
out.Path = in.Path
return nil
}
func Convert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in *ServiceProxyOptions, out *api.ServiceProxyOptions, s conversion.Scope) error {
return autoConvert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in, out, s)
}
func autoConvert_v1_ServiceSpec_To_api_ServiceSpec(in *ServiceSpec, out *api.ServiceSpec, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceSpec))(in)
}
if in.Ports != nil {
out.Ports = make([]api.ServicePort, len(in.Ports))
for i := range in.Ports {
if err := Convert_v1_ServicePort_To_api_ServicePort(&in.Ports[i], &out.Ports[i], s); err != nil {
return err
}
}
} else {
out.Ports = nil
}
if in.Selector != nil {
out.Selector = make(map[string]string)
for key, val := range in.Selector {
out.Selector[key] = val
}
} else {
out.Selector = nil
}
out.ClusterIP = in.ClusterIP
out.Type = api.ServiceType(in.Type)
if in.ExternalIPs != nil {
out.ExternalIPs = make([]string, len(in.ExternalIPs))
for i := range in.ExternalIPs {
out.ExternalIPs[i] = in.ExternalIPs[i]
}
} else {
out.ExternalIPs = nil
}
// in.DeprecatedPublicIPs has no peer in out
out.SessionAffinity = api.ServiceAffinity(in.SessionAffinity)
out.LoadBalancerIP = in.LoadBalancerIP
return nil
}
func autoConvert_v1_ServiceStatus_To_api_ServiceStatus(in *ServiceStatus, out *api.ServiceStatus, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*ServiceStatus))(in)
}
if err := Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, s); err != nil {
return err
}
return nil
}
func Convert_v1_ServiceStatus_To_api_ServiceStatus(in *ServiceStatus, out *api.ServiceStatus, s conversion.Scope) error {
return autoConvert_v1_ServiceStatus_To_api_ServiceStatus(in, out, s)
}
func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*TCPSocketAction))(in)
}
if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil {
return err
}
return nil
}
func Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
return autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in, out, s)
}
func autoConvert_v1_Volume_To_api_Volume(in *Volume, out *api.Volume, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*Volume))(in)
}
out.Name = in.Name
if err := Convert_v1_VolumeSource_To_api_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil {
return err
}
return nil
}
func Convert_v1_Volume_To_api_Volume(in *Volume, out *api.Volume, s conversion.Scope) error {
return autoConvert_v1_Volume_To_api_Volume(in, out, s)
}
func autoConvert_v1_VolumeMount_To_api_VolumeMount(in *VolumeMount, out *api.VolumeMount, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*VolumeMount))(in)
}
out.Name = in.Name
out.ReadOnly = in.ReadOnly
out.MountPath = in.MountPath
return nil
}
func Convert_v1_VolumeMount_To_api_VolumeMount(in *VolumeMount, out *api.VolumeMount, s conversion.Scope) error {
return autoConvert_v1_VolumeMount_To_api_VolumeMount(in, out, s)
}
func autoConvert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.VolumeSource, s conversion.Scope) error {
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
defaulting.(func(*VolumeSource))(in)
}
// unable to generate simple pointer conversion for v1.HostPathVolumeSource -> api.HostPathVolumeSource
if in.HostPath != nil {
out.HostPath = new(api.HostPathVolumeSource)
if err := Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in.HostPath, out.HostPath, s); err != nil {
return err
}
} else {
out.HostPath = nil
}
// unable to generate simple pointer conversion for v1.EmptyDirVolumeSource -> api.EmptyDirVolumeSource
if in.EmptyDir != nil {
out.EmptyDir = new(api.EmptyDirVolumeSource)
if err := Convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in.EmptyDir, out.EmptyDir, s); err != nil {
return err
}
} else {
out.EmptyDir = nil
}
// unable to generate simple pointer conversion for v1.GCEPersistentDiskVolumeSource -> api.GCEPersistentDiskVolumeSource
if in.GCEPersistentDisk != nil {
out.GCEPersistentDisk = new(api.GCEPersistentDiskVolumeSource)
if err := your_sha256_hashkVolumeSource(in.GCEPersistentDisk, out.GCEPersistentDisk, s); err != nil {
return err
}
} else {
out.GCEPersistentDisk = nil
}
// unable to generate simple pointer conversion for v1.AWSElasticBlockStoreVolumeSource -> api.AWSElasticBlockStoreVolumeSource
if in.AWSElasticBlockStore != nil {
out.AWSElasticBlockStore = new(api.AWSElasticBlockStoreVolumeSource)
if err := your_sha256_hashckStoreVolumeSource(in.AWSElasticBlockStore, out.AWSElasticBlockStore, s); err != nil {
return err
}
} else {
out.AWSElasticBlockStore = nil
}
// unable to generate simple pointer conversion for v1.GitRepoVolumeSource -> api.GitRepoVolumeSource
if in.GitRepo != nil {
out.GitRepo = new(api.GitRepoVolumeSource)
if err := Convert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in.GitRepo, out.GitRepo, s); err != nil {
return err
}
} else {
out.GitRepo = nil
}
// unable to generate simple pointer conversion for v1.SecretVolumeSource -> api.SecretVolumeSource
if in.Secret != nil {
out.Secret = new(api.SecretVolumeSource)
if err := Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in.Secret, out.Secret, s); err != nil {
return err
}
} else {
out.Secret = nil
}
// unable to generate simple pointer conversion for v1.NFSVolumeSource -> api.NFSVolumeSource
if in.NFS != nil {
out.NFS = new(api.NFSVolumeSource)
if err := Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in.NFS, out.NFS, s); err != nil {
return err
}
} else {
out.NFS = nil
}
// unable to generate simple pointer conversion for v1.ISCSIVolumeSource -> api.ISCSIVolumeSource
if in.ISCSI != nil {
out.ISCSI = new(api.ISCSIVolumeSource)
if err := Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in.ISCSI, out.ISCSI, s); err != nil {
return err
}
} else {
out.ISCSI = nil
}
// unable to generate simple pointer conversion for v1.GlusterfsVolumeSource -> api.GlusterfsVolumeSource
if in.Glusterfs != nil {
out.Glusterfs = new(api.GlusterfsVolumeSource)
if err := Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in.Glusterfs, out.Glusterfs, s); err != nil {
return err
}
} else {
out.Glusterfs = nil
}
// unable to generate simple pointer conversion for v1.PersistentVolumeClaimVolumeSource -> api.PersistentVolumeClaimVolumeSource
if in.PersistentVolumeClaim != nil {
out.PersistentVolumeClaim = new(api.PersistentVolumeClaimVolumeSource)
if err := your_sha256_hashlumeClaimVolumeSource(in.PersistentVolumeClaim, out.PersistentVolumeClaim, s); err != nil {
return err
}
} else {
out.PersistentVolumeClaim = nil
}
// unable to generate simple pointer conversion for v1.RBDVolumeSource -> api.RBDVolumeSource
if in.RBD != nil {
out.RBD = new(api.RBDVolumeSource)
if err := Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in.RBD, out.RBD, s); err != nil {
return err
}
} else {
out.RBD = nil
}
// unable to generate simple pointer conversion for v1.FlexVolumeSource -> api.FlexVolumeSource
if in.FlexVolume != nil {
out.FlexVolume = new(api.FlexVolumeSource)
if err := Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in.FlexVolume, out.FlexVolume, s); err != nil {
return err
}
} else {
out.FlexVolume = nil
}
// unable to generate simple pointer conversion for v1.CinderVolumeSource -> api.CinderVolumeSource
if in.Cinder != nil {
out.Cinder = new(api.CinderVolumeSource)
if err := Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in.Cinder, out.Cinder, s); err != nil {
return err
}
} else {
out.Cinder = nil
}
// unable to generate simple pointer conversion for v1.CephFSVolumeSource -> api.CephFSVolumeSource
if in.CephFS != nil {
out.CephFS = new(api.CephFSVolumeSource)
if err := Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in.CephFS, out.CephFS, s); err != nil {
return err
}
} else {
out.CephFS = nil
}
// unable to generate simple pointer conversion for v1.FlockerVolumeSource -> api.FlockerVolumeSource
if in.Flocker != nil {
out.Flocker = new(api.FlockerVolumeSource)
if err := Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in.Flocker, out.Flocker, s); err != nil {
return err
}
} else {
out.Flocker = nil
}
// unable to generate simple pointer conversion for v1.DownwardAPIVolumeSource -> api.DownwardAPIVolumeSource
if in.DownwardAPI != nil {
out.DownwardAPI = new(api.DownwardAPIVolumeSource)
if err := your_sha256_hashe(in.DownwardAPI, out.DownwardAPI, s); err != nil {
return err
}
} else {
out.DownwardAPI = nil
}
// unable to generate simple pointer conversion for v1.FCVolumeSource -> api.FCVolumeSource
if in.FC != nil {
out.FC = new(api.FCVolumeSource)
if err := Convert_v1_FCVolumeSource_To_api_FCVolumeSource(in.FC, out.FC, s); err != nil {
return err
}
} else {
out.FC = nil
}
// unable to generate simple pointer conversion for v1.AzureFileVolumeSource -> api.AzureFileVolumeSource
if in.AzureFile != nil {
out.AzureFile = new(api.AzureFileVolumeSource)
if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
return err
}
} else {
out.AzureFile = nil
}
// unable to generate simple pointer conversion for v1.ConfigMapVolumeSource -> api.ConfigMapVolumeSource
if in.ConfigMap != nil {
out.ConfigMap = new(api.ConfigMapVolumeSource)
if err := Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in.ConfigMap, out.ConfigMap, s); err != nil {
return err
}
} else {
out.ConfigMap = nil
}
return nil
}
func Convert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.VolumeSource, s conversion.Scope) error {
return autoConvert_v1_VolumeSource_To_api_VolumeSource(in, out, s)
}
func init() {
err := api.Scheme.AddGeneratedConversionFuncs(
your_sha256_hashcBlockStoreVolumeSource,
your_sha256_hashe,
autoConvert_api_Binding_To_v1_Binding,
autoConvert_api_Capabilities_To_v1_Capabilities,
autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource,
autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource,
autoConvert_api_ComponentCondition_To_v1_ComponentCondition,
autoConvert_api_ComponentStatusList_To_v1_ComponentStatusList,
autoConvert_api_ComponentStatus_To_v1_ComponentStatus,
autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector,
autoConvert_api_ConfigMapList_To_v1_ConfigMapList,
your_sha256_hashe,
autoConvert_api_ConfigMap_To_v1_ConfigMap,
autoConvert_api_ContainerImage_To_v1_ContainerImage,
autoConvert_api_ContainerPort_To_v1_ContainerPort,
your_sha256_hashg,
your_sha256_hashminated,
your_sha256_hashg,
autoConvert_api_ContainerState_To_v1_ContainerState,
autoConvert_api_ContainerStatus_To_v1_ContainerStatus,
autoConvert_api_Container_To_v1_Container,
autoConvert_api_DaemonEndpoint_To_v1_DaemonEndpoint,
autoConvert_api_DeleteOptions_To_v1_DeleteOptions,
your_sha256_hashe,
your_sha256_hashource,
autoConvert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource,
autoConvert_api_EndpointAddress_To_v1_EndpointAddress,
autoConvert_api_EndpointPort_To_v1_EndpointPort,
autoConvert_api_EndpointSubset_To_v1_EndpointSubset,
autoConvert_api_EndpointsList_To_v1_EndpointsList,
autoConvert_api_Endpoints_To_v1_Endpoints,
autoConvert_api_EnvVarSource_To_v1_EnvVarSource,
autoConvert_api_EnvVar_To_v1_EnvVar,
autoConvert_api_EventList_To_v1_EventList,
autoConvert_api_EventSource_To_v1_EventSource,
autoConvert_api_Event_To_v1_Event,
autoConvert_api_ExecAction_To_v1_ExecAction,
autoConvert_api_FCVolumeSource_To_v1_FCVolumeSource,
autoConvert_api_FlexVolumeSource_To_v1_FlexVolumeSource,
autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource,
your_sha256_hashtDiskVolumeSource,
autoConvert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource,
your_sha256_hashe,
autoConvert_api_HTTPGetAction_To_v1_HTTPGetAction,
autoConvert_api_HTTPHeader_To_v1_HTTPHeader,
autoConvert_api_Handler_To_v1_Handler,
autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource,
autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource,
autoConvert_api_KeyToPath_To_v1_KeyToPath,
autoConvert_api_Lifecycle_To_v1_Lifecycle,
autoConvert_api_LimitRangeItem_To_v1_LimitRangeItem,
autoConvert_api_LimitRangeList_To_v1_LimitRangeList,
autoConvert_api_LimitRangeSpec_To_v1_LimitRangeSpec,
autoConvert_api_LimitRange_To_v1_LimitRange,
autoConvert_api_ListOptions_To_v1_ListOptions,
autoConvert_api_List_To_v1_List,
autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress,
autoConvert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus,
autoConvert_api_LocalObjectReference_To_v1_LocalObjectReference,
autoConvert_api_NFSVolumeSource_To_v1_NFSVolumeSource,
autoConvert_api_NamespaceList_To_v1_NamespaceList,
autoConvert_api_NamespaceSpec_To_v1_NamespaceSpec,
autoConvert_api_NamespaceStatus_To_v1_NamespaceStatus,
autoConvert_api_Namespace_To_v1_Namespace,
autoConvert_api_NodeAddress_To_v1_NodeAddress,
autoConvert_api_NodeCondition_To_v1_NodeCondition,
autoConvert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints,
autoConvert_api_NodeList_To_v1_NodeList,
autoConvert_api_NodeProxyOptions_To_v1_NodeProxyOptions,
autoConvert_api_NodeSpec_To_v1_NodeSpec,
autoConvert_api_NodeStatus_To_v1_NodeStatus,
autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo,
autoConvert_api_Node_To_v1_Node,
autoConvert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector,
autoConvert_api_ObjectMeta_To_v1_ObjectMeta,
autoConvert_api_ObjectReference_To_v1_ObjectReference,
your_sha256_hashClaimList,
your_sha256_hashClaimSpec,
your_sha256_hashmeClaimStatus,
your_sha256_hashntVolumeClaimVolumeSource,
your_sha256_hashm,
autoConvert_api_PersistentVolumeList_To_v1_PersistentVolumeList,
your_sha256_hashrce,
autoConvert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec,
your_sha256_hashtus,
autoConvert_api_PersistentVolume_To_v1_PersistentVolume,
autoConvert_api_PodAttachOptions_To_v1_PodAttachOptions,
autoConvert_api_PodCondition_To_v1_PodCondition,
autoConvert_api_PodExecOptions_To_v1_PodExecOptions,
autoConvert_api_PodList_To_v1_PodList,
autoConvert_api_PodLogOptions_To_v1_PodLogOptions,
autoConvert_api_PodProxyOptions_To_v1_PodProxyOptions,
autoConvert_api_PodSpec_To_v1_PodSpec,
autoConvert_api_PodStatusResult_To_v1_PodStatusResult,
autoConvert_api_PodStatus_To_v1_PodStatus,
autoConvert_api_PodTemplateList_To_v1_PodTemplateList,
autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec,
autoConvert_api_PodTemplate_To_v1_PodTemplate,
autoConvert_api_Pod_To_v1_Pod,
autoConvert_api_Probe_To_v1_Probe,
autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource,
autoConvert_api_RangeAllocation_To_v1_RangeAllocation,
your_sha256_hashollerList,
your_sha256_hashollerSpec,
your_sha256_hashtrollerStatus,
your_sha256_hashr,
autoConvert_api_ResourceQuotaList_To_v1_ResourceQuotaList,
autoConvert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec,
autoConvert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus,
autoConvert_api_ResourceQuota_To_v1_ResourceQuota,
autoConvert_api_ResourceRequirements_To_v1_ResourceRequirements,
autoConvert_api_SELinuxOptions_To_v1_SELinuxOptions,
autoConvert_api_SecretKeySelector_To_v1_SecretKeySelector,
autoConvert_api_SecretList_To_v1_SecretList,
autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource,
autoConvert_api_Secret_To_v1_Secret,
autoConvert_api_SecurityContext_To_v1_SecurityContext,
autoConvert_api_SerializedReference_To_v1_SerializedReference,
autoConvert_api_ServiceAccountList_To_v1_ServiceAccountList,
autoConvert_api_ServiceAccount_To_v1_ServiceAccount,
autoConvert_api_ServiceList_To_v1_ServiceList,
autoConvert_api_ServicePort_To_v1_ServicePort,
autoConvert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions,
autoConvert_api_ServiceSpec_To_v1_ServiceSpec,
autoConvert_api_ServiceStatus_To_v1_ServiceStatus,
autoConvert_api_Service_To_v1_Service,
autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction,
autoConvert_api_VolumeMount_To_v1_VolumeMount,
autoConvert_api_VolumeSource_To_v1_VolumeSource,
autoConvert_api_Volume_To_v1_Volume,
autoConvert_unversioned_ExportOptions_To_v1_ExportOptions,
your_sha256_hashcBlockStoreVolumeSource,
your_sha256_hashe,
autoConvert_v1_Binding_To_api_Binding,
autoConvert_v1_Capabilities_To_api_Capabilities,
autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource,
autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource,
autoConvert_v1_ComponentCondition_To_api_ComponentCondition,
autoConvert_v1_ComponentStatusList_To_api_ComponentStatusList,
autoConvert_v1_ComponentStatus_To_api_ComponentStatus,
autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector,
autoConvert_v1_ConfigMapList_To_api_ConfigMapList,
your_sha256_hashe,
autoConvert_v1_ConfigMap_To_api_ConfigMap,
autoConvert_v1_ContainerImage_To_api_ContainerImage,
autoConvert_v1_ContainerPort_To_api_ContainerPort,
your_sha256_hashg,
your_sha256_hashminated,
your_sha256_hashg,
autoConvert_v1_ContainerState_To_api_ContainerState,
autoConvert_v1_ContainerStatus_To_api_ContainerStatus,
autoConvert_v1_Container_To_api_Container,
autoConvert_v1_DaemonEndpoint_To_api_DaemonEndpoint,
autoConvert_v1_DeleteOptions_To_api_DeleteOptions,
your_sha256_hashe,
your_sha256_hashource,
autoConvert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource,
autoConvert_v1_EndpointAddress_To_api_EndpointAddress,
autoConvert_v1_EndpointPort_To_api_EndpointPort,
autoConvert_v1_EndpointSubset_To_api_EndpointSubset,
autoConvert_v1_EndpointsList_To_api_EndpointsList,
autoConvert_v1_Endpoints_To_api_Endpoints,
autoConvert_v1_EnvVarSource_To_api_EnvVarSource,
autoConvert_v1_EnvVar_To_api_EnvVar,
autoConvert_v1_EventList_To_api_EventList,
autoConvert_v1_EventSource_To_api_EventSource,
autoConvert_v1_Event_To_api_Event,
autoConvert_v1_ExecAction_To_api_ExecAction,
autoConvert_v1_ExportOptions_To_unversioned_ExportOptions,
autoConvert_v1_FCVolumeSource_To_api_FCVolumeSource,
autoConvert_v1_FlexVolumeSource_To_api_FlexVolumeSource,
autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource,
your_sha256_hashtDiskVolumeSource,
autoConvert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource,
your_sha256_hashe,
autoConvert_v1_HTTPGetAction_To_api_HTTPGetAction,
autoConvert_v1_HTTPHeader_To_api_HTTPHeader,
autoConvert_v1_Handler_To_api_Handler,
autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource,
autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource,
autoConvert_v1_KeyToPath_To_api_KeyToPath,
autoConvert_v1_Lifecycle_To_api_Lifecycle,
autoConvert_v1_LimitRangeItem_To_api_LimitRangeItem,
autoConvert_v1_LimitRangeList_To_api_LimitRangeList,
autoConvert_v1_LimitRangeSpec_To_api_LimitRangeSpec,
autoConvert_v1_LimitRange_To_api_LimitRange,
autoConvert_v1_ListOptions_To_api_ListOptions,
autoConvert_v1_List_To_api_List,
autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress,
autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus,
autoConvert_v1_LocalObjectReference_To_api_LocalObjectReference,
autoConvert_v1_NFSVolumeSource_To_api_NFSVolumeSource,
autoConvert_v1_NamespaceList_To_api_NamespaceList,
autoConvert_v1_NamespaceSpec_To_api_NamespaceSpec,
autoConvert_v1_NamespaceStatus_To_api_NamespaceStatus,
autoConvert_v1_Namespace_To_api_Namespace,
autoConvert_v1_NodeAddress_To_api_NodeAddress,
autoConvert_v1_NodeCondition_To_api_NodeCondition,
autoConvert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints,
autoConvert_v1_NodeList_To_api_NodeList,
autoConvert_v1_NodeProxyOptions_To_api_NodeProxyOptions,
autoConvert_v1_NodeSpec_To_api_NodeSpec,
autoConvert_v1_NodeStatus_To_api_NodeStatus,
autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo,
autoConvert_v1_Node_To_api_Node,
autoConvert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector,
autoConvert_v1_ObjectMeta_To_api_ObjectMeta,
autoConvert_v1_ObjectReference_To_api_ObjectReference,
your_sha256_hashClaimList,
your_sha256_hashClaimSpec,
your_sha256_hashmeClaimStatus,
your_sha256_hashntVolumeClaimVolumeSource,
your_sha256_hashm,
autoConvert_v1_PersistentVolumeList_To_api_PersistentVolumeList,
your_sha256_hashrce,
autoConvert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec,
your_sha256_hashtus,
autoConvert_v1_PersistentVolume_To_api_PersistentVolume,
autoConvert_v1_PodAttachOptions_To_api_PodAttachOptions,
autoConvert_v1_PodCondition_To_api_PodCondition,
autoConvert_v1_PodExecOptions_To_api_PodExecOptions,
autoConvert_v1_PodList_To_api_PodList,
autoConvert_v1_PodLogOptions_To_api_PodLogOptions,
autoConvert_v1_PodProxyOptions_To_api_PodProxyOptions,
autoConvert_v1_PodSpec_To_api_PodSpec,
autoConvert_v1_PodStatusResult_To_api_PodStatusResult,
autoConvert_v1_PodStatus_To_api_PodStatus,
autoConvert_v1_PodTemplateList_To_api_PodTemplateList,
autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec,
autoConvert_v1_PodTemplate_To_api_PodTemplate,
autoConvert_v1_Pod_To_api_Pod,
autoConvert_v1_Probe_To_api_Probe,
autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource,
autoConvert_v1_RangeAllocation_To_api_RangeAllocation,
your_sha256_hashollerList,
your_sha256_hashollerSpec,
your_sha256_hashtrollerStatus,
your_sha256_hashr,
autoConvert_v1_ResourceQuotaList_To_api_ResourceQuotaList,
autoConvert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec,
autoConvert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus,
autoConvert_v1_ResourceQuota_To_api_ResourceQuota,
autoConvert_v1_ResourceRequirements_To_api_ResourceRequirements,
autoConvert_v1_SELinuxOptions_To_api_SELinuxOptions,
autoConvert_v1_SecretKeySelector_To_api_SecretKeySelector,
autoConvert_v1_SecretList_To_api_SecretList,
autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource,
autoConvert_v1_Secret_To_api_Secret,
autoConvert_v1_SecurityContext_To_api_SecurityContext,
autoConvert_v1_SerializedReference_To_api_SerializedReference,
autoConvert_v1_ServiceAccountList_To_api_ServiceAccountList,
autoConvert_v1_ServiceAccount_To_api_ServiceAccount,
autoConvert_v1_ServiceList_To_api_ServiceList,
autoConvert_v1_ServicePort_To_api_ServicePort,
autoConvert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions,
autoConvert_v1_ServiceSpec_To_api_ServiceSpec,
autoConvert_v1_ServiceStatus_To_api_ServiceStatus,
autoConvert_v1_Service_To_api_Service,
autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction,
autoConvert_v1_VolumeMount_To_api_VolumeMount,
autoConvert_v1_VolumeSource_To_api_VolumeSource,
autoConvert_v1_Volume_To_api_Volume,
)
if err != nil {
// If one of the conversion functions is malformed, detect it immediately.
panic(err)
}
}
```
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// Code generated by lister-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/api/policy/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
)
// EvictionLister helps list Evictions.
// All objects returned here must be treated as read-only.
type EvictionLister interface {
// List lists all Evictions in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.Eviction, err error)
// Evictions returns an object that can list and get Evictions.
Evictions(namespace string) EvictionNamespaceLister
EvictionListerExpansion
}
// evictionLister implements the EvictionLister interface.
type evictionLister struct {
listers.ResourceIndexer[*v1.Eviction]
}
// NewEvictionLister returns a new EvictionLister.
func NewEvictionLister(indexer cache.Indexer) EvictionLister {
return &evictionLister{listers.New[*v1.Eviction](indexer, v1.Resource("eviction"))}
}
// Evictions returns an object that can list and get Evictions.
func (s *evictionLister) Evictions(namespace string) EvictionNamespaceLister {
return evictionNamespaceLister{listers.NewNamespaced[*v1.Eviction](s.ResourceIndexer, namespace)}
}
// EvictionNamespaceLister helps list and get Evictions.
// All objects returned here must be treated as read-only.
type EvictionNamespaceLister interface {
// List lists all Evictions in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.Eviction, err error)
// Get retrieves the Eviction from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.Eviction, error)
EvictionNamespaceListerExpansion
}
// evictionNamespaceLister implements the EvictionNamespaceLister
// interface.
type evictionNamespaceLister struct {
listers.ResourceIndexer[*v1.Eviction]
}
```
|
```objective-c
/*
*
*/
/**
* @note TX and RX channels are index from 0 in the LL driver, i.e. tx_channel = [0,1], rx_channel = [0,1]
*/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "hal/misc.h"
#include "hal/assert.h"
#include "hal/rmt_types.h"
#include "soc/rmt_struct.h"
#include "soc/pcr_struct.h"
#include "soc/retention_periph_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
#define RMT_LL_EVENT_TX_DONE(channel) (1 << (channel))
#define RMT_LL_EVENT_TX_THRES(channel) (1 << ((channel) + 8))
#define RMT_LL_EVENT_TX_LOOP_END(channel) (1 << ((channel) + 12))
#define RMT_LL_EVENT_TX_ERROR(channel) (1 << ((channel) + 4))
#define RMT_LL_EVENT_RX_DONE(channel) (1 << ((channel) + 2))
#define RMT_LL_EVENT_RX_THRES(channel) (1 << ((channel) + 10))
#define RMT_LL_EVENT_RX_ERROR(channel) (1 << ((channel) + 6))
#define RMT_LL_EVENT_TX_MASK(channel) (RMT_LL_EVENT_TX_DONE(channel) | RMT_LL_EVENT_TX_THRES(channel) | RMT_LL_EVENT_TX_LOOP_END(channel))
#define RMT_LL_EVENT_RX_MASK(channel) (RMT_LL_EVENT_RX_DONE(channel) | RMT_LL_EVENT_RX_THRES(channel))
#define RMT_LL_MAX_LOOP_COUNT_PER_BATCH 1023
#define RMT_LL_MAX_FILTER_VALUE 255
#define RMT_LL_MAX_IDLE_VALUE 32767
#define RMT_LL_SLEEP_RETENTION_MODULE_ID(group_id) (SLEEP_RETENTION_MODULE_RMT0)
typedef enum {
RMT_LL_MEM_OWNER_SW = 0,
RMT_LL_MEM_OWNER_HW = 1,
} rmt_ll_mem_owner_t;
/**
* @brief Enable the bus clock for RMT module
*
* @param group_id Group ID
* @param enable true to enable, false to disable
*/
static inline void rmt_ll_enable_bus_clock(int group_id, bool enable)
{
(void)group_id;
PCR.rmt_conf.rmt_clk_en = enable;
}
/**
* @brief Reset the RMT module
*
* @param group_id Group ID
*/
static inline void rmt_ll_reset_register(int group_id)
{
(void)group_id;
PCR.rmt_conf.rmt_rst_en = 1;
PCR.rmt_conf.rmt_rst_en = 0;
}
/**
* @brief Enable clock gate for register and memory
*
* @param dev Peripheral instance address
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_enable_periph_clock(rmt_dev_t *dev, bool enable)
{
dev->sys_conf.clk_en = enable; // register clock gating
dev->sys_conf.mem_clk_force_on = enable; // memory clock gating
}
/**
* @brief Force power on the RMT memory block, regardless of the outside PMU logic
*
* @param dev Peripheral instance address
*/
static inline void rmt_ll_mem_force_power_on(rmt_dev_t *dev)
{
dev->sys_conf.mem_force_pu = 1;
dev->sys_conf.mem_force_pd = 0;
}
/**
* @brief Force power off the RMT memory block, regardless of the outside PMU logic
*
* @param dev Peripheral instance address
*/
static inline void rmt_ll_mem_force_power_off(rmt_dev_t *dev)
{
dev->sys_conf.mem_force_pd = 1;
dev->sys_conf.mem_force_pu = 0;
}
/**
* @brief Power control the RMT memory block by the outside PMU logic
*
* @param dev Peripheral instance address
*/
static inline void rmt_ll_mem_power_by_pmu(rmt_dev_t *dev)
{
dev->sys_conf.mem_force_pd = 0;
dev->sys_conf.mem_force_pu = 0;
}
/**
* @brief Enable APB accessing RMT memory in nonfifo mode
*
* @param dev Peripheral instance address
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_enable_mem_access_nonfifo(rmt_dev_t *dev, bool enable)
{
dev->sys_conf.apb_fifo_mask = enable;
}
/**
* @brief Set clock source and divider for RMT channel group
*
* @param dev Peripheral instance address
* @param channel not used as clock source is set for all channels
* @param src Clock source
* @param divider_integral Integral part of the divider
* @param divider_denominator Denominator part of the divider
* @param divider_numerator Numerator part of the divider
*/
static inline void rmt_ll_set_group_clock_src(rmt_dev_t *dev, uint32_t channel, rmt_clock_source_t src,
uint32_t divider_integral, uint32_t divider_denominator, uint32_t divider_numerator)
{
// Formula: rmt_sclk = module_clock_src / (1 + div_num + div_a / div_b)
(void)channel; // the source clock is set for all channels
HAL_ASSERT(divider_integral >= 1);
HAL_FORCE_MODIFY_U32_REG_FIELD(PCR.rmt_sclk_conf, rmt_sclk_div_num, divider_integral - 1);
PCR.rmt_sclk_conf.rmt_sclk_div_a = divider_numerator;
PCR.rmt_sclk_conf.rmt_sclk_div_b = divider_denominator;
switch (src) {
case RMT_CLK_SRC_XTAL:
PCR.rmt_sclk_conf.rmt_sclk_sel = 0;
break;
case RMT_CLK_SRC_RC_FAST:
PCR.rmt_sclk_conf.rmt_sclk_sel = 1;
break;
default:
HAL_ASSERT(false);
break;
}
}
/**
* @brief Enable RMT peripheral source clock
*
* @param dev Peripheral instance address
* @param en True to enable, False to disable
*/
static inline void rmt_ll_enable_group_clock(rmt_dev_t *dev, bool en)
{
(void)dev;
PCR.rmt_sclk_conf.rmt_sclk_en = en;
}
////////////////////////////////////////TX Channel Specific/////////////////////////////////////////////////////////////
/**
* @brief Reset clock divider for TX channels by mask
*
* @param dev Peripheral instance address
* @param channel_mask Mask of TX channels
*/
static inline void rmt_ll_tx_reset_channels_clock_div(rmt_dev_t *dev, uint32_t channel_mask)
{
// write 1 to reset
dev->ref_cnt_rst.val |= channel_mask & 0x03;
}
/**
* @brief Set TX channel clock divider
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param div Division value
*/
static inline void rmt_ll_tx_set_channel_clock_div(rmt_dev_t *dev, uint32_t channel, uint32_t div)
{
HAL_ASSERT(div >= 1 && div <= 256 && "divider out of range");
// limit the maximum divider to 256
if (div >= 256) {
div = 0; // 0 means 256 division
}
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chnconf0[channel], div_cnt_chn, div);
}
/**
* @brief Reset RMT reading pointer for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_reset_pointer(rmt_dev_t *dev, uint32_t channel)
{
dev->chnconf0[channel].mem_rd_rst_chn = 1;
dev->chnconf0[channel].mem_rd_rst_chn = 0;
dev->chnconf0[channel].apb_mem_rst_chn = 1;
dev->chnconf0[channel].apb_mem_rst_chn = 0;
}
/**
* @brief Start transmitting for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_start(rmt_dev_t *dev, uint32_t channel)
{
// update other configuration registers before start transmitting
dev->chnconf0[channel].conf_update_chn = 1;
dev->chnconf0[channel].tx_start_chn = 1;
}
/**
* @brief Stop transmitting for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_stop(rmt_dev_t *dev, uint32_t channel)
{
dev->chnconf0[channel].tx_stop_chn = 1;
// stop won't take place until configurations updated
dev->chnconf0[channel].conf_update_chn = 1;
}
/**
* @brief Set memory block number for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param block_num memory block number
*/
static inline void rmt_ll_tx_set_mem_blocks(rmt_dev_t *dev, uint32_t channel, uint8_t block_num)
{
dev->chnconf0[channel].mem_size_chn = block_num;
}
/**
* @brief Enable TX wrap
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_tx_enable_wrap(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chnconf0[channel].mem_tx_wrap_en_chn = enable;
}
/**
* @brief Enable transmitting in a loop
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_enable_loop(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chnconf0[channel].tx_conti_mode_chn = enable;
}
/**
* @brief Set loop count for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param count TX loop count
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_set_loop_count(rmt_dev_t *dev, uint32_t channel, uint32_t count)
{
HAL_ASSERT(count <= RMT_LL_MAX_LOOP_COUNT_PER_BATCH && "loop count out of range");
dev->chn_tx_lim[channel].tx_loop_num_chn = count;
}
/**
* @brief Reset loop count for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_reset_loop_count(rmt_dev_t *dev, uint32_t channel)
{
dev->chn_tx_lim[channel].loop_count_reset_chn = 1;
dev->chn_tx_lim[channel].loop_count_reset_chn = 0;
}
/**
* @brief Enable loop count for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_enable_loop_count(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chn_tx_lim[channel].tx_loop_cnt_en_chn = enable;
}
/**
* @brief Enable loop stop at count value automatically
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_enable_loop_autostop(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chn_tx_lim[channel].loop_stop_en_chn = enable;
}
/**
* @brief Enable transmit multiple channels synchronously
*
* @param dev Peripheral instance address
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_tx_enable_sync(rmt_dev_t *dev, bool enable)
{
dev->tx_sim.tx_sim_en = enable;
}
/**
* @brief Clear the TX channels synchronous group
*
* @param dev Peripheral instance address
*/
static inline void rmt_ll_tx_clear_sync_group(rmt_dev_t *dev)
{
dev->tx_sim.val &= ~(0x03);
}
/**
* @brief Add TX channels to the synchronous group
*
* @param dev Peripheral instance address
* @param channel_mask Mask of TX channels to be added to the synchronous group
*/
static inline void rmt_ll_tx_sync_group_add_channels(rmt_dev_t *dev, uint32_t channel_mask)
{
dev->tx_sim.val |= (channel_mask & 0x03);
}
/**
* @brief Remove TX channels from the synchronous group
*
* @param dev Peripheral instance address
* @param channel_mask Mask of TX channels to be removed from the synchronous group
*/
static inline void rmt_ll_tx_sync_group_remove_channels(rmt_dev_t *dev, uint32_t channel_mask)
{
dev->tx_sim.val &= ~channel_mask;
}
/**
* @brief Fix the output level when TX channel is in IDLE state
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param level IDLE level (1 => high, 0 => low)
* @param enable True to fix the IDLE level, otherwise the IDLE level is determined by EOF encoder
*/
__attribute__((always_inline))
static inline void rmt_ll_tx_fix_idle_level(rmt_dev_t *dev, uint32_t channel, uint8_t level, bool enable)
{
dev->chnconf0[channel].idle_out_en_chn = enable;
dev->chnconf0[channel].idle_out_lv_chn = level;
}
/**
* @brief Set the amount of RMT symbols that can trigger the limitation interrupt
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param limit Specify the number of symbols
*/
static inline void rmt_ll_tx_set_limit(rmt_dev_t *dev, uint32_t channel, uint32_t limit)
{
dev->chn_tx_lim[channel].tx_lim_chn = limit;
}
/**
* @brief Set high and low duration of carrier signal
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param high_ticks Duration of high level
* @param low_ticks Duration of low level
*/
static inline void rmt_ll_tx_set_carrier_high_low_ticks(rmt_dev_t *dev, uint32_t channel, uint32_t high_ticks, uint32_t low_ticks)
{
HAL_ASSERT(high_ticks >= 1 && high_ticks <= 65536 && low_ticks >= 1 && low_ticks <= 65536 && "out of range high/low ticks");
// ticks=0 means 65536 in hardware
if (high_ticks >= 65536) {
high_ticks = 0;
}
if (low_ticks >= 65536) {
low_ticks = 0;
}
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chncarrier_duty[channel], carrier_high_chn, high_ticks);
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chncarrier_duty[channel], carrier_low_chn, low_ticks);
}
/**
* @brief Enable modulating carrier signal to TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_tx_enable_carrier_modulation(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chnconf0[channel].carrier_en_chn = enable;
}
/**
* @brief Set on high or low to modulate the carrier signal
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param level Which level to modulate on (0=>low level, 1=>high level)
*/
static inline void rmt_ll_tx_set_carrier_level(rmt_dev_t *dev, uint32_t channel, uint8_t level)
{
dev->chnconf0[channel].carrier_out_lv_chn = level;
}
/**
* @brief Enable to always output carrier signal, regardless of a valid data transmission
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @param enable True to output carrier signal in all RMT state, False to only output carrier signal for effective data
*/
static inline void rmt_ll_tx_enable_carrier_always_on(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chnconf0[channel].carrier_eff_en_chn = !enable;
}
////////////////////////////////////////RX Channel Specific/////////////////////////////////////////////////////////////
/**
* @brief Reset clock divider for RX channels by mask
*
* @param dev Peripheral instance address
* @param channel_mask Mask of RX channels
*/
static inline void rmt_ll_rx_reset_channels_clock_div(rmt_dev_t *dev, uint32_t channel_mask)
{
// write 1 to reset
dev->ref_cnt_rst.val |= ((channel_mask & 0x03) << 2);
}
/**
* @brief Set RX channel clock divider
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param div Division value
*/
static inline void rmt_ll_rx_set_channel_clock_div(rmt_dev_t *dev, uint32_t channel, uint32_t div)
{
HAL_ASSERT(div >= 1 && div <= 256 && "divider out of range");
// limit the maximum divider to 256
if (div >= 256) {
div = 0; // 0 means 256 division
}
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chmconf[channel].conf0, div_cnt_chm, div);
}
/**
* @brief Reset RMT writing pointer for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_reset_pointer(rmt_dev_t *dev, uint32_t channel)
{
dev->chmconf[channel].conf1.mem_wr_rst_chm = 1;
dev->chmconf[channel].conf1.mem_wr_rst_chm = 0;
dev->chmconf[channel].conf1.apb_mem_rst_chm = 1;
dev->chmconf[channel].conf1.apb_mem_rst_chm = 0;
}
/**
* @brief Enable receiving for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_enable(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chmconf[channel].conf1.rx_en_chm = enable;
// rx won't be enabled until configurations updated
dev->chmconf[channel].conf1.conf_update_chm = 1;
}
/**
* @brief Set memory block number for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param block_num memory block number
*/
static inline void rmt_ll_rx_set_mem_blocks(rmt_dev_t *dev, uint32_t channel, uint8_t block_num)
{
dev->chmconf[channel].conf0.mem_size_chm = block_num;
}
/**
* @brief Set the time length for RX channel before going into IDLE state
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param thres Time length threshold
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_set_idle_thres(rmt_dev_t *dev, uint32_t channel, uint32_t thres)
{
dev->chmconf[channel].conf0.idle_thres_chm = thres;
}
/**
* @brief Set RMT memory owner for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param owner Memory owner
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_set_mem_owner(rmt_dev_t *dev, uint32_t channel, rmt_ll_mem_owner_t owner)
{
dev->chmconf[channel].conf1.mem_owner_chm = owner;
}
/**
* @brief Enable filter for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX chanenl number
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_enable_filter(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chmconf[channel].conf1.rx_filter_en_chm = enable;
}
/**
* @brief Set RX channel filter threshold (i.e. the maximum width of one pulse signal that would be treated as a noise)
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param thres Filter threshold
*/
__attribute__((always_inline))
static inline void rmt_ll_rx_set_filter_thres(rmt_dev_t *dev, uint32_t channel, uint32_t thres)
{
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chmconf[channel].conf1, rx_filter_thres_chm, thres);
}
/**
* @brief Get RMT memory write cursor offset
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @return writer offset
*/
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_memory_writer_offset(rmt_dev_t *dev, uint32_t channel)
{
return dev->chmstatus[channel].mem_waddr_ex_chm - (channel + 2) * 48;
}
/**
* @brief Set the amount of RMT symbols that can trigger the limitation interrupt
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param limit Specify the number of symbols
*/
static inline void rmt_ll_rx_set_limit(rmt_dev_t *dev, uint32_t channel, uint32_t limit)
{
dev->chm_rx_lim[channel].rmt_rx_lim_chm = limit;
}
/**
* @brief Set high and low duration of carrier signal
*
* @param dev dev Peripheral instance address
* @param channel RMT TX channel number
* @param high_ticks Duration of high level
* @param low_ticks Duration of low level
*/
static inline void rmt_ll_rx_set_carrier_high_low_ticks(rmt_dev_t *dev, uint32_t channel, uint32_t high_ticks, uint32_t low_ticks)
{
HAL_ASSERT(high_ticks >= 1 && high_ticks <= 65536 && low_ticks >= 1 && low_ticks <= 65536 && "out of range high/low ticks");
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chm_rx_carrier_rm[channel], carrier_high_thres_chm, high_ticks - 1);
HAL_FORCE_MODIFY_U32_REG_FIELD(dev->chm_rx_carrier_rm[channel], carrier_low_thres_chm, low_ticks - 1);
}
/**
* @brief Enable demodulating the carrier on RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_rx_enable_carrier_demodulation(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chmconf[channel].conf0.carrier_en_chm = enable;
}
/**
* @brief Set on high or low to demodulate the carrier signal
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param level Which level to demodulate (0=>low level, 1=>high level)
*/
static inline void rmt_ll_rx_set_carrier_level(rmt_dev_t *dev, uint32_t channel, uint8_t level)
{
dev->chmconf[channel].conf0.carrier_out_lv_chm = level;
}
/**
* @brief Enable RX wrap
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @param enable True to enable, False to disable
*/
static inline void rmt_ll_rx_enable_wrap(rmt_dev_t *dev, uint32_t channel, bool enable)
{
dev->chmconf[channel].conf1.mem_rx_wrap_en_chm = enable;
}
//////////////////////////////////////////Interrupt Specific////////////////////////////////////////////////////////////
/**
* @brief Enable RMT interrupt for specific event mask
*
* @param dev Peripheral instance address
* @param mask Event mask
* @param enable True to enable, False to disable
*/
__attribute__((always_inline))
static inline void rmt_ll_enable_interrupt(rmt_dev_t *dev, uint32_t mask, bool enable)
{
if (enable) {
dev->int_ena.val |= mask;
} else {
dev->int_ena.val &= ~mask;
}
}
/**
* @brief Clear RMT interrupt status by mask
*
* @param dev Peripheral instance address
* @param mask Interrupt status mask
*/
__attribute__((always_inline))
static inline void rmt_ll_clear_interrupt_status(rmt_dev_t *dev, uint32_t mask)
{
dev->int_clr.val = mask;
}
/**
* @brief Get interrupt status register address
*
* @param dev Peripheral instance address
* @return Register address
*/
static inline volatile void *rmt_ll_get_interrupt_status_reg(rmt_dev_t *dev)
{
return &dev->int_st;
}
/**
* @brief Get interrupt status for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @return Interrupt status
*/
__attribute__((always_inline))
static inline uint32_t rmt_ll_tx_get_interrupt_status(rmt_dev_t *dev, uint32_t channel)
{
return dev->int_st.val & RMT_LL_EVENT_TX_MASK(channel);
}
/**
* @brief Get interrupt raw status for TX channel
*
* @param dev Peripheral instance address
* @param channel RMT TX channel number
* @return Interrupt raw status
*/
static inline uint32_t rmt_ll_tx_get_interrupt_status_raw(rmt_dev_t *dev, uint32_t channel)
{
return dev->int_raw.val & (RMT_LL_EVENT_TX_MASK(channel) | RMT_LL_EVENT_TX_ERROR(channel));
}
/**
* @brief Get interrupt raw status for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @return Interrupt raw status
*/
static inline uint32_t rmt_ll_rx_get_interrupt_status_raw(rmt_dev_t *dev, uint32_t channel)
{
return dev->int_raw.val & (RMT_LL_EVENT_RX_MASK(channel) | RMT_LL_EVENT_RX_ERROR(channel));
}
/**
* @brief Get interrupt status for RX channel
*
* @param dev Peripheral instance address
* @param channel RMT RX channel number
* @return Interrupt status
*/
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_interrupt_status(rmt_dev_t *dev, uint32_t channel)
{
return dev->int_st.val & RMT_LL_EVENT_RX_MASK(channel);
}
//////////////////////////////////////////Deprecated Functions//////////////////////////////////////////////////////////
/////////////////////////////The following functions are only used by the legacy driver/////////////////////////////////
/////////////////////////////They might be removed in the next major release (ESP-IDF 6.0)//////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
__attribute__((always_inline))
static inline uint32_t rmt_ll_tx_get_status_word(rmt_dev_t *dev, uint32_t channel)
{
return dev->chnstatus[channel].val;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_status_word(rmt_dev_t *dev, uint32_t channel)
{
return dev->chmstatus[channel].val;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_tx_get_channel_clock_div(rmt_dev_t *dev, uint32_t channel)
{
uint32_t div = HAL_FORCE_READ_U32_REG_FIELD(dev->chnconf0[channel], div_cnt_chn);
return div == 0 ? 256 : div;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_channel_clock_div(rmt_dev_t *dev, uint32_t channel)
{
uint32_t div = HAL_FORCE_READ_U32_REG_FIELD(dev->chmconf[channel].conf0, div_cnt_chm);
return div == 0 ? 256 : div;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_idle_thres(rmt_dev_t *dev, uint32_t channel)
{
return dev->chmconf[channel].conf0.idle_thres_chm;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_tx_get_mem_blocks(rmt_dev_t *dev, uint32_t channel)
{
return dev->chnconf0[channel].mem_size_chn;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_mem_blocks(rmt_dev_t *dev, uint32_t channel)
{
return dev->chmconf[channel].conf0.mem_size_chm;
}
__attribute__((always_inline))
static inline bool rmt_ll_tx_is_loop_enabled(rmt_dev_t *dev, uint32_t channel)
{
return dev->chnconf0[channel].tx_conti_mode_chn;
}
__attribute__((always_inline))
static inline rmt_clock_source_t rmt_ll_get_group_clock_src(rmt_dev_t *dev, uint32_t channel)
{
rmt_clock_source_t clk_src = RMT_CLK_SRC_XTAL;
switch (PCR.rmt_sclk_conf.rmt_sclk_sel) {
case 1:
clk_src = RMT_CLK_SRC_RC_FAST;
break;
case 0:
clk_src = RMT_CLK_SRC_XTAL;
break;
}
return clk_src;
}
__attribute__((always_inline))
static inline bool rmt_ll_tx_is_idle_enabled(rmt_dev_t *dev, uint32_t channel)
{
return dev->chnconf0[channel].idle_out_en_chn;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_tx_get_idle_level(rmt_dev_t *dev, uint32_t channel)
{
return dev->chnconf0[channel].idle_out_lv_chn;
}
static inline bool rmt_ll_is_mem_force_powered_down(rmt_dev_t *dev)
{
return dev->sys_conf.mem_force_pd;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_mem_owner(rmt_dev_t *dev, uint32_t channel)
{
return dev->chmconf[channel].conf1.mem_owner_chm;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_rx_get_limit(rmt_dev_t *dev, uint32_t channel)
{
return dev->chm_rx_lim[channel].rmt_rx_lim_chm;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_tx_end_interrupt_status(rmt_dev_t *dev)
{
return dev->int_st.val & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_rx_end_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 2) & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_tx_err_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 4) & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_rx_err_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 6) & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_tx_thres_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 8) & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_rx_thres_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 10) & 0x03;
}
__attribute__((always_inline))
static inline uint32_t rmt_ll_get_tx_loop_interrupt_status(rmt_dev_t *dev)
{
return (dev->int_st.val >> 12) & 0x03;
}
#ifdef __cplusplus
}
#endif
```
|
Mocis camptogramma is a species of moth of the family Erebidae. It is found in Colombia.
References
Moths described in 1919
Mocis
Moths of South America
Taxa named by Paul Dognin
|
The Girl Who Came Back is a 1935 American crime film directed by Charles Lamont and starring Shirley Grey, Sidney Blackmer, and Noel Madison.
Cast
Shirley Grey as Gilda Gillespie aka Mary Brown
Sidney Blackmer as Bill Rhodes
Noel Madison as Brewster
Matthew Betz as Smoky
Torben Meyer as Zarabella
May Beatty as Aunty
Frank LaRue as Detective Burke
Ida Darling as Mrs. Rhodes
Robert Adair as Charles Matthews
Edward Martindel as Chester Madison
John Dilson as Wadsworth
References
Bibliography
Michael R. Pitts. Poverty Row Studios, 1929–1940: An Illustrated History of 55 Independent Film Companies, with a Filmography for Each. McFarland & Company, 2005.
External links
1935 films
1935 crime films
American crime films
Films directed by Charles Lamont
Chesterfield Pictures films
American black-and-white films
1930s English-language films
1930s American films
|
Nosik () is a gender-neutral Russian surname. The word "носик" literally means "little nose" in Russian. Notable people with this surname include:
Anton Nosik, Russian journalist, social activist and blogger.
Valery Nosik (1940–1995), Russian film and stage actor,
Vladimir Nosik (born 1948), Russian actor
Russian-language surnames
|
Gachiani () was a historical city and district in Lower Iberia/Kvemo Kartli in southeast Georgia. Its exact location and boundaries remain unclear.
History
The medieval tradition of Leonti Mroveli ascribes the foundation of Gachiani to an eponymous mythic lord, Gachios, son of Kartlos. The 10th-century Armenian historian Ukhtanes of Sebastia places Gachiani (Gajenaget) in what he refers to as the Plain of Georgians (Vrac' Dašt) and considers it to be a later name of the earlier town of Tsurtavi (C'urtaw). On the other hand, the early 18th-century Georgian scholar Prince Vakhushti locates Gachiani on the right bank of the river Ktsia.
The land of Gachiani was one of the marshlands between ancient Iberia (Georgia) and Armenia and changed its masters more than once in the course of history. It formed part of the Iberian duchy of Samsvhilde in the 4th-3rd century BC, but its southwest portion was annexed to the Armeno-Georgian principality of Gogarene in the 4th century, and then briefly fell under the Armenian Bagratid control in 888 and 914/8. Its later history is essentially the same as that of Samshvilde and the district southwest of Tbilisi in general. Currently, Gachiani is a name of the predominantly Azerbaijani-populated village in Georgia's Gardabani district.
References
Former provinces of Georgia (country)
Historical regions of Georgia (country)
|
```html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>http::parser::chunked</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Beast">
<link rel="up" href="../boost__beast__http__parser.html" title="http::parser">
<link rel="prev" href="body_limit.html" title="http::parser::body_limit">
<link rel="next" href="content_length.html" title="http::parser::content_length">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="body_limit.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__parser.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="content_length.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="beast.ref.boost__beast__http__parser.chunked"></a><a class="link" href="chunked.html" title="http::parser::chunked">http::parser::chunked</a>
</h5></div></div></div>
<p>
(Inherited from <code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">basic_parser</span></code>)
</p>
<p>
<a class="indexterm" name="idp107508864"></a>
Returns <code class="computeroutput"><span class="keyword">true</span></code>
if the last value for Transfer-Encoding is "chunked".
</p>
<h6>
<a name="beast.ref.boost__beast__http__parser.chunked.h0"></a>
<span class="phrase"><a name="beast.ref.boost__beast__http__parser.chunked.synopsis"></a></span><a class="link" href="chunked.html#beast.ref.boost__beast__http__parser.chunked.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">bool</span>
<span class="identifier">chunked</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<h6>
<a name="beast.ref.boost__beast__http__parser.chunked.h1"></a>
<span class="phrase"><a name="beast.ref.boost__beast__http__parser.chunked.description"></a></span><a class="link" href="chunked.html#beast.ref.boost__beast__http__parser.chunked.description">Description</a>
</h6>
<h6>
<a name="beast.ref.boost__beast__http__parser.chunked.h2"></a>
<span class="phrase"><a name="beast.ref.boost__beast__http__parser.chunked.remarks"></a></span><a class="link" href="chunked.html#beast.ref.boost__beast__http__parser.chunked.remarks">Remarks</a>
</h6>
<p>
The return value is undefined unless <a class="link" href="../boost__beast__http__basic_parser/is_header_done.html" title="http::basic_parser::is_header_done"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">basic_parser</span><span class="special">::</span><span class="identifier">is_header_done</span></code></a> would return <code class="computeroutput"><span class="keyword">true</span></code>.
</p>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="body_limit.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__parser.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="content_length.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```smalltalk
using System;
using System.Collections.Generic;
namespace StardewModdingAPI.Framework.Content
{
/// <summary>Encapsulates access and changes to dictionary content being read from a data file.</summary>
internal class AssetDataForDictionary<TKey, TValue> : AssetData<IDictionary<TKey, TValue>>, IAssetDataForDictionary<TKey, TValue>
{
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="locale">The content's locale code, if the content is localized.</param>
/// <param name="assetName">The asset name being read.</param>
/// <param name="data">The content data being read.</param>
/// <param name="getNormalizedPath">Normalizes an asset key to match the cache key.</param>
/// <param name="onDataReplaced">A callback to invoke when the data is replaced (if any).</param>
public AssetDataForDictionary(string? locale, IAssetName assetName, IDictionary<TKey, TValue> data, Func<string, string> getNormalizedPath, Action<IDictionary<TKey, TValue>> onDataReplaced)
: base(locale, assetName, data, getNormalizedPath, onDataReplaced) { }
}
}
```
|
Sham Chaurasi Gharana is a vocal gharana (a family's style of singing) in Hindustani classical music known for the singing of vocal duets. It is also known as the cradle of drupad. It is one of the four singing gharanas of Punjab; the other three are: Patiala, Talwandi and Kapurthala. It is most notably represented in modern times by the brothers Nazakat and Salamat Ali Khan.
History
The gharana is believed to have been founded in the 16th century by Chand Khan and Suraj Khan who were contemporaries of Tansen at the court of Mughal emperor Akbar. Successive generations of musicians in the gharana specialised in the dhrupad form of singing and evolved a tradition of duet vocal (jugalbandi) performances. Meer Baksh and Khairdeen, Karam Elahi Khan, Vilayat Ali and Hadayat Khan, Ghulam Shabir Khan and Ghulam Jafar Khan, Nazakat Ali and Salamat Ali are noted practitioners of jugalbandi from this gharana.
The gharana is centred at Shamchaurasi in the Hoshiarpur district of Punjab, India; alternate spellings include Shamchurasi. An explanation of the name is that sham is taken from the name of the Sufi saint, Sant Shami Shah and (chaurasi =84) was named after a cluster of 84 villages which constituted a land revenue unit. According to one legend, the founders were given a parcel of land here as a grant to them by Mughal Emperor Akbar. In an alternative version of the origin, the Mughal Emperor Muhammad Shah "Rangila" was said to have been so impressed by the gharana that he gave all income from the 84 local villages, known as 'Chaurasi', to the Sufi saint Sant Shami Shah.
Nazakat and Salamat Ali Khan
Around the turn of the century, the gharana was represented by Vilayat Ali Khan, who was noted for his dhrupad singing. His sons were Salamat Ali Khan, Nazakat Ali Khan, Tasadaq Ali Khan, Akhter Ali Khan and Zakir Ali Khan.
The brothers Nazakat Ali Khan (1928 - 1984) and Salamat Ali Khan (1934 - 2001) had their debut performance on All India Radio, Delhi in 1942, when Salamat was only 8. They went to Amritsar for a memorable concert:
"When the performance started, it seemed like a feast of musical notes had descended upon us in the audience. Every member of the audience was amazed and in complete awe of the duo. It was almost unbelievable that boys of that age could give such a fine performance. When the drut portion started, the brothers gave a blazing display of taans, sargams and layakari, which left the audience stunned".:
After the 1947 partition of India, the family first moved to Multan, Pakistan and later moved to Lahore. They emerged as one of the leading performers of classical music in Pakistan. Famous Indian playback singer Lata Mangeshkar once reportedly said that Ustad Salamat Ali Khan was the greatest classical vocalist of the Indian subcontinent.
A number of their recordings exist from their very fruitful partnership until 1974. Subsequently, due to differences over finances, they broke up, and then Nazakat Ali Khan died in 1984, but Salamat Ali Khan continued singing along with his sons Sharafat Ali Khan and Shafqat Ali Khan, who continue the Sham Chaurasia tradition. Salamat's second eldest son, Latafat Ali Khan is an exponent of Ghazal, Thumri and Kafi singing.
Notable students (shagird) of Ustad Salamat Ali Khan include Ustad Hussain Bakhsh Gullu, Ustad Shafqat Ali Khan, Abida Parveen and many more. Ustad Salamat Ali Khan was awarded the Pride of Performance Award in 1977 by the President of Pakistan.
References
Vocal gharanas
Hindustani music
Music schools in India
Music schools in Pakistan
Indian classical music
Classical music in Pakistan
|
```kotlin
/*
* that can be found in the LICENSE file.
*/
package library
fun readDataFromLibraryClass(input: A): String {
return input.data
}
fun readDataFromLibraryInterface(input: I): String {
return input.data
}
fun readDataFromLibraryEnum(input: E): String {
return input.data
}
```
|
Richard Beez (27 May 1827 – 28 March 1902) was a German mathematician who proved Beez's theorem.
He studied at the University of Leipzig where in 1850 he obtained a Ph.D. Later, Beez was a Gymnasium teacher in Plauen.
Notes
References
External links
1827 births
1902 deaths
19th-century German mathematicians
Mathematicians from the German Empire
|
```php
<?php
/**
*
*
* path_to_url
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
*/
namespace Aws\CloudFront\Exception;
/**
* If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
*/
class CloudFrontOriginAccessIdentityAlreadyExistsException extends CloudFrontException {}
```
|
```python
# coding=utf-8
"""Browser module."""
from __future__ import unicode_literals
import logging
import os
import string
from builtins import str
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
# adapted from path_to_url
def get_win_drives():
"""Return list of detected drives."""
assert os.name == 'nt'
from ctypes import windll
drives = []
bitmask = windll.kernel32.GetLogicalDrives() # @UndefinedVariable
drive_leters = string.ascii_uppercase
for letter in drive_leters:
if bitmask & 1:
drives.append(letter)
bitmask >>= 1
return drives
def get_file_list(path, include_files):
"""Return file list for the given path."""
# prune out directories to protect the user from doing stupid things (already lower case the dir to reduce calls)
hide_list = ['boot', 'bootmgr', 'cache', 'config.msi', 'msocache', 'recovery', '$recycle.bin',
'recycler', 'system volume information', 'temporary internet files'] # windows specific
hide_list += ['.fseventd', '.spotlight', '.trashes', '.vol', 'cachedmessages', 'caches', 'trash'] # osx specific
hide_list += ['.git']
file_list = []
for filename in os.listdir(path):
if filename.lower() in hide_list:
continue
full_filename = os.path.join(path, filename)
is_dir = os.path.isdir(full_filename)
if not include_files and not is_dir:
continue
entry = {
'name': filename,
'path': full_filename
}
if not is_dir:
entry['isFile'] = True
file_list.append(entry)
return file_list
def list_folders(path, include_parent=False, include_files=False):
"""Return a list of dictionaries with the folders contained at the given path.
Give the empty string as the path to list the contents of the root path
(under Unix this means "/", on Windows this will be a list of drive letters)
:param path: to list contents
:param include_parent: boolean, include parent dir in list as well
:param include_files: boolean, include files or only directories
:return: list of folders/files
"""
# walk up the tree until we find a valid path
while path and not os.path.isdir(path):
if path == os.path.dirname(path):
path = ''
break
else:
path = os.path.dirname(path)
if path == '':
if os.name == 'nt':
entries = [{'currentPath': 'Root'}]
for letter in get_win_drives():
letter_path = letter + ':\\'
entries.append({'name': letter_path, 'path': letter_path})
return entries
else:
path = '/'
# fix up the path and find the parent
path = os.path.abspath(os.path.normpath(path))
parent_path = os.path.dirname(path)
# if we're at the root then the next step is the meta-node showing our drive letters
if path == parent_path and os.name == 'nt':
parent_path = ''
try:
file_list = get_file_list(path, include_files)
except OSError as e:
log.warning('Unable to open %s: %s / %s', path, repr(e), str(e))
file_list = get_file_list(parent_path, include_files)
file_list = sorted(file_list, key=lambda x: os.path.basename(x['name']).lower())
entries = [{'currentPath': path}]
if include_parent and parent_path != path:
entries.append({'name': '..', 'path': parent_path})
entries.extend(file_list)
return entries
```
|
Yuci District () is a district in Jinzhong, Shanxi, China.
Administrative Divisions
Subdistricts:
Beiguan Subdistrict (), Jinlun Subdistrict (), Xinhua Subdistrict (), Xinan Subdistrict (), Luxi Subdistrict (), Anning Subdistrict (), Jingwei Subdistrict (), Xinjian Subdistrict (), Jinhua Subdistrict ()
Towns:
Wujinshan (), Dongyang (), Shitie (), Changning (), Beitian (), Xiuwen ()
Townships:
Guojiabao Township (), Zhangqing Township (), Zhuangzi Township (), Dongzhao Township ()
Climate
Universities
Yuci District is home to several new university campuses, as well as many others under construction, for major universities based in Shanxi, including Taiyuan University of Technology, Shanxi University of Traditional Medicine and Shanxi Medical University and Taiyuan Normal University. For this reason, Yuci is known in Shanxi as a university city.
Sister cities
Quezon City, Philippines (since 2006)
References
External links
Official website of Yuci District Government
County-level divisions of Shanxi
Jinzhong
|
```go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package buildutil
// This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go.
import "fmt"
const TagsFlagDoc = "a list of `build tags` to consider satisfied during the build. " +
"For more information about build tags, see the description of " +
"build constraints in the documentation for the go/build package"
// TagsFlag is an implementation of the flag.Value and flag.Getter interfaces that parses
// a flag value in the same manner as go build's -tags flag and
// populates a []string slice.
//
// See $GOROOT/src/go/build/doc.go for description of build tags.
// See $GOROOT/src/cmd/go/doc.go for description of 'go build -tags' flag.
//
// Example:
//
// flag.Var((*buildutil.TagsFlag)(&build.Default.BuildTags), "tags", buildutil.TagsFlagDoc)
type TagsFlag []string
func (v *TagsFlag) Set(s string) error {
var err error
*v, err = splitQuotedFields(s)
if *v == nil {
*v = []string{}
}
return err
}
func (v *TagsFlag) Get() interface{} { return *v }
func splitQuotedFields(s string) ([]string, error) {
// Split fields allowing '' or "" around elements.
// Quotes further inside the string do not count.
var f []string
for len(s) > 0 {
for len(s) > 0 && isSpaceByte(s[0]) {
s = s[1:]
}
if len(s) == 0 {
break
}
// Accepted quoted string. No unescaping inside.
if s[0] == '"' || s[0] == '\'' {
quote := s[0]
s = s[1:]
i := 0
for i < len(s) && s[i] != quote {
i++
}
if i >= len(s) {
return nil, fmt.Errorf("unterminated %c string", quote)
}
f = append(f, s[:i])
s = s[i+1:]
continue
}
i := 0
for i < len(s) && !isSpaceByte(s[i]) {
i++
}
f = append(f, s[:i])
s = s[i:]
}
return f, nil
}
func (v *TagsFlag) String() string {
return "<tagsFlag>"
}
func isSpaceByte(c byte) bool {
return c == ' ' || c == '\t' || c == '\n' || c == '\r'
}
```
|
O'Brian Woodbine (born 11 January 1988) is a Jamaican footballer who played as a defender.
Career
Club
Jamaica
Woodbine attended and played soccer at George's Plain Primary School and Frome Technical High School in his native Jamaica, where he won the Westmoreland primary school league and DaCosta Cup. He started his club career at Reno of the Jamaica National Premier League where, under the tutelage of former Jamaica national team player and coach, Wendell Downswell, he played for under-21 and senior teams.
At the conclusion of the USL-1 season, Woodbine returned to Jamaica to play for Reno in the 2009–2010 Western Confederation Super League, under coach Wendell Downswell. Woodbine has returned to Charleston Battery for the 2010 USL-2 season. After winning the USL2 title with Charleston, Woodbine rejoin Reno F.C. for the 2010–2011 Jamaica National Premier League season. Woodbine is highly regarded as one of the top free-kick specialist in the Jamaica National Premier League.
United States
After a successful trial in early 2009, Woodbine joined the USL First Division side Charleston Battery for the 2009 season on 18 March 2009. Woodbine featured in 16 matches for the Battery in 2009.
Finland
After a successful trial in February 2011, Woodbine joined the Finnish Veikkausliiga side Vaasan Palloseura for one plus one-year contract on 25 February 2011. In August 2011, Woodbine went on loan to HJK Helsinki. Woodbine went 90 minutes in his debut for HJK in September 2011. After spending three months on loan to HJK, Woodbine's purchase option was declined. VPS picked up Woodbine option for the 2012 season.
In 2013, Woodbine returned to Reno in the Jamaica Western Super League.
New England Revolution
Woodbine joined MLS side New England Revolution in September 2013. He was released in June 2014.
Ottawa Fury
On 16 September 2014, Woodbine signed with NASL club Ottawa Fury. Woodbine was released by Ottawa in February 2015.
Charleston Battery
Woodbine signed with former club Charleston Battery in March 2015.
International
Woodbine is a member of the Jamaica national football team. He was a standout player on the U17, U20, U23 national teams since 2005. He made his senior national team debut for the Reggae Boyz on 26 March 2008, in a friendly against Trinidad and Tobago, and played in Jamaica's qualifying games for the 2010 FIFA World Cup against the Bahamas, Canada and Honduras. Woodbine also played in two(2) matches for Jamaica during 2008 DigiceRenol Cup tournament. After a strong performance in the first round of the DPL season, Woodbine earned a recalled to the senior national team and was named to the 2010 Digicel Cup squad for Jamaica.
Honours
Jamaica
Caribbean Cup:
Winner (2): 2008, 2010
Reno
Western Confederation Super League:
Winner (1): 2010
Charleston Battery
USL Second Division
Champions (1): 2010
Regular Season Champions (1): 2010
HJK
Finnish Championship:
'''Winners (1): 2011
References
External links
1988 births
Living people
Jamaica men's international footballers
Jamaica men's under-20 international footballers
Jamaica men's youth international footballers
Jamaican men's footballers
New England Revolution players
Jamaican expatriate men's footballers
Expatriate men's soccer players in the United States
Charleston Battery players
USL First Division players
USL Second Division players
Expatriate men's footballers in Finland
Veikkausliiga players
Sportspeople from Westmoreland Parish
Vaasan Palloseura players
Helsingin Jalkapalloklubi players
Ottawa Fury FC players
North American Soccer League (2011–2017) players
Expatriate men's soccer players in Canada
USL Championship players
Men's association football defenders
|
```go
// Package config provides a common infrastructure for reading configuration
// data stored in local TOML files.
package config
import (
"fmt"
"io/ioutil"
"github.com/BurntSushi/toml"
"github.com/asaskevich/govalidator"
"github.com/stellar/go/amount"
"github.com/stellar/go/strkey"
"github.com/stellar/go/support/errors"
)
// TLS represents a common configuration snippet for configuring TLS in a server process
type TLS struct {
CertificateFile string `toml:"certificate-file" valid:"required"`
PrivateKeyFile string `toml:"private-key-file" valid:"required"`
}
// InvalidConfigError is the error that is returned when an invalid
// configuration is encountered by the `Read` func.
type InvalidConfigError struct {
InvalidFields map[string]string
}
// Read takes the TOML configuration file at `path`, parses it into `dest` and
// then uses github.com/asaskevich/govalidator to validate the struct.
func Read(path string, dest interface{}) error {
bs, err := ioutil.ReadFile(path)
if err != nil {
return err
}
return decode(string(bs), dest)
}
func decode(content string, dest interface{}) error {
metadata, err := toml.Decode(content, dest)
if err != nil {
return errors.Wrap(err, "decode-file failed")
}
// Undecoded keys correspond to keys in the TOML document
// that do not have a concrete type in config struct.
undecoded := metadata.Undecoded()
if len(undecoded) > 0 {
return errors.New("Unknown fields: " + fmt.Sprintf("%+v", undecoded))
}
valid, err := govalidator.ValidateStruct(dest)
if valid {
return nil
}
fields := govalidator.ErrorsByField(err)
return &InvalidConfigError{
InvalidFields: fields,
}
}
func init() {
govalidator.SetFieldsRequiredByDefault(true)
govalidator.CustomTypeTagMap.Set("stellar_accountid", govalidator.CustomTypeValidator(isStellarAccountID))
govalidator.CustomTypeTagMap.Set("stellar_seed", govalidator.CustomTypeValidator(isStellarSeed))
govalidator.CustomTypeTagMap.Set("stellar_amount", govalidator.CustomTypeValidator(isStellarAmount))
}
func isStellarAmount(i interface{}, context interface{}) bool {
enc, ok := i.(string)
if !ok {
return false
}
_, err := amount.Parse(enc)
return err == nil
}
func isStellarAccountID(i interface{}, context interface{}) bool {
enc, ok := i.(string)
if !ok {
return false
}
_, err := strkey.Decode(strkey.VersionByteAccountID, enc)
return err == nil
}
func isStellarSeed(i interface{}, context interface{}) bool {
enc, ok := i.(string)
if !ok {
return false
}
_, err := strkey.Decode(strkey.VersionByteSeed, enc)
return err == nil
}
```
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="es" original="../Strings.resx">
<body>
<trans-unit id="AddResourceWithNonIntegerResource">
<source>NETSDK1076: AddResource can only be used with integer resource types.</source>
<target state="translated">NETSDK1076: AddResource solo se puede usar con tipos de recurso de entero.</target>
<note>{StrBegin="NETSDK1076: "}</note>
</trans-unit>
<trans-unit id="AotNotSupported">
<source>NETSDK1196: The SDK does not support ahead-of-time compilation. Set the PublishAot property to false.</source>
<target state="translated">NETSDK1196: El SDK no admite la compilacin por adelantado. Establezca la propiedad PublishAot en false.</target>
<note>{StrBegin="NETSDK1196: "}</note>
</trans-unit>
<trans-unit id="AotUnsupportedHostRuntimeIdentifier">
<source>NETSDK1204: Ahead-of-time compilation is not supported on the current platform '{0}'.</source>
<target state="translated">NETSDK1204: La compilacin anticipada no se admite en la plataforma actual "{0}".</target>
<note>{StrBegin="NETSDK1204: "}</note>
</trans-unit>
<trans-unit id="AotUnsupportedTargetFramework">
<source>NETSDK1207: Ahead-of-time compilation is not supported for the target framework.</source>
<target state="translated">NETSDK1207: No se admite la compilacin anticipada para la plataforma de destino.</target>
<note>{StrBegin="NETSDK1207: "}</note>
</trans-unit>
<trans-unit id="AotUnsupportedTargetRuntimeIdentifier">
<source>NETSDK1203: Ahead-of-time compilation is not supported for the target runtime identifier '{0}'.</source>
<target state="translated">NETSDK1203: No se admite la compilacin anticipada para el identificador en tiempo de ejecucin de destino '{0}'.</target>
<note>{StrBegin="NETSDK1203: "}</note>
</trans-unit>
<trans-unit id="AppConfigRequiresRootConfiguration">
<source>NETSDK1070: The application configuration file must have root configuration element.</source>
<target state="translated">NETSDK1070: El archivo de configuracin de la aplicacin debe tener el elemento de configuracin raz.</target>
<note>{StrBegin="NETSDK1070: "}</note>
</trans-unit>
<trans-unit id="AppHostCreationFailedWithRetry">
<source>NETSDK1113: Failed to create apphost (attempt {0} out of {1}): {2}</source>
<target state="translated">NETSDK1113: No se pudo crear apphost (intento {0} de {1}): {2}</target>
<note>{StrBegin="NETSDK1113: "}</note>
</trans-unit>
<trans-unit id="AppHostCustomizationRequiresWindowsHostWarning">
<source>NETSDK1074: The application host executable will not be customized because adding resources requires that the build be performed on Windows (excluding Nano Server).</source>
<target state="translated">NETSDK1074: El ejecutable del host de aplicacin no se personalizar porque para agregar recursos es necesario que la compilacin se realice en Windows (excepto Nano Server).</target>
<note>{StrBegin="NETSDK1074: "}</note>
</trans-unit>
<trans-unit id="AppHostHasBeenModified">
<source>NETSDK1029: Unable to use '{0}' as application host executable as it does not contain the expected placeholder byte sequence '{1}' that would mark where the application name would be written.</source>
<target state="translated">NETSDK1029: No se puede usar "{0}" como ejecutable del host de aplicacin ya que no contiene la secuencia de bytes esperada del marcador de posicin "{1}" que marcara dnde escribir el nombre de la aplicacin.</target>
<note>{StrBegin="NETSDK1029: "}</note>
</trans-unit>
<trans-unit id="AppHostNotWindows">
<source>NETSDK1078: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
<target state="translated">NETSDK1078: No se puede utilizar "{0}" como ejecutable del host de aplicacin porque no es un archivo de Windows PE.</target>
<note>{StrBegin="NETSDK1078: "}</note>
</trans-unit>
<trans-unit id="AppHostNotWindowsCLI">
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
<target state="translated">NETSDK1072: No se puede utilizar "{0}" como ejecutable del host de aplicacin porque no es un ejecutable de Windows para el subsistema CUI (consola).</target>
<note>{StrBegin="NETSDK1072: "}</note>
</trans-unit>
<trans-unit id="AppHostSigningFailed">
<source>NETSDK1177: Failed to sign apphost with error code {1}: {0}</source>
<target state="translated">NETSDK1177: No se pudo firmar apphost con el cdigo de error {1}: {0}</target>
<note>{StrBegin="NETSDK1177: "}</note>
</trans-unit>
<trans-unit id="ArtifactsPathCannotBeSetInProject">
<source>NETSDK1199: The ArtifactsPath and UseArtifactsOutput properties cannot be set in a project file, due to MSBuild ordering constraints. They must be set in a Directory.Build.props file or from the command line. See path_to_url for more information.</source>
<target state="translated">NETSDK1199: Las propiedades ArtifactsPath y UseArtifactsOutput no se pueden establecer en un archivo de proyecto debido a restricciones de ordenacin de MSBuild. Deben establecerse en un archivo Directory.Build.props o desde la lnea de comandos. Consulte path_to_url para obtener ms informacin.</target>
<note>{StrBegin="NETSDK1199: "}</note>
</trans-unit>
<trans-unit id="AspNetCoreAllNotSupported">
<source>NETSDK1079: The Microsoft.AspNetCore.All package is not supported when targeting .NET Core 3.0 or higher. A FrameworkReference to Microsoft.AspNetCore.App should be used instead, and will be implicitly included by Microsoft.NET.Sdk.Web.</source>
<target state="translated">NETSDK1079: El paquete Microsoft.AspNetCore.All no se admite cuando el destino es .NET Core 3.0 o posterior. En su lugar, se debe usar un valor de FrameworkReference para Microsoft.AspNetCore.App, y se incluir implcitamente en Microsoft.NET.Sdk.Web.</target>
<note>{StrBegin="NETSDK1079: "}</note>
</trans-unit>
<trans-unit id="AspNetCoreUsesFrameworkReference">
<source>NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.</source>
<target state="translated">NETSDK1080: No se necesita un valor de PackageReference para Microsoft.AspNetCore.App cuando el destino es .NET Core 3.0 o superior. Si se utiliza Microsoft.NET.Sdk.Web, se har referencia automticamente el marco de trabajo compartido. De lo contrario, PackageReference debe sustituirse por un valor de FrameworkReference.</target>
<note>{StrBegin="NETSDK1080: "}</note>
</trans-unit>
<trans-unit id="AssetPreprocessorMustBeConfigured">
<source>NETSDK1017: Asset preprocessor must be configured before assets are processed.</source>
<target state="translated">NETSDK1017: Debe configurarse el preprocesador de recursos antes de que se procesen los recursos.</target>
<note>{StrBegin="NETSDK1017: "}</note>
</trans-unit>
<trans-unit id="AssetsFileMissingRuntimeIdentifier">
<source>NETSDK1047: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project. You may also need to include '{3}' in your project's RuntimeIdentifiers.</source>
<target state="translated">NETSDK1047: El archivo de recursos "{0}" no tiene un destino para "{1}". Asegrese de que la restauracin se haya ejecutado y de que haya incluido "{2}" en TargetFrameworks para su proyecto. Puede que deba incluir tambin "{3}" en el valor RuntimeIdentifiers de su proyecto.</target>
<note>{StrBegin="NETSDK1047: "}</note>
</trans-unit>
<trans-unit id="AssetsFileMissingTarget">
<source>NETSDK1005: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project.</source>
<target state="translated">NETSDK1005: El archivo de recursos "{0}" no tiene un destino para "{1}". Asegrese de que la restauracin se haya ejecutado y de que haya incluido "{2}" en TargetFrameworks para su proyecto.</target>
<note>{StrBegin="NETSDK1005: "}</note>
</trans-unit>
<trans-unit id="AssetsFileNotFound">
<source>NETSDK1004: Assets file '{0}' not found. Run a NuGet package restore to generate this file.</source>
<target state="translated">NETSDK1004: No se encuentra el archivo de recursos '{0}'. Ejecute una restauracin de paquetes de NuGet para generar el archivo.</target>
<note>{StrBegin="NETSDK1004: "}</note>
</trans-unit>
<trans-unit id="AssetsFileNotSet">
<source>NETSDK1063: The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
<target state="translated">NETSDK1063: No se estableci la ruta de acceso al archivo de recursos del proyecto. Ejecute una restauracin del paquete NuGet para generar este archivo.</target>
<note>{StrBegin="NETSDK1063: "}</note>
</trans-unit>
<trans-unit id="AssetsFilePathNotRooted">
<source>NETSDK1006: Assets file path '{0}' is not rooted. Only full paths are supported.</source>
<target state="translated">NETSDK1006: La ruta de acceso del archivo de recursos "{0}" no tiene raz. Solo se admiten rutas de acceso completas.</target>
<note>{StrBegin="NETSDK1006: "}</note>
</trans-unit>
<trans-unit id="AtLeastOneTargetFrameworkMustBeSpecified">
<source>NETSDK1001: At least one possible target framework must be specified.</source>
<target state="translated">NETSDK1001: Debe especificarse al menos una plataforma de destino posible.</target>
<note>{StrBegin="NETSDK1001: "}</note>
</trans-unit>
<trans-unit id="CannotDirectlyReferenceMicrosoftNetCompilersToolsetFramework">
<source>NETSDK1205: The Microsoft.Net.Compilers.Toolset.Framework package should not be set directly. Set the property 'BuildWithNetFrameworkHostedCompiler' to 'true' instead if you need it.</source>
<target state="translated">NETSDK1205: El paquete Microsoft.Net.Compilers.Toolset.Framework no debe establecerse directamente. Establezca la propiedad "BuildWithNetFrameworkHostedCompiler" en "true" en su lugar si la necesita.</target>
<note>{StrBegin="NETSDK1205: "}{Locked="Microsoft.Net.Compilers.Toolset.Framework"}{Locked="BuildWithNetFrameworkHostedCompiler"}</note>
</trans-unit>
<trans-unit id="CannotFindApphostForRid">
<source>NETSDK1065: Cannot find app host for {0}. {0} could be an invalid runtime identifier (RID). For more information about RID, see path_to_url
<target state="translated">NETSDK1065: No se encuentra el host de la aplicacin {0}. {0} puede ser un identificador de tiempo de ejecucin no vlido. Para obtener ms informacin al respecto, consulte path_to_url
<note>{StrBegin="NETSDK1065: "}</note>
</trans-unit>
<trans-unit id="CannotFindComhost">
<source>NETSDK1091: Unable to find a .NET Core COM host. The .NET Core COM host is only available on .NET Core 3.0 or higher when targeting Windows.</source>
<target state="translated">NETSDK1091: No se puede encontrar un host COM de .NET Core. Este tipo de host solo est disponible en .NET Core 3.0 o superior cuando el destino es Windows.</target>
<note>{StrBegin="NETSDK1091: "}</note>
</trans-unit>
<trans-unit id="CannotFindIjwhost">
<source>NETSDK1114: Unable to find a .NET Core IJW host. The .NET Core IJW host is only available on .NET Core 3.1 or higher when targeting Windows.</source>
<target state="translated">NETSDK1114: No se encuentra un host IJW de .NET Core. Este tipo de host solo est disponible en .NET Core 3.1 o posterior cuando el destino es Windows.</target>
<note>{StrBegin="NETSDK1114: "}</note>
</trans-unit>
<trans-unit id="CannotFindProjectInfo">
<source>NETSDK1007: Cannot find project info for '{0}'. This can indicate a missing project reference.</source>
<target state="translated">NETSDK1007: No se encuentra la informacin de proyecto de "{0}". Esto puede indicar que falta una referencia de proyecto.</target>
<note>{StrBegin="NETSDK1007: "}</note>
</trans-unit>
<trans-unit id="CannotHaveRuntimeIdentifierPlatformMismatchPlatformTarget">
<source>NETSDK1032: The RuntimeIdentifier platform '{0}' and the PlatformTarget '{1}' must be compatible.</source>
<target state="translated">NETSDK1032: Las plataformas RuntimeIdentifier "{0}" y PlatformTarget "{1}" deben ser compatibles.</target>
<note>{StrBegin="NETSDK1032: "}</note>
</trans-unit>
<trans-unit id="CannotHaveSelfContainedWithoutRuntimeIdentifier">
<source>NETSDK1031: It is not supported to build or publish a self-contained application without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set SelfContained to false.</source>
<target state="translated">NETSDK1031: No se admite compilar o publicar una aplicacin autocontenida sin especificar un valor para RuntimeIdentifier. Debe especificar un valor para RuntimeIdentifier o establecer SelfContained en false.</target>
<note>{StrBegin="NETSDK1031: "}</note>
</trans-unit>
<trans-unit id="CannotHaveSingleFileWithoutRuntimeIdentifier">
<source>NETSDK1097: It is not supported to publish an application to a single-file without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set PublishSingleFile to false.</source>
<target state="translated">NETSDK1097: No se admite la publicacin de una aplicacin en un nico archivo sin especificar un valor para RuntimeIdentifier. Debe especificar un valor para RuntimeIdentifier o establecer PublishSingleFile en false.</target>
<note>{StrBegin="NETSDK1097: "}</note>
</trans-unit>
<trans-unit id="CannotHaveSingleFileWithoutAppHost">
<source>NETSDK1098: Applications published to a single-file are required to use the application host. You must either set PublishSingleFile to false or set UseAppHost to true.</source>
<target state="translated">NETSDK1098: Las aplicaciones publicadas en un nico archivo deben usar el host de aplicacin. Debe establecer PublishSingleFile en false o establecer UseAppHost en true.</target>
<note>{StrBegin="NETSDK1098: "}</note>
</trans-unit>
<trans-unit id="CannotHaveSingleFileWithoutExecutable">
<source>NETSDK1099: Publishing to a single-file is only supported for executable applications.</source>
<target state="translated">NETSDK1099: La publicacin en un archivo nico solo se admite con aplicaciones ejecutables.</target>
<note>{StrBegin="NETSDK1099: "}</note>
</trans-unit>
<trans-unit id="CannotHaveSolutionLevelOutputPath">
<source>NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.</source>
<target state="translated">NETSDK1194: La opcin "--output" no se admite al compilar una solucin. Si se especifica una ruta de acceso de salida de nivel de solucin, todos los proyectos copiarn las salidas en el mismo directorio, lo que puede dar lugar a compilaciones incoherentes.</target>
<note>{StrBegin="NETSDK1194: "}{Locked="--output"}</note>
</trans-unit>
<trans-unit id="CannotHaveSolutionLevelRuntimeIdentifier">
<source>NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specify the RID at the individual project level instead.</source>
<target state="translated">NETSDK1134: No se admite la creacin de una solucin con un runtimeIdentifier especfico. Si deseas publicar para un nico RID, especifica el RID en el nivel de proyecto individual en su lugar.</target>
<note>{StrBegin="NETSDK1134: "}</note>
</trans-unit>
<trans-unit id=your_sha256_hashion">
<source>NETSDK1135: SupportedOSPlatformVersion {0} cannot be higher than TargetPlatformVersion {1}.</source>
<target state="translated">NETSDK1135: El valor de SupportedOSPlatformVersion {0} no puede ser mayor que TargetPlatformVersion {1}.</target>
<note>{StrBegin="NETSDK1135: "}</note>
</trans-unit>
<trans-unit id="CannotIncludeAllContentButNotNativeLibrariesInSingleFile">
<source>NETSDK1143: Including all content in a single file bundle also includes native libraries. If IncludeAllContentForSelfExtract is true, IncludeNativeLibrariesForSelfExtract must not be false.</source>
<target state="translated">NETSDK1143: Al incluir todo el contenido en una nica agrupacin de archivos, tambin se incluyen las bibliotecas nativas. Si IncludeAllContentForSelfExtract es true, IncludeNativeLibrariesForSelfExtract no debe ser false.</target>
<note>{StrBegin="NETSDK1143: "}</note>
</trans-unit>
<trans-unit id="CannotIncludeSymbolsInSingleFile">
<source>NETSDK1142: Including symbols in a single file bundle is not supported when publishing for .NET5 or higher.</source>
<target state="translated">NETSDK1142: No se admite la inclusin de smbolos en una nica agrupacin de archivos cuando se publica para .NET5 o una versin posterior.</target>
<note>{StrBegin="NETSDK1142: "}</note>
</trans-unit>
<trans-unit id="CannotInferTargetFrameworkIdentifierAndVersion">
<source>NETSDK1013: The TargetFramework value '{0}' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.</source>
<target state="translated">NETSDK1013: El valor de TargetFramework "{0}" no se reconoci. Puede que est mal escrito. Si este no es el caso, las propiedades TargetFrameworkIdentifier o TargetFrameworkVersion se deben especificar explcitamente.</target>
<note>{StrBegin="NETSDK1013: "}</note>
</trans-unit>
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
<target state="translated">NETSDK1067: Las aplicaciones independientes deben utilizar un host de aplicacin. Establezca SelfContained en false o UseAppHost en true.</target>
<note>{StrBegin="NETSDK1067: "}</note>
</trans-unit>
<trans-unit id="CanOnlyHaveSingleFileWithNetCoreApp">
<source>NETSDK1125: Publishing to a single-file is only supported for netcoreapp target.</source>
<target state="translated">NETSDK1125: La publicacin en un nico archivo solo se admite para el destino netcoreapp.</target>
<note>{StrBegin="NETSDK1125: "}</note>
</trans-unit>
<trans-unit id="ChoosingAssemblyVersion_Info">
<source>Choosing '{0}' because AssemblyVersion '{1}' is greater than '{2}'.</source>
<target state="translated">Se elegir "{0}" porque AssemblyVersion "{1}" es mayor que "{2}".</target>
<note />
</trans-unit>
<trans-unit id="ChoosingCopyLocalArbitrarily_Info">
<source>Choosing '{0}' arbitrarily as both items are copy-local and have equal file and assembly versions.</source>
<target state="translated">Se elige "{0}" arbitrariamente, ya que ambos elementos son una copia local y tienen la misma versin de archivo y de ensamblado.</target>
<note />
</trans-unit>
<trans-unit id="ChoosingFileVersion_Info">
<source>Choosing '{0}' because file version '{1}' is greater than '{2}'.</source>
<target state="translated">Se elegir "{0}" porque la versin del archivo "{1}" es mayor que "{2}".</target>
<note />
</trans-unit>
<trans-unit id="ChoosingPlatformItem_Info">
<source>Choosing '{0}' because it is a platform item.</source>
<target state="translated">Se elegir "{0}" porque es un elemento de la plataforma.</target>
<note />
</trans-unit>
<trans-unit id="ChoosingPreferredPackage_Info">
<source>Choosing '{0}' because it comes from a package that is preferred.</source>
<target state="translated">Se elegir "{0}" porque viene de un paquete que es preferido.</target>
<note />
</trans-unit>
<trans-unit id="ClsidMapConflictingGuids">
<source>NETSDK1089: The '{0}' and '{1}' types have the same CLSID '{2}' set in their GuidAttribute. Each COMVisible class needs to have a distinct guid for their CLSID.</source>
<target state="translated">NETSDK1089: Los tipos "{0}" y "{1}" tienen el mismo CLSID "{2}" establecido en su GuidAttribute. Cada clase COMVisible ebe tener un GUID distinto para su CLSID.</target>
<note>{StrBegin="NETSDK1089: "}
{0} - The first type with the conflicting guid.
{1} - The second type with the conflicting guid.
{2} - The guid the two types have.</note>
</trans-unit>
<trans-unit id="ClsidMapExportedTypesRequireExplicitGuid">
<source>NETSDK1088: The COMVisible class '{0}' must have a GuidAttribute with the CLSID of the class to be made visible to COM in .NET Core.</source>
<target state="translated">NETSDK1088: La clase COMVisible "{0}" debe tener un valor de GuidAttribute con el CLSID de la clase de forma que sea visible para COM en .NET Core.</target>
<note>{StrBegin="NETSDK1088: "}
{0} - The ComVisible class that doesn't have a GuidAttribute on it.</note>
</trans-unit>
<trans-unit id="ClsidMapInvalidAssembly">
<source>NETSDK1090: The supplied assembly '{0}' is not valid. Cannot generate a CLSIDMap from it.</source>
<target state="translated">NETSDK1090: El ensamblado proporcionado "{0}" no es vlido. No se puede generar un valor de CLSIDMap a partir de l.</target>
<note>{StrBegin="NETSDK1090: "}
{0} - The path to the invalid assembly.</note>
</trans-unit>
<trans-unit id="CompressionInSingleFileRequires60">
<source>NETSDK1167: Compression in a single file bundle is only supported when publishing for .NET6 or higher.</source>
<target state="translated">NETSDK1167: La compresin en un solo lote de archivos solo se admite cuando se publica para .NET6 o una versin superior.</target>
<note>{StrBegin="NETSDK1167: "}</note>
</trans-unit>
<trans-unit id="CompressionInSingleFileRequiresSelfContained">
<source>NETSDK1176: Compression in a single file bundle is only supported when publishing a self-contained application.</source>
<target state="translated">NETSDK1176: la compresin en un nico paquete de archivos solo se admite al publicar una aplicacin independiente.</target>
<note>{StrBegin="NETSDK1176: "}</note>
</trans-unit>
<trans-unit id="ConflictingRuntimePackInformation">
<source>NETSDK1133: There was conflicting information about runtime packs available for {0}:
{1}</source>
<target state="translated">NETSDK1133: haba informacin en conflicto acerca de los paquetes de tiempo de ejecucin disponibles para {0}:
{1}</target>
<note>{StrBegin="NETSDK1133: "}</note>
</trans-unit>
<trans-unit id="ContentItemDoesNotProvideOutputPath">
<source>NETSDK1014: Content item for '{0}' sets '{1}', but does not provide '{2}' or '{3}'.</source>
<target state="translated">NETSDK1014: El elemento de contenido de "{0}" establece "{1}", pero no proporciona "{2}" ni "{3}".</target>
<note>{StrBegin="NETSDK1014: "}</note>
</trans-unit>
<trans-unit id="ContentPreproccessorParameterRequired">
<source>NETSDK1010: The '{0}' task must be given a value for parameter '{1}' in order to consume preprocessed content.</source>
<target state="translated">NETSDK1010: Debe darse un valor al parmetro "{1}" de la tarea "{0}" para poder consumir contenido preprocesado.</target>
<note>{StrBegin="NETSDK1010: "}</note>
</trans-unit>
<trans-unit id="CouldNotDetermineWinner_DoesNotExist_Info">
<source>Could not determine winner because '{0}' does not exist.</source>
<target state="translated">No se pudo determinar el ganador porque "{0}" no existe.</target>
<note />
</trans-unit>
<trans-unit id="CouldNotDetermineWinner_EqualVersions_Info">
<source>Could not determine winner due to equal file and assembly versions.</source>
<target state="translated">No se pudo determinar el ganador porque las versiones de archivo y ensamblado son iguales.</target>
<note />
</trans-unit>
<trans-unit id="CouldNotDetermineWinner_NoFileVersion_Info">
<source>Could not determine a winner because '{0}' has no file version.</source>
<target state="translated">No se pudo determinar un ganador porque "{0}" no tiene una versin de archivo.</target>
<note />
</trans-unit>
<trans-unit id="CouldNotDetermineWinner_NotAnAssembly_Info">
<source>Could not determine a winner because '{0}' is not an assembly.</source>
<target state="translated">No se pudo determinar un ganador porque "{0}" no es un ensamblado.</target>
<note />
</trans-unit>
<trans-unit id="CouldNotGetPackVersionFromWorkloadManifests">
<source>NETSDK1181: Error getting pack version: Pack '{0}' was not present in workload manifests.</source>
<target state="translated">NETSDK1181: Error al obtener la versin del paquete: el paquete "{0}" no estaba presente en los manifiestos de carga de trabajo.</target>
<note>{StrBegin="NETSDK1181: "}</note>
</trans-unit>
<trans-unit id="CouldNotLoadPlatformManifest">
<source>NETSDK1042: Could not load PlatformManifest from '{0}' because it did not exist.</source>
<target state="translated">NETSDK1042: No se pudo cargar PlatformManifest desde "{0}" porque no existe.</target>
<note>{StrBegin="NETSDK1042: "}</note>
</trans-unit>
<trans-unit id="CppRequiresTFMVersion31">
<source>NETSDK1120: C++/CLI projects targeting .NET Core require a target framework of at least 'netcoreapp3.1'.</source>
<target state="translated">NETSDK1120: Los proyectos de C++/CLI destinados a .NET Core requieren "netcoreapp3.1" como plataforma de destino mnima.</target>
<note>{StrBegin="NETSDK1120: "}</note>
</trans-unit>
<trans-unit id="Crossgen2MissingRequiredMetadata">
<source>NETSDK1158: Required '{0}' metadata missing on Crossgen2Tool item.</source>
<target state="translated">NETSDK1158: Faltan metadatos de "{0}" necesarios en el elemento Crossgen2Tool.</target>
<note>{StrBegin="NETSDK1158: "}</note>
</trans-unit>
<trans-unit id="Crossgen2RequiresSelfContained">
<source>NETSDK1126: Publishing ReadyToRun using Crossgen2 is only supported for self-contained applications.</source>
<target state="translated">NETSDK1126: La publicacin de ReadyToRun con Crossgen2 se admite nicamente para aplicaciones independientes.</target>
<note>{StrBegin="NETSDK1126: "}</note>
</trans-unit>
<trans-unit id="Crossgen2ToolExecutableNotFound">
<source>NETSDK1155: Crossgen2Tool executable '{0}' not found.</source>
<target state="translated">NETSDK1155: No se encontr el ejecutable de Crossgen2Tool "{0}".</target>
<note>{StrBegin="NETSDK1155: "}</note>
</trans-unit>
<trans-unit id="Crossgen2ToolMissingWhenUseCrossgen2IsSet">
<source>NETSDK1154: Crossgen2Tool must be specified when UseCrossgen2 is set to true.</source>
<target state="translated">NETSDK1154: Crossgen2Tool debe especificarse cuando UseCrossgen2 est establecido en true.</target>
<note>{StrBegin="NETSDK1154: "}</note>
</trans-unit>
<trans-unit id="Crossgen5CannotEmitSymbolsInCompositeMode">
<source>NETSDK1166: Cannot emit symbols when publishing for .NET 5 with Crossgen2 using composite mode.</source>
<target state="translated">NETSDK1166: No se pueden emitir smbolos al publicar para .NET 5 con Crossgen2 con el modo compuesto.</target>
<note>{StrBegin="NETSDK1166: "}</note>
</trans-unit>
<trans-unit id="CrossgenToolExecutableNotFound">
<source>NETSDK1160: CrossgenTool executable '{0}' not found.</source>
<target state="translated">NETSDK1160: No se encontr el ejecutable de CrossgenTool "{0}".</target>
<note>{StrBegin="NETSDK1160: "}</note>
</trans-unit>
<trans-unit id="CrossgenToolMissingInPDBCompilationMode">
<source>NETSDK1153: CrossgenTool not specified in PDB compilation mode.</source>
<target state="translated">NETSDK1153: CrossgenTool no se especifica en el modo de compilacin de PDB.</target>
<note>{StrBegin="NETSDK1153: "}</note>
</trans-unit>
<trans-unit id="CrossgenToolMissingWhenUseCrossgen2IsNotSet">
<source>NETSDK1159: CrossgenTool must be specified when UseCrossgen2 is set to false.</source>
<target state="translated">NETSDK1159: CrossgenTool debe especificarse cuando UseCrossgen2 se establezca en false.</target>
<note>{StrBegin="NETSDK1159: "}</note>
</trans-unit>
<trans-unit id="DiaSymReaderLibraryNotFound">
<source>NETSDK1161: DiaSymReader library '{0}' not found.</source>
<target state="translated">NETSDK1161: No se encontr la biblioteca DiaSymReader "{0}".</target>
<note>{StrBegin="NETSDK1161: "}</note>
</trans-unit>
<trans-unit id="DotNetHostExecutableNotFound">
<source>NETSDK1156: .NET host executable '{0}' not found.</source>
<target state="translated">NETSDK1156: No se encontr el ejecutable del host de .NET "{0}".</target>
<note>{StrBegin="NETSDK1156: "}</note>
</trans-unit>
<trans-unit id="DotnetToolDoesNotSupportTFMLowerThanNetcoreapp21">
<source>NETSDK1055: DotnetTool does not support target framework lower than netcoreapp2.1.</source>
<target state="translated">NETSDK1055: DotnetTool no admite una plataforma de destino anterior a netcoreapp2.1.</target>
<note>{StrBegin="NETSDK1055: "}</note>
</trans-unit>
<trans-unit id="DotnetToolOnlySupportNetcoreapp">
<source>NETSDK1054: only supports .NET Core.</source>
<target state="translated">NETSDK1054: Solo admite .NET Core.</target>
<note>{StrBegin="NETSDK1054: "}</note>
</trans-unit>
<trans-unit id="DuplicateItemsError">
<source>NETSDK1022: Duplicate '{0}' items were included. The .NET SDK includes '{0}' items from your project directory by default. You can either remove these items from your project file, or set the '{1}' property to '{2}' if you want to explicitly include them in your project file. For more information, see {4}. The duplicate items were: {3}</source>
<target state="translated">NETSDK1022: Se incluyeron "{0}" elementos duplicados. El SDK de .NET incluye "{0}" elementos de su directorio de proyecto de manera predeterminada. Puede quitar esos elementos del archivo de proyecto o establecer la propiedad "{1}" en "{2}" si desea incluirlos explcitamente en el archivo de proyecto. Para ms informacin, consulte {4}. Los elementos duplicados eran: {3}</target>
<note>{StrBegin="NETSDK1022: "}</note>
</trans-unit>
<trans-unit id="DuplicatePreprocessorToken">
<source>NETSDK1015: The preprocessor token '{0}' has been given more than one value. Choosing '{1}' as the value.</source>
<target state="translated">NETSDK1015: Se han dado varios valores para el token de preprocesador "{0}". Se va a elegir "{1}" como valor.</target>
<note>{StrBegin="NETSDK1015: "}</note>
</trans-unit>
<trans-unit id="DuplicatePublishOutputFiles">
<source>NETSDK1152: Found multiple publish output files with the same relative path: {0}.</source>
<target state="translated">NETSDK1152: Se encontraron varios archivos de salida de publicacin con la misma ruta de acceso relativa: {0}.</target>
<note>{StrBegin="NETSDK1152: "}</note>
</trans-unit>
<trans-unit id="DuplicateRuntimePackAsset">
<source>NETSDK1110: More than one asset in the runtime pack has the same destination sub-path of '{0}'. Report this error to the .NET team here: path_to_url
<target state="translated">NETSDK1110: Ms de un recurso del paquete del entorno de ejecucin tiene la misma subruta de acceso de destino de "{0}". Notifique este error al equipo de .NET aqu: path_to_url
<note>{StrBegin="NETSDK1110: "}</note>
</trans-unit>
<trans-unit id="DuplicateTypeLibraryIds">
<source>NETSDK1169: The same resource ID {0} was specified for two type libraries '{1}' and '{2}'. Duplicate type library IDs are not allowed.</source>
<target state="translated">NETSDK1169: El mismo Id. de recurso {0} se especific para dos bibliotecas de tipos "{1}" y "{2}". No se permiten los Id. de la biblioteca de tipos duplicados.</target>
<note>{StrBegin="NETSDK1169: "}</note>
</trans-unit>
<trans-unit id="EnableSingleFileAnalyzerUnsupported">
<source>NETSDK1211: EnableSingleFileAnalyzer is not supported for the target framework. Consider multi-targeting to a supported framework to enable single-file analysis, and set EnableSingleFileAnalyzer only for the supported frameworks. For example:
<EnableSingleFileAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</EnableSingleFileAnalyzer></source>
<target state="translated">NETSDK1211: EnableSingleFileAnalyzer no se admite para la plataforma de destino. Considere la posibilidad de usar varios destinos en un marco compatible para habilitar el anlisis de archivos nicos y establezca EnableSingleFileAnalyzer solo para los marcos admitidos. Por ejemplo:
<EnableSingleFileAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</EnableSingleFileAnalyzer></target>
<note>{StrBegin="NETSDK1211: "}</note>
</trans-unit>
<trans-unit id="EncounteredConflict_Info">
<source>Encountered conflict between '{0}' and '{1}'.</source>
<target state="translated">Se encontr un conflicto entre "{0}" y "{1}".</target>
<note />
</trans-unit>
<trans-unit id="ErrorParsingFrameworkListInvalidValue">
<source>NETSDK1051: Error parsing FrameworkList from '{0}'. {1} '{2}' was invalid.</source>
<target state="translated">NETSDK1051: Error al analizar la lista de plataformas de {0}. El atributo {1} {2} no era vlido.</target>
<note>{StrBegin="NETSDK1051: "}</note>
</trans-unit>
<trans-unit id="ErrorParsingPlatformManifest">
<source>NETSDK1043: Error parsing PlatformManifest from '{0}' line {1}. Lines must have the format {2}.</source>
<target state="translated">NETSDK1043: Error al analizar PlatformManifest desde la lnea "{0}" {1}. Las lneas deben tener el formato {2}.</target>
<note>{StrBegin="NETSDK1043: "}</note>
</trans-unit>
<trans-unit id="ErrorParsingPlatformManifestInvalidValue">
<source>NETSDK1044: Error parsing PlatformManifest from '{0}' line {1}. {2} '{3}' was invalid.</source>
<target state="translated">NETSDK1044: Error al analizar PlatformManifest desde la lnea "{0}" {1}. {2} "{3}" no era vlido.</target>
<note>{StrBegin="NETSDK1044: "}</note>
</trans-unit>
<trans-unit id="ErrorReadingAssetsFile">
<source>NETSDK1060: Error reading assets file: {0}</source>
<target state="translated">NETSDK1060: Error al leer el archivo de activos: {0}</target>
<note>{StrBegin="NETSDK1060: "}</note>
</trans-unit>
<trans-unit id="FailedToDeleteApphost">
<source>NETSDK1111: Failed to delete output apphost: {0}</source>
<target state="translated">NETSDK1111: No se pudo eliminar el host de aplicaciones de salida: {0}</target>
<note>{StrBegin="NETSDK1111: "}</note>
</trans-unit>
<trans-unit id="FailedToLockResource">
<source>NETSDK1077: Failed to lock resource.</source>
<target state="translated">NETSDK1077: No se pudo bloquear el recurso.</target>
<note>{StrBegin="NETSDK1077: "}</note>
</trans-unit>
<trans-unit id="FileNameIsTooLong">
<source>NETSDK1030: Given file name '{0}' is longer than 1024 bytes</source>
<target state="translated">NETSDK1030: El nombre de archivo especificado "{0}" tiene ms de 1024 bytes</target>
<note>{StrBegin="NETSDK1030: "}</note>
</trans-unit>
<trans-unit id="FolderAlreadyExists">
<source>NETSDK1024: Folder '{0}' already exists either delete it or provide a different ComposeWorkingDir</source>
<target state="translated">NETSDK1024: La carpeta "{0}" ya existe; elimnela o proporcione otro valor para ComposeWorkingDir</target>
<note>{StrBegin="NETSDK1024: "}</note>
</trans-unit>
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
<target state="translated">NETSDK1068: El host de la aplicacin dependiente del marco requiere una plataforma de destino a partir de la versin netcoreapp2.1.</target>
<note>{StrBegin="NETSDK1068: "}</note>
</trans-unit>
<trans-unit id="FrameworkListPathNotRooted">
<source>NETSDK1052: Framework list file path '{0}' is not rooted. Only full paths are supported.</source>
<target state="translated">NETSDK1052: Falta la raz en la ruta de acceso del archivo de lista de plataformas {0}. Solo se admiten rutas de acceso completas.</target>
<note>{StrBegin="NETSDK1052: "}</note>
</trans-unit>
<trans-unit id="FrameworkReferenceDuplicateError">
<source>NETSDK1087: Multiple FrameworkReference items for '{0}' were included in the project.</source>
<target state="translated">NETSDK1087: Se incluyeron varios elementos de FrameworkReference para "{0}" en el proyecto.</target>
<note>{StrBegin="NETSDK1087: "}</note>
</trans-unit>
<trans-unit id="FrameworkReferenceOverrideWarning">
<source>NETSDK1086: A FrameworkReference for '{0}' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}</source>
<target state="translated">NETSDK1086: Se incluy un valor de FrameworkReference para "{0}" en el proyecto. .NET SDK hace referencia implcita a este valor y, normalmente, no es necesario hacer referencia a l desde el proyecto. Para obtener ms informacin, consulte {1}</target>
<note>{StrBegin="NETSDK1086: "}</note>
</trans-unit>
<trans-unit id="GetDependsOnNETStandardFailedWithException">
<source>NETSDK1049: Resolved file has a bad image, no metadata, or is otherwise inaccessible. {0} {1}</source>
<target state="translated">NETSDK1049: El archivo resuelto tiene una imagen incorrecta, no tiene metadatos o no es posible su acceso. {0} {1}</target>
<note>{StrBegin="NETSDK1049: "}</note>
</trans-unit>
<trans-unit id="GlobalJsonSDKResolutionFailed">
<source>NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json located at {0}.</source>
<target state="translated">NETSDK1141: No se puede resolver la versin del SDK de .NET como se especifica en el archivo global.json que se encuentra en {0}.</target>
<note>{StrBegin="NETSDK1141: "}</note>
</trans-unit>
<trans-unit id="ILLinkFailed">
<source>NETSDK1144: Optimizing assemblies for size failed.</source>
<target state="needs-review-translation">NETSDK1144: Error al optimizar el tamao de los ensamblados. Para deshabilitar la optimizacin, establezca la propiedad PublishTrimmed en false.</target>
<note>{StrBegin="NETSDK1144: "}</note>
</trans-unit>
<trans-unit id="ILLinkNoValidRuntimePackageError">
<source>NETSDK1195: Trimming, or code compatibility analysis for trimming, single-file deployment, or ahead-of-time compilation is not supported for the target framework. For more information, see path_to_url
<target state="translated">NETSDK1195: No se admite el recorte o el anlisis de compatibilidad de cdigo para el recorte, la implementacin de un solo archivo o la compilacin anticipada para la plataforma de destino. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1195: "}</note>
</trans-unit>
<trans-unit id="ILLinkNotSupportedError">
<source>NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.</source>
<target state="translated">NETSDK1102: No se admite la optimizacin de tamao de los ensamblados para la configuracin de publicacin seleccionada. Asegrese de que est publicando una aplicacin autnoma.</target>
<note>{StrBegin="NETSDK1102: "}</note>
</trans-unit>
<trans-unit id="ILLinkOptimizedAssemblies">
<source>Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: path_to_url
<target state="translated">Al optimizar el tamao de los ensamblados, es posible que cambie el comportamiento de la aplicacin. Asegrese de probarla despus de su publicacin. Visite path_to_url
<note />
</trans-unit>
<trans-unit id="ILLinkRunning">
<source>Optimizing assemblies for size. This process might take a while.</source>
<target state="translated">Optimizacin del tamao de los ensamblados. Este proceso puede tardar un momento.</target>
<note />
</trans-unit>
<trans-unit id="ImplicitRuntimeIdentifierResolutionForPublishPropertyFailed">
<source>NETSDK1191: A runtime identifier for the property '{0}' couldn't be inferred. Specify a rid explicitly.</source>
<target state="translated">NETSDK1191: No se pudo inferir un identificador de runtime para la propiedad {0}. Especifique un rid explcitamente.</target>
<note>{StrBegin="NETSDK1191: "}</note>
</trans-unit>
<trans-unit id="IncorrectPackageRoot">
<source>NETSDK1020: Package Root {0} was incorrectly given for Resolved library {1}</source>
<target state="translated">NETSDK1020: Se proporcion incorrectamente la raz del paquete {0} para la biblioteca resuelta {1}</target>
<note>{StrBegin="NETSDK1020: "}</note>
</trans-unit>
<trans-unit id="IncorrectTargetFormat">
<source>NETSDK1025: The target manifest {0} provided is of not the correct format</source>
<target state="translated">NETSDK1025: El manifiesto de destino {0} proporcionado no tiene el formato correcto</target>
<note>{StrBegin="NETSDK1025: "}</note>
</trans-unit>
<trans-unit id="InputAssemblyNotFound">
<source>NETSDK1163: Input assembly '{0}' not found.</source>
<target state="translated">NETSDK1163: No se encontr el ensamblado de entrada "{0}".</target>
<note>{StrBegin="NETSDK1163: "}</note>
</trans-unit>
<trans-unit id="InvalidAppHostDotNetSearch">
<source>NETSDK1217: Invalid value in AppHostDotNetSearch: '{0}'.</source>
<target state="new">NETSDK1217: Invalid value in AppHostDotNetSearch: '{0}'.</target>
<note>{StrBegin="NETSDK1217: "}</note>
</trans-unit>
<trans-unit id="InvalidFrameworkName">
<source>NETSDK1003: Invalid framework name: '{0}'.</source>
<target state="translated">NETSDK1003: Nombre de plataforma no vlido: "{0}".</target>
<note>{StrBegin="NETSDK1003: "}</note>
</trans-unit>
<trans-unit id="InvalidItemSpecToUse">
<source>NETSDK1058: Invalid value for ItemSpecToUse parameter: '{0}'. This property must be blank or set to 'Left' or 'Right'</source>
<target state="translated">NETSDK1058: Valor no vlido para el parmetro ItemSpecToUse: "{0}". Esta propiedad debe estar en blanco o configurarse en "Left" o "Right"</target>
<note>{StrBegin="NETSDK1058: "}
The following are names of parameters or literal values and should not be translated: ItemSpecToUse, Left, Right</note>
</trans-unit>
<trans-unit id="InvalidNuGetVersionString">
<source>NETSDK1018: Invalid NuGet version string: '{0}'.</source>
<target state="translated">NETSDK1018: Cadena de versin de NuGet no vlida: "{0}".</target>
<note>{StrBegin="NETSDK1018: "}</note>
</trans-unit>
<trans-unit id="InvalidResourceUpdate">
<source>NETSDK1075: Update handle is invalid. This instance may not be used for further updates.</source>
<target state="translated">NETSDK1075: El identificador de actualizacin no es vlido. Puede que esta instancia no se pueda usar en ms actualizaciones.</target>
<note>{StrBegin="NETSDK1075: "}</note>
</trans-unit>
<trans-unit id="InvalidRollForwardValue">
<source>NETSDK1104: RollForward value '{0}' is invalid. Allowed values are {1}.</source>
<target state="translated">NETSDK1104: El valor "{0}" de RollForward no es vlido. Los valores permitidos son: {1}.</target>
<note>{StrBegin="NETSDK1104: "}</note>
</trans-unit>
<trans-unit id="InvalidTargetPlatformVersion">
<source>NETSDK1140: {0} is not a valid TargetPlatformVersion for {1}. Valid versions include:
{2}</source>
<target state="translated">NETSDK1140: {0} no es un valor TargetPlatformVersion vlido para {1}. Entre las versiones vlidas se incluyen:
{2}</target>
<note>{StrBegin="NETSDK1140: "}</note>
</trans-unit>
<trans-unit id="InvalidTypeLibrary">
<source>NETSDK1173: The provided type library '{0}' is in an invalid format.</source>
<target state="translated">NETSDK1173: La biblioteca de tipos "{0}" proporcionada tiene un formato no vlido.</target>
<note>{StrBegin="NETSDK1173: "}</note>
</trans-unit>
<trans-unit id="InvalidTypeLibraryId">
<source>NETSDK1170: The provided type library ID '{0}' for type library '{1}' is invalid. The ID must be a positive integer less than 65536.</source>
<target state="translated">NETSDK1170: El identificador de biblioteca de tipos proporcionado "{0}" para la biblioteca de tipos "{1}" no es vlido. El identificador debe ser un entero positivo menor de 65536.</target>
<note>{StrBegin="NETSDK1170: "}</note>
</trans-unit>
<trans-unit id="IsAotCompatibleUnsupported">
<source>NETSDK1210: IsAotCompatible and EnableAotAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable ahead-of-time compilation analysis, and set IsAotCompatible only for the supported frameworks. For example:
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</IsAotCompatible></source>
<target state="translated">NETSDK1210: IsAotCompatible y EnableAotAnalyzer no se admite para la plataforma de destino. Considere la posibilidad de usar varios destinos en un marco compatible para habilitar el anlisis de compilacin con antelacin y establezca IsAotCompatible solo para los marcos admitidos. Por ejemplo:
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</IsAotCompatible></target>
<note>{StrBegin="NETSDK1210: "}</note>
</trans-unit>
<trans-unit id="IsTrimmableUnsupported">
<source>NETSDK1212: IsTrimmable and EnableTrimAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example:
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</IsTrimmable></source>
<target state="translated">NETSDK1212: IsTrimmable y EnableTrimAnalyzer no se admite para la plataforma de destino. Considere la posibilidad de usar varios destinos en un marco compatible para habilitar el recorte y establezca IsTrimmable solo para los marcos admitidos. Por ejemplo:
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</IsTrimmable></target>
<note>{StrBegin="NETSDK1212: "}</note>
</trans-unit>
<trans-unit id="JitLibraryNotFound">
<source>NETSDK1157: JIT library '{0}' not found.</source>
<target state="translated">NETSDK1157: No se encontr la biblioteca JIT "{0}".</target>
<note>{StrBegin="NETSDK1157: "}</note>
</trans-unit>
<trans-unit id="MicrosoftNetSdkCompilersToolsetNotFound">
<source>NETSDK1216: Package Microsoft.Net.Sdk.Compilers.Toolset is not downloaded but it is needed because your MSBuild and SDK versions are mismatched. Ensure version {0} of the package is available in your NuGet source feeds and then run NuGet package restore from Visual Studio or MSBuild.</source>
<target state="new">NETSDK1216: Package Microsoft.Net.Sdk.Compilers.Toolset is not downloaded but it is needed because your MSBuild and SDK versions are mismatched. Ensure version {0} of the package is available in your NuGet source feeds and then run NuGet package restore from Visual Studio or MSBuild.</target>
<note>{StrBegin="NETSDK1216: "}{Locked="Microsoft.Net.Sdk.Compilers.Toolset"} {0} is a NuGet package version and should not be translated.</note>
</trans-unit>
<trans-unit id="MismatchedPlatformPackageVersion">
<source>NETSDK1061: The project was restored using {0} version {1}, but with current settings, version {2} would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore. For more information, see path_to_url
<target state="translated">NETSDK1061: El proyecto fue restaurado utilizando la versin {0} {1}, pero con la configuracin actual, la versin {2} se utilizara en su lugar. Para resolver este problema, asegrese de que la misma configuracin se utiliza para restaurar y para operaciones posteriores como compilar o publicar. Normalmente, este problema puede producirse si la `propiedad RuntimeIdentifier se establece durante la compilacin o la publicacin pero no durante la restauracin. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1061: "}
{0} - Package Identifier for platform package
{1} - Restored version of platform package
{2} - Current version of platform package</note>
</trans-unit>
<trans-unit id="MissingItemMetadata">
<source>NETSDK1008: Missing '{0}' metadata on '{1}' item '{2}'.</source>
<target state="translated">NETSDK1008: Faltan los metadatos de "{0}" en el elemento de "{1}" "{2}".</target>
<note>{StrBegin="NETSDK1008: "}</note>
</trans-unit>
<trans-unit id="MissingOutputPDBImagePath">
<source>NETSDK1164: Missing output PDB path in PDB generation mode (OutputPDBImage metadata).</source>
<target state="translated">NETSDK1164: Falta la ruta de acceso del archivo PDB de salida en el modo de generacin de PDB (metadatos OutputPDBImage).</target>
<note>{StrBegin="NETSDK1164: "}</note>
</trans-unit>
<trans-unit id="MissingOutputR2RImageFileName">
<source>NETSDK1165: Missing output R2R image path (OutputR2RImage metadata).</source>
<target state="translated">NETSDK1165: Falta la ruta de acceso de la imagen R2R de salida (metadatos OutputR2RImage).</target>
<note>{StrBegin="NETSDK1165: "}</note>
</trans-unit>
<trans-unit id="MissingTypeLibraryId">
<source>NETSDK1171: An integer ID less than 65536 must be provided for type library '{0}' because more than one type library is specified.</source>
<target state="translated">NETSDK1171: Un Id. entero menor que 65536 debe proporcionarse para la biblioteca de tipos "{0}" debido a que se ha especificado ms de una biblioteca de tipos.</target>
<note>{StrBegin="NETSDK1171: "}</note>
</trans-unit>
<trans-unit id="MultipleFilesResolved">
<source>NETSDK1021: More than one file found for {0}</source>
<target state="translated">NETSDK1021: Se encontr ms de un archivo para {0}</target>
<note>{StrBegin="NETSDK1021: "}</note>
</trans-unit>
<trans-unit id="NETFrameworkToNonBuiltInNETStandard">
<source>NETSDK1069: This project uses a library that targets .NET Standard 1.5 or higher, and the project targets a version of .NET Framework that doesn't have built-in support for that version of .NET Standard. Visit path_to_url for a set of known issues. Consider retargeting to .NET Framework 4.7.2.</source>
<target state="translated">NETSDK1069: Este proyecto utiliza una biblioteca para .NET Standard 1.5 o posterior, pero el proyecto es para una versin de .NET Framework que no incluye compatibilidad con esa versin de .NET Standard. Visite path_to_url para ver un conjunto de problemas conocidos. Considere la posibilidad de cambiar el destino a .NET Framework 4.7.2.</target>
<note>{StrBegin="NETSDK1069: "}</note>
</trans-unit>
<trans-unit id="NETFrameworkWithoutUsingNETSdkDefaults">
<source>NETSDK1115: The current .NET SDK does not support .NET Framework without using .NET SDK Defaults. It is likely due to a mismatch between C++/CLI project CLRSupport property and TargetFramework.</source>
<target state="translated">NETSDK1115: El SDK de .NET actual no admite .NET Framework sin usar los valores predeterminados de dicho SDK. Posiblemente se deba a la falta de coincidencia entre la propiedad CLRSupport del proyecto de C++/CLI y TargetFramework.</target>
<note>{StrBegin="NETSDK1115: "}</note>
</trans-unit>
<trans-unit id="Net8NotCompatibleWithDev177">
<source>NETSDK1213: Targeting .NET 8.0 or higher in Visual Studio 2022 17.7 is not supported.</source>
<target state="translated">NETSDK1213: no se admite el destino de .NET 8.0 o posterior en Visual Studio 2022 17.7.</target>
<note>{StrBegin="NETSDK1213: "}</note>
</trans-unit>
<trans-unit id="NoAppHostAvailable">
<source>NETSDK1084: There is no application host available for the specified RuntimeIdentifier '{0}'.</source>
<target state="translated">NETSDK1084: No hay ningn host de aplicacin disponible para el valor de RuntimeIdentifier especificado "{0}".</target>
<note>{StrBegin="NETSDK1084: "}</note>
</trans-unit>
<trans-unit id="NoBuildRequested">
<source>NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked.</source>
<target state="translated">NETSDK1085: La propiedad "NoBuild" se estableci en true pero se invoc el destino de compilacin.</target>
<note>{StrBegin="NETSDK1085: "}</note>
</trans-unit>
<trans-unit id="NoCompatibleTargetFramework">
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
<target state="translated">NETSDK1002: El proyecto "{0}" tiene como destino "{2}". No se puede hacer referencia a l mediante un proyecto que tenga como destino "{1}".</target>
<note>{StrBegin="NETSDK1002: "}</note>
</trans-unit>
<trans-unit id="NoRuntimePackAvailable">
<source>NETSDK1082: There was no runtime pack for {0} available for the specified RuntimeIdentifier '{1}'.</source>
<target state="translated">NETSDK1082: No haba ningn paquete de tiempo de ejecucin para {0} disponible para el valor de RuntimeIdentifier especificado "{1}".</target>
<note>{StrBegin="NETSDK1082: "}</note>
</trans-unit>
<trans-unit id="NoRuntimePackInformation">
<source>NETSDK1132: No runtime pack information was available for {0}.</source>
<target state="translated">NETSDK1132: no haba informacin del paquete de tiempo de ejecucin disponible para {0}.</target>
<note>{StrBegin="NETSDK1132: "}</note>
</trans-unit>
<trans-unit id="NoSupportComSelfContained">
<source>NETSDK1128: COM hosting does not support self-contained deployments.</source>
<target state="translated">NETSDK1128: el hospedaje COM no admite implementaciones independientes.</target>
<note>{StrBegin="NETSDK1128: "}</note>
</trans-unit>
<trans-unit id="NoSupportCppEnableComHosting">
<source>NETSDK1119: C++/CLI projects targeting .NET Core cannot use EnableComHosting=true.</source>
<target state="translated">NETSDK1119: Los proyectos de C++/CLI destinados a .NET Core no pueden usar EnableComHosting=true.</target>
<note>{StrBegin="NETSDK1119: "}</note>
</trans-unit>
<trans-unit id="NoSupportCppNonDynamicLibraryDotnetCore">
<source>NETSDK1116: C++/CLI projects targeting .NET Core must be dynamic libraries.</source>
<target state="translated">NETSDK1116: Los proyectos de C++/CLI destinados a .NET Core deben ser bibliotecas dinmicas.</target>
<note>{StrBegin="NETSDK1116: "}</note>
</trans-unit>
<trans-unit id="NoSupportCppPackDotnetCore">
<source>NETSDK1118: C++/CLI projects targeting .NET Core cannot be packed.</source>
<target state="translated">NETSDK1118: Los proyectos de C++/CLI destinados a .NET Core no se pueden empaquetar.</target>
<note>{StrBegin="NETSDK1118: "}</note>
</trans-unit>
<trans-unit id="NoSupportCppPublishDotnetCore">
<source>NETSDK1117: Does not support publish of C++/CLI project targeting dotnet core.</source>
<target state="translated">NETSDK1117: No se admite la publicacin de proyectos de C++/CLI destinados a dotnet core.</target>
<note>{StrBegin="NETSDK1117: "}</note>
</trans-unit>
<trans-unit id="NoSupportCppSelfContained">
<source>NETSDK1121: C++/CLI projects targeting .NET Core cannot use SelfContained=true.</source>
<target state="translated">NETSDK1121: Los proyectos de C++/CLI destinados a .NET Core no pueden usar SelfContained=true.</target>
<note>{StrBegin="NETSDK1121: "}</note>
</trans-unit>
<trans-unit id="NonPortableRuntimeIdentifierDetected">
<source>NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See path_to_url for details.</source>
<target state="translated">NETSDK1206: Se encontraron identificadores en tiempo de ejecucin especficos de la versin o especficos de la distribucin: {0}. Bibliotecas afectadas: {1}. En .NET 8.0 y versiones posteriores, los recursos para identificadores en tiempo de ejecucin especficos de la versin y de distribucin no se encuentran de forma predeterminada. Consulte path_to_url para obtener ms informacin.</target>
<note>{StrBegin="NETSDK1206: "}</note>
</trans-unit>
<trans-unit id="NonSelfContainedExeCannotReferenceSelfContained">
<source>NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. For more information, see path_to_url
<target state="translated">NETSDK1151: El proyecto al que se hace referencia '{0}' es un ejecutable independiente. Un ejecutable independiente no puede hacer referencia a un no ejecutable independiente. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1151: "}</note>
</trans-unit>
<trans-unit id="PDBGeneratorInputExecutableNotFound">
<source>NETSDK1162: PDB generation: R2R executable '{0}' not found.</source>
<target state="translated">NETSDK1162: Generacin de PDB: no se encontr el ejecutable de R2R "{0}".</target>
<note>{StrBegin="NETSDK1162: "}</note>
</trans-unit>
<trans-unit id="PackAsToolCannotSupportSelfContained">
<source>NETSDK1053: Pack as tool does not support self contained.</source>
<target state="translated">NETSDK1053: El paquete como herramienta no admite la autocontencin.</target>
<note>{StrBegin="NETSDK1053: "}</note>
</trans-unit>
<trans-unit id="PackAsToolCannotSupportTargetPlatformIdentifier">
<source>NETSDK1146: PackAsTool does not support TargetPlatformIdentifier being set. For example, TargetFramework cannot be net5.0-windows, only net5.0. PackAsTool also does not support UseWPF or UseWindowsForms when targeting .NET 5 and higher.</source>
<target state="translated">NETSDK1146: PackAsTool no admite que se establezca el valor TargetPlatformIdentifier. Por ejemplo, TargetFramework no puede ser net5.0-windows, solo net5.0. Adems, PackAsTool tampoco admite UseWPF ni UseWindowsForms cuando se destina a .NET5 y versiones posteriores.</target>
<note>{StrBegin="NETSDK1146: "}</note>
</trans-unit>
<trans-unit id="PackageContainsIncorrectlyCasedLocale">
<source>NETSDK1187: Package {0} {1} has a resource with the locale '{2}'. This locale has been normalized to the standard format '{3}' to prevent casing issues in the build. Consider notifying the package author about this casing issue.</source>
<target state="translated">NETSDK1187: El paquete {0} {1} tiene un recurso con la configuracin regional "{2}". Esta configuracin regional se ha normalizado al formato estndar "{3}" para evitar problemas de uso de maysculas y minsculas en la compilacin. Considere la posibilidad de notificar al autor del paquete sobre este problema de uso de maysculas y minsculas.</target>
<note>{StrBegin="NETSDK1187: "} 0 is a package name, 1 is a package version, 2 is the incorrect locale string, and 3 is the correct locale string.</note>
</trans-unit>
<trans-unit id="PackageContainsUnknownLocale">
<source>NETSDK1188: Package {0} {1} has a resource with the locale '{2}'. This locale is not recognized by .NET. Consider notifying the package author that it appears to be using an invalid locale.</source>
<target state="translated">NETSDK1188: El paquete {0} {1} tiene un recurso con la configuracin regional "{2}". .NET no reconoce esta configuracin regional. Considere la posibilidad de notificar al autor del paquete que parece estar usando una configuracin regional no vlida.</target>
<note>{StrBegin="NETSDK1188: "} 0 is a package name, 1 is a package version, and 2 is the incorrect locale string</note>
</trans-unit>
<trans-unit id="PackageNotFound">
<source>NETSDK1064: Package {0}, version {1} was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.</source>
<target state="translated">NETSDK1064: No se encontr el paquete {0}, versin {1}. Es posible que se haya eliminado desde la restauracin de NuGet. De lo contrario, la restauracin de NuGet podra haberse completado solo parcialmente, lo que puede deberse a las restricciones de longitud de ruta mxima.</target>
<note>{StrBegin="NETSDK1064: "}</note>
</trans-unit>
<trans-unit id="PackageReferenceOverrideWarning">
<source>NETSDK1023: A PackageReference for '{0}' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}</source>
<target state="translated">NETSDK1023: Se incluy un elemento PackageReference para "{0}" en su proyecto. El SDK de .NET hace referencia implcita a este paquete y normalmente no tiene que hacer referencia a l desde su proyecto. Para obtener ms informacin, consulte {1}</target>
<note>{StrBegin="NETSDK1023: "}</note>
</trans-unit>
<trans-unit id="PackageReferenceVersionNotRecommended">
<source>NETSDK1071: A PackageReference to '{0}' specified a Version of `{1}`. Specifying the version of this package is not recommended. For more information, see path_to_url
<target state="translated">NETSDK1071: Un PackageReference a "{0}" especific una versin de "{1}". No se recomienda especificar la versin de este paquete. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1071: "}</note>
</trans-unit>
<trans-unit id="PlaceholderRunCommandProjectAbbreviationDeprecated">
<source>NETSDK1174: Placeholder</source>
<target state="translated">NETSDK1174: Marcador de posicin</target>
<note>{StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.</note>
</trans-unit>
<trans-unit id="Prefer32BitIgnoredForNetCoreApp">
<source>NETSDK1189: Prefer32Bit is not supported and has no effect for netcoreapp target.</source>
<target state="translated">NETSDK1189: Prefer32Bit no se admite y no tiene efecto para el destino netcoreapp.</target>
<note>{StrBegin="NETSDK1189: "}</note>
</trans-unit>
<trans-unit id="PreferNativeArm64IgnoredForNetCoreApp">
<source>NETSDK1214: PreferNativeArm64 applies only to .NET Framework targets. It is not supported and has no effect for when targeting .NET Core.</source>
<target state="new">NETSDK1214: PreferNativeArm64 applies only to .NET Framework targets. It is not supported and has no effect for when targeting .NET Core.</target>
<note>{StrBegin="NETSDK1214: "}</note>
</trans-unit>
<trans-unit id="ProjectAssetsConsumedWithoutMSBuildProjectPath">
<source>NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.</source>
<target state="translated">NETSDK1011: Los recursos se consumen desde el proyecto "{0}", pero no se ha encontrado la ruta de acceso de proyecto de MSBuild correspondiente en "{1}".</target>
<note>{StrBegin="NETSDK1011: "}</note>
</trans-unit>
<trans-unit id="ProjectContainsObsoleteDotNetCliTool">
<source>NETSDK1059: The tool '{0}' is now included in the .NET SDK. Information on resolving this warning is available at (path_to_url
<target state="translated">NETSDK1059: La herramienta "{0}" se incluye ahora en el SDK de .NET. Hay informacin disponible sobre cmo resolver esta advertencia en path_to_url
<note>{StrBegin="NETSDK1059: "}</note>
</trans-unit>
<trans-unit id="ProjectToolOnlySupportTFMLowerThanNetcoreapp22">
<source>NETSDK1093: Project tools (DotnetCliTool) only support targeting .NET Core 2.2 and lower.</source>
<target state="translated">NETSDK1093: Las herramientas de proyecto (DotnetCliTool) solo admiten como destino .NET Core 2.2 y versiones inferiores.</target>
<note>{StrBegin="NETSDK1093: "}</note>
</trans-unit>
<trans-unit id="PublishProfileNotPresent">
<source>NETSDK1198: A publish profile with the name '{0}' was not found in the project. Set the PublishProfile property to a valid file name.</source>
<target state="translated">NETSDK1198: No se encontr un perfil de publicacin con el nombre '{0}' en el proyecto. Establezca la propiedad PublishProfile en un nombre de archivo vlido.</target>
<note>{StrBegin="NETSDK1198: "}</note>
</trans-unit>
<trans-unit id="PublishReadyToRunRequiresVersion30">
<source>NETSDK1122: ReadyToRun compilation will be skipped because it is only supported for .NET Core 3.0 or higher.</source>
<target state="translated">NETSDK1122: Se omitir la compilacin de ReadyToRun porque solo se admite para .NET Core 3.0 o versiones posteriores.</target>
<note>{StrBegin="NETSDK1122: "}</note>
</trans-unit>
<trans-unit id="PublishSelfContainedMustBeBool">
<source>NETSDK1193: If PublishSelfContained is set, it must be either true or false. The value given was '{0}'.</source>
<target state="translated">NETSDK1193: si se establece PublishSelfContained, debe ser true o false. El valor dado era {0}.</target>
<note>{StrBegin="NETSDK1193: "}</note>
</trans-unit>
<trans-unit id="PublishSingleFileRequiresVersion30">
<source>NETSDK1123: Publishing an application to a single-file requires .NET Core 3.0 or higher.</source>
<target state="translated">NETSDK1123: La publicacin de una aplicacin en un nico archivo requiere .NET Core 3.0 o versiones posteriores.</target>
<note>{StrBegin="NETSDK1123: "}</note>
</trans-unit>
<trans-unit id="PublishTrimmedRequiresVersion30">
<source>NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.</source>
<target state="translated">NETSDK1124: El recorte de los ensamblados requiere .NET Core 3.0 o versiones posteriores.</target>
<note>{StrBegin="NETSDK1124: "}</note>
</trans-unit>
<trans-unit id="PublishUnsupportedWithoutTargetFramework">
<source>NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify one of the following frameworks in order to publish: {0}</source>
<target state="translated">NETSDK1129: El destino "Publish" no se admite sin especificar una plataforma de destino. El proyecto actual tiene como destino varios marcos, debe especificar uno de los siguientes marcos para poder publicar: {0}</target>
<note>{StrBegin="NETSDK1129: "}</note>
</trans-unit>
<trans-unit id="ReadyToRunCompilationFailed">
<source>NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false.</source>
<target state="translated">NETSDK1096: Error al optimizar el rendimiento de los ensamblados. Puede excluir los ensamblados con error de la optimizacin o establecer la propiedad PublishReadyToRun en false.</target>
<note>{StrBegin="NETSDK1096: "}</note>
</trans-unit>
<trans-unit id="ReadyToRunCompilationHasWarnings_Info">
<source>Some ReadyToRun compilations emitted warnings, indicating potential missing dependencies. Missing dependencies could potentially cause runtime failures. To show the warnings, set the PublishReadyToRunShowWarnings property to true.</source>
<target state="translated">Algunas compilaciones ReadyToRun han emitido advertencias, lo que indica que posiblemente falten dependencias. La falta de dependencias podra causar errores en tiempo de ejecucin. Para mostrar las advertencias, establezca la propiedad PublishReadyToRunShowWarnings en true.</target>
<note />
</trans-unit>
<trans-unit id="ReadyToRunNoValidRuntimePackageError">
<source>NETSDK1094: Unable to optimize assemblies for performance: a valid runtime package was not found. Either set the PublishReadyToRun property to false, or use a supported runtime identifier when publishing. When targeting .NET 6 or higher, make sure to restore packages with the PublishReadyToRun property set to true.</source>
<target state="translated">NETSDK1094: No se pueden optimizar los ensamblados para mejorar el rendimiento: no se ha encontrado un paquete en tiempo de ejecucin vlido. Establezca la propiedad PublishReadyToRun en false o use un identificador en tiempo de ejecucin compatible al publicar. Cuando el destino sea .NET6 o una versin posterior, asegrese de restaurar los paquetes con la propiedad PublishReadyToRun establecida en true.</target>
<note>{StrBegin="NETSDK1094: "}</note>
</trans-unit>
<trans-unit id="ReadyToRunTargetNotSupportedError">
<source>NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture. Please verify you are using a supported runtime identifier, or set the PublishReadyToRun property to false.</source>
<target state="translated">NETSDK1095: No se admite la optimizacin del rendimiento de los ensamblados para la plataforma o la arquitectura de destino seleccionadas. Compruebe que est usando un identificador en tiempo de ejecucin compatible o establezca la propiedad PublishReadyToRun en false.</target>
<note>{StrBegin="NETSDK1095: "}</note>
</trans-unit>
<trans-unit id="RollForwardRequiresVersion30">
<source>NETSDK1103: RollForward setting is only supported on .NET Core 3.0 or higher.</source>
<target state="translated">NETSDK1103: La configuracin de RollForward solo se admite en .NET Core 3.0 o versiones posteriores.</target>
<note>{StrBegin="NETSDK1103: "}</note>
</trans-unit>
<trans-unit id="RuntimeIdentifierNotRecognized">
<source>NETSDK1083: The specified RuntimeIdentifier '{0}' is not recognized. See path_to_url for more information.</source>
<target state="translated">NETSDK1083: No se reconoce el valor de RuntimeIdentifier especificado "{0}". Consulte path_to_url para obtener ms informacin.</target>
<note>{StrBegin="NETSDK1083: "}</note>
</trans-unit>
<trans-unit id="RuntimeIdentifierWasNotSpecified">
<source>NETSDK1028: Specify a RuntimeIdentifier</source>
<target state="translated">NETSDK1028: Especificar un valor para RuntimeIdentifier</target>
<note>{StrBegin="NETSDK1028: "}</note>
</trans-unit>
<trans-unit id="RuntimeIdentifierWillNoLongerImplySelfContained">
<source>NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.</source>
<target state="translated">NETSDK1201: Para los proyectos que tienen como destino .NET 8.0 y versiones posteriores, la especificacin de runtimeIdentifier dejar de generar una aplicacin independiente de forma predeterminada. Para seguir compilando aplicaciones independientes, establezca la propiedad SelfContained en true o use el argumento --self-contained.</target>
<note>{StrBegin="NETSDK1201: "}</note>
</trans-unit>
<trans-unit id="RuntimeListNotFound">
<source>NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: path_to_url
<target state="translated">NETSDK1109: No se encontr el archivo de lista del entorno de ejecucin "{0}". Notifique este error al equipo de .NET aqu: path_to_url
<note>{StrBegin="NETSDK1109: "}</note>
</trans-unit>
<trans-unit id="RuntimePackNotDownloaded">
<source>NETSDK1112: The runtime pack for {0} was not downloaded. Try running a NuGet restore with the RuntimeIdentifier '{1}'.</source>
<target state="translated">NETSDK1112: no se descarg el paquete de tiempo de ejecucin de {0}. Pruebe a ejecutar una restauracin de NuGet con RuntimeIdentifier "{1}".</target>
<note>{StrBegin="NETSDK1112: "}</note>
</trans-unit>
<trans-unit id="RuntimePackNotRestored_TransitiveDisabled">
<source>NETSDK1185: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.</source>
<target state="translated">NETSDK1185: El paquete en tiempo de ejecucin para FrameworkReference "{0}" no estaba disponible. Esto puede deberse a que DisableTransitiveFrameworkReferenceDownloads se ha establecido en true.</target>
<note>{StrBegin="NETSDK1185: "}</note>
</trans-unit>
<trans-unit id="SelfContainedExeCannotReferenceNonSelfContained">
<source>NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. For more information, see path_to_url
<target state="translated">NETSDK1150: El proyecto al que se hace referencia '{0}' es un ejecutable no independiente. Un archivo ejecutable independiente no puede hacer referencia a un ejecutable que no es independiente. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1150: "}</note>
</trans-unit>
<trans-unit id="SelfContainedOptionShouldBeUsedWithRuntime">
<source>NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used.</source>
<target state="translated">NETSDK1179: Se requiere una de las opciones "--self-contained" o "--no-self-contained" cuando se usa "--runtime".</target>
<note>{StrBegin="NETSDK1179: "}{Locked="--self-contained"}{Locked="--no-self-contained"}{Locked="--runtime"}</note>
</trans-unit>
<trans-unit id="SkippingAdditionalProbingPaths">
<source>NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty.</source>
<target state="translated">NETSDK1048: Se especificaron valores adicionales de "AdditionalProbingPaths" para GenerateRuntimeConfigurationFiles, pero se van a omitir porque el valor de "RuntimeConfigDevPath" est vaco.</target>
<note>{StrBegin="NETSDK1048: "}</note>
</trans-unit>
<trans-unit id="SolutionProjectConfigurationsConflict">
<source>NETSDK1197: Multiple solution project(s) contain conflicting '{0}' values; ensure the values match. Consider using a Directory.build.props file to set the property for all projects. Conflicting projects:
{1}</source>
<target state="translated">NETSDK1197: Varios proyectos de solucin que contienen valores '{0}' en conflicto; asegrese de que los valores coinciden. Considere la posibilidad de usar un archivo Directory.build.props para establecer la propiedad para todos los proyectos. Proyectos en conflicto:
{1}</target>
<note>{StrBegin="NETSDK1197: "}</note>
</trans-unit>
<trans-unit id="TargetFrameworkIsEol">
<source>NETSDK1138: The target framework '{0}' is out of support and will not receive security updates in the future. Please refer to {1} for more information about the support policy.</source>
<target state="translated">NETSDK1138: La plataforma de destino "{0}" no tiene soporte tcnico y no recibir actualizaciones de seguridad en el futuro. Para obtener ms informacin sobre la directiva de soporte tcnico, consulte {1}.</target>
<note>{StrBegin="NETSDK1138: "}</note>
</trans-unit>
<trans-unit id="TargetFrameworkIsNotRecommended">
<source>NETSDK1215: Targeting .NET Standard prior to 2.0 is no longer recommended. See {0} for more details.</source>
<target state="new">NETSDK1215: Targeting .NET Standard prior to 2.0 is no longer recommended. See {0} for more details.</target>
<note>{StrBegin="NETSDK1215: "}</note>
</trans-unit>
<trans-unit id="TargetFrameworkWithSemicolon">
<source>NETSDK1046: The TargetFramework value '{0}' is not valid. To multi-target, use the 'TargetFrameworks' property instead.</source>
<target state="translated">NETSDK1046: El valor de TargetFramework "{0}" no es vlido. Para varios destinos, use en su lugar la propiedad "TargetFrameworks".</target>
<note>{StrBegin="NETSDK1046: "}</note>
</trans-unit>
<trans-unit id="TargetingApphostPackMissingCannotRestore">
<source>NETSDK1145: The {0} pack is not installed and NuGet package restore is not supported. Upgrade Visual Studio, remove global.json if it specifies a certain SDK version, and uninstall the newer SDK. For more options visit path_to_url Pack Type:{0}, Pack directory: {1}, targetframework: {2}, Pack PackageId: {3}, Pack Package Version: {4}</source>
<target state="translated">NETSDK1145: El paquete {0} no est instalado y no se admite la restauracin de paquetes NuGet. Actualice VisualStudio, quite global.json si especifica una versin determinada del SDK y desinstale el SDK ms reciente. Para ver ms opciones, visite path_to_url Tipo de paquete: {0}. Directorio del paquete: {1}. Plataforma de destino: {2}. Id. del paquete: {3}. Versin del paquete: {4}</target>
<note>{StrBegin="NETSDK1145: "}</note>
</trans-unit>
<trans-unit id="TargetingPackNeedsRestore">
<source>NETSDK1127: The targeting pack {0} is not installed. Please restore and try again.</source>
<target state="translated">NETSDK1127: El paquete de compatibilidad {0} no est instalado. Resturelo y vuelva a intentarlo.</target>
<note>{StrBegin="NETSDK1127: "}</note>
</trans-unit>
<trans-unit id="TargetingPackNotRestored_TransitiveDisabled">
<source>NETSDK1184: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.</source>
<target state="translated">NETSDK1184: El paquete de destinatarios para FrameworkReference "{0}" no estaba disponible. Esto puede deberse a que DisableTransitiveFrameworkReferenceDownloads se ha establecido en true.</target>
<note>{StrBegin="NETSDK1184: "}</note>
</trans-unit>
<trans-unit id="TrimmingWindowsFormsIsNotSupported">
<source>NETSDK1175: Windows Forms is not supported or recommended with trimming enabled. Please go to path_to_url for more details.</source>
<target state="translated">NETSDK1175: Windows Forms no es compatible o no se recomienda con la opcin de recorte habilitada. Para obtener ms informacin, vaya a path_to_url
<note>{StrBegin="NETSDK1175: "}</note>
</trans-unit>
<trans-unit id="TrimmingWpfIsNotSupported">
<source>NETSDK1168: WPF is not supported or recommended with trimming enabled. Please go to path_to_url for more details.</source>
<target state="translated">NETSDK1168: WPF no es compatible o no se recomienda con la opcin de recorte habilitada. Para obtener ms informacin, vaya a path_to_url
<note>{StrBegin="NETSDK1168: "}</note>
</trans-unit>
<trans-unit id="TypeLibraryDoesNotExist">
<source>NETSDK1172: The provided type library '{0}' does not exist.</source>
<target state="translated">NETSDK1172: La biblioteca de tipos "{0}" proporcionada no existe.</target>
<note>{StrBegin="NETSDK1172: "}</note>
</trans-unit>
<trans-unit id="UnableToFindResolvedPath">
<source>NETSDK1016: Unable to find resolved path for '{0}'.</source>
<target state="translated">NETSDK1016: No se encuentra la ruta de acceso resuelta para "{0}".</target>
<note>{StrBegin="NETSDK1016: "}</note>
</trans-unit>
<trans-unit id="UnableToUsePackageAssetsCache_Info">
<source>Unable to use package assets cache due to I/O error. This can occur when the same project is built more than once in parallel. Performance may be degraded, but the build result will not be impacted.</source>
<target state="translated">No se puede usar la memoria cach de recursos del paquete debido a un error de E/S. Esto puede ocurrir cuando un mismo proyecto se compila ms de una vez en paralelo. Puede que se reduzca el rendimiento, pero no afectar al resultado de la compilacin.</target>
<note />
</trans-unit>
<trans-unit id="UnexpectedFileType">
<source>NETSDK1012: Unexpected file type for '{0}'. Type is both '{1}' and '{2}'.</source>
<target state="translated">NETSDK1012: Tipo de archivo no esperado para "{0}". El tipo es tanto "{1}" como "{2}".</target>
<note>{StrBegin="NETSDK1012: "}</note>
</trans-unit>
<trans-unit id="UnknownFrameworkReference">
<source>NETSDK1073: The FrameworkReference '{0}' was not recognized</source>
<target state="translated">NETSDK1073: No se reconoci el valor de FrameworkReference "{0}"</target>
<note>{StrBegin="NETSDK1073: "}</note>
</trans-unit>
<trans-unit id="UnknownFrameworkReference_MauiEssentials">
<source>NETSDK1186: This project depends on Maui Essentials through a project or NuGet package reference, but doesn't declare that dependency explicitly. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary).</source>
<target state="translated">NETSDK1186: Este proyecto depende de MauiEssentials a travs de un proyecto o una referencia de paquete NuGet, pero no declara esa dependencia de forma explcita. Para compilar este proyecto, debe establecer la propiedad UseMauiEssentials en true (e instalar la carga de trabajo de Maui, si es necesario).</target>
<note>{StrBegin="NETSDK1186: "}</note>
</trans-unit>
<trans-unit id="UnnecessaryWindowsDesktopSDK">
<source>NETSDK1137: It is no longer necessary to use the Microsoft.NET.Sdk.WindowsDesktop SDK. Consider changing the Sdk attribute of the root Project element to 'Microsoft.NET.Sdk'.</source>
<target state="translated">NETSDK1137: Ya no es necesario usar el SDK de Microsoft.NET.Sdk.WindowsDesktop. Puede cambiar el atributo Sdk del elemento del proyecto raz a "Microsoft.NET.Sdk".</target>
<note>{StrBegin="NETSDK1137: "}</note>
</trans-unit>
<trans-unit id="UnrecognizedPreprocessorToken">
<source>NETSDK1009: Unrecognized preprocessor token '{0}' in '{1}'.</source>
<target state="translated">NETSDK1009: Token de preprocesador no reconocido "{0}" en "{1}".</target>
<note>{StrBegin="NETSDK1009: "}</note>
</trans-unit>
<trans-unit id="UnresolvedTargetingPack">
<source>NETSDK1081: The targeting pack for {0} was not found. You may be able to resolve this by running a NuGet restore on the project.</source>
<target state="translated">NETSDK1081: No se encuentr el paquete de destino de {0}. Para esolver este problema, puede ejecutar una restauracin de NuGet en el proyecto.</target>
<note>{StrBegin="NETSDK1081: "}</note>
</trans-unit>
<trans-unit id="UnsupportedFramework">
<source>NETSDK1019: {0} is an unsupported framework.</source>
<target state="translated">NETSDK1019: {0} es una plataforma no compatible.</target>
<note>{StrBegin="NETSDK1019: "}</note>
</trans-unit>
<trans-unit id="UnsupportedRuntimeIdentifier">
<source>NETSDK1056: Project is targeting runtime '{0}' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.</source>
<target state="translated">NETSDK1056: El proyecto se dirige al tiempo de ejecucin "{0}" pero no resolvi ningn paquete especfico del tiempo de ejecucin. Es posible que este tiempo de ejecucin no sea compatible con la plataforma de destino.</target>
<note>{StrBegin="NETSDK1056: "}</note>
</trans-unit>
<trans-unit id="UnsupportedSDKVersionForNetStandard20">
<source>NETSDK1050: The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please install version 2.0 or higher of the .NET Core SDK.</source>
<target state="translated">NETSDK1050: En la versin de Microsoft.NET.Sdk que utiliza este proyecto no se admiten referencias a bibliotecas cuyo destino sea .NET Standard 1.5 o posterior. Instale la versin 2.0 o posterior del SDK de .NET Core.</target>
<note>{StrBegin="NETSDK1050: "}</note>
</trans-unit>
<trans-unit id="UnsupportedTargetFrameworkVersion">
<source>NETSDK1045: The current .NET SDK does not support targeting {0} {1}. Either target {0} {2} or lower, or use a version of the .NET SDK that supports {0} {1}. Download the .NET SDK from path_to_url
<target state="translated">NETSDK1045: El SDK de .NET actual no admite el destino {0} {1}. Use el destino {0} {2} u otro inferior, o bien una versin del SDK de .NET que admita {0} {1}. Descargue el SDK de .NET de path_to_url
<note>{StrBegin="NETSDK1045: "}</note>
</trans-unit>
<trans-unit id="UnsupportedTargetPlatformIdentifier">
<source>NETSDK1139: The target platform identifier {0} was not recognized.</source>
<target state="translated">NETSDK1139: No se reconoci el identificador de la plataforma de destino {0}.</target>
<note>{StrBegin="NETSDK1139: "}</note>
</trans-unit>
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
<target state="translated">NETSDK1200: Si UseArtifactsPath se establece en true y ArtifactsPath no est establecido, debe haber un archivo Directory.Build.props para determinar dnde debe ubicarse la carpeta de artefactos.</target>
<note>{StrBegin="NETSDK1200: "}</note>
</trans-unit>
<trans-unit id="UnsupportedVisualStudioVersion">
<source>NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher</source>
<target state="translated">NETSDK1209: La versin actual de Visual Studio no admite {0} {1} de destino. Use el destino {0} {2} o uno inferior, o use la versin {3} o una superior de Visual Studio.</target>
<note>{StrBegin="NETSDK1209: "}</note>
</trans-unit>
<trans-unit id="UnsupportedTargetPlatformIdentifierWithWorkloadsDisabled">
<source>NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.</source>
<target state="translated">NETSDK1208: no se ha reconocido el identificador de la plataforma de destino {0}. Esto se debe a que MSBuildEnableWorkloadResolver est establecido en false, lo que deshabilita las cargas de trabajo del SDK de .NET necesarias para este identificador. Anule esta variable de entorno o propiedad de MSBuild para habilitar las cargas de trabajo.</target>
<note>{StrBegin="NETSDK1208: "}</note>
</trans-unit>
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
<target state="translated">NETSDK1107: Se requiere Microsoft.NET.Sdk.WindowsDesktop para compilar las aplicaciones de escritorio de Windows. El SDK actual no admite "UseWpf" ni "UseWindowsForms".</target>
<note>{StrBegin="NETSDK1107: "}</note>
</trans-unit>
<trans-unit id="UsingPreviewSdk">
<source>NETSDK1057: You are using a preview version of .NET. See: path_to_url
<target state="translated">NETSDK1057: Est usando una versin preliminar de .NET. Visite: path_to_url
<note>{StrBegin="NETSDK1057: "}</note>
</trans-unit>
<trans-unit id="WinMDObjNotSupportedOnTargetFramework">
<source>NETSDK1131: Producing a managed Windows Metadata component with WinMDExp is not supported when targeting {0}.</source>
<target state="translated">NETSDK1131: No se admite la generacin de un componente administrado de metadatos de Windows con WinMDExp cuando el destino es {0}.</target>
<note>{StrBegin="NETSDK1131: "}</note>
</trans-unit>
<trans-unit id="WinMDReferenceNotSupportedOnTargetFramework">
<source>NETSDK1130: {1} cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see path_to_url
<target state="translated">NETSDK1130: no puede hacer referencia a {1}. No se admite la referencia a un componente de metadatos de Windows directamente porque el destino .NET 5 o una versin posterior no se admiten. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1130: "}</note>
</trans-unit>
<trans-unit id="WinMDTransitiveReferenceNotSupported">
<source>NETSDK1149: {0} cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see path_to_url
<target state="translated">NETSDK1149: no se puede hacer referencia a {0} porque usa compatibilidad integrada para WinRT, que ya no se admite en .NET 5 y versiones posteriores. Se necesita una versin actualizada del componente compatible con .NET 5. Para obtener ms informacin, consulte path_to_url
<note>{StrBegin="NETSDK1149: "}</note>
</trans-unit>
<trans-unit id="WindowsDesktopFrameworkRequiresUseWpfOrUseWindowsForms">
<source>NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop requires 'UseWpf' or 'UseWindowsForms' to be set to 'true'</source>
<target state="translated">NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop requiere que "UseWpf" o "UseWindowsForms" se establezca en "true"</target>
<note>{StrBegin="NETSDK1106: "}</note>
</trans-unit>
<trans-unit id="WindowsDesktopFrameworkRequiresVersion30">
<source>NETSDK1105: Windows desktop applications are only supported on .NET Core 3.0 or higher.</source>
<target state="translated">NETSDK1105: Las aplicaciones de escritorio de Windows solo se admiten en .NET Core 3.0 o versiones posteriores.</target>
<note>{StrBegin="NETSDK1105: "}</note>
</trans-unit>
<trans-unit id="WindowsDesktopFrameworkRequiresWindows">
<source>NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true.</source>
<target state="translated">NETSDK1100: Para compilar un proyecto destinado a Windows en este sistema operativo, establezca la propiedad EnableWindowsTargeting en true.</target>
<note>{StrBegin="NETSDK1100: "}</note>
</trans-unit>
<trans-unit id="WindowsDesktopTargetPlatformMustBeWindows">
<source>NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.</source>
<target state="translated">NETSDK1136: La plataforma de destino debe establecerse en Windows (normalmente, se incluye "-windows" en la propiedad TargetFramework) cuando se use WindowsForms o WPF, o bien cuando se haga referencia a proyectos o paquetes que lo usen.</target>
<note>{StrBegin="NETSDK1136: "}</note>
</trans-unit>
<trans-unit id="WindowsSDKVersionConflicts">
<source>NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll. Please update to a newer .NET SDK in order to reference this assembly.</source>
<target state="translated">NETSDK1148: Un ensamblado al que se hace referencia se compil con una versin ms reciente de Microsoft.Windows.SDK.NET.dll. Actualice a un SDK de .NET ms reciente para hacer referencia a este ensamblado.</target>
<note>{StrBegin="NETSDK1148: "}</note>
</trans-unit>
<trans-unit id="WorkloadIsEol">
<source>NETSDK1202: The workload '{0}' is out of support and will not receive security updates in the future. Please refer to {1} for more information about the support policy.</source>
<target state="translated">NETSDK1202: La carga de trabajo "{0}" est fuera de soporte y no recibir actualizaciones de seguridad en el futuro. Consulte {1} ms informacin sobre la directiva de soporte.</target>
<note>{StrBegin="NETSDK1202: "}</note>
</trans-unit>
<trans-unit id="WorkloadNotAvailable">
<source>NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: {0}
You may need to build the project on another operating system or architecture, or update the .NET SDK.</source>
<target state="translated">NETSDK1178: El proyecto depende de los siguientes paquetes de cargas de trabajo que no existen en ninguna de las cargas de trabajo disponibles en esta instalacin: {0}
Puede que necesite compilar el proyecto en otro sistema operativo o arquitectura, o actualizar el SDK de .NET.</target>
<note>{StrBegin="NETSDK1178: "}</note>
</trans-unit>
<trans-unit id="WorkloadNotInstalled">
<source>NETSDK1147: To build this project, the following workloads must be installed: {0}
To install these workloads, run the following command: dotnet workload restore</source>
<target state="translated">NETSDK1147: para compilar este proyecto, deben estar instaladas las siguientes cargas de trabajo: {0}
Para instalar estas cargas de trabajo, ejecute el comando siguiente: dotnet workload restore</target>
<note>{StrBegin="NETSDK1147: "} LOCALIZATION: Do not localize "dotnet workload restore"</note>
</trans-unit>
</body>
</file>
</xliff>
```
|
Cambridgeshire County Cricket Club was established on 6 June 1891; prior to that a county club had existed before, and had occasionally appeared in first-class cricket. It has since played minor counties cricket from 1895 and played List A cricket from 1964 to 2004, using a different number of home grounds during that time. Their first home minor counties fixture in 1895 was against Norfolk at Fenner's, Cambridge, while their first home List A match came 69 years later, against Essex in the 1964 Gillette Cup at Spicer's Sports Ground, Sawston.
The 21 grounds that Cambridgeshire have used for home matches since 1895 are listed below, with statistics complete through to the end of the 2014 season.
Grounds
List A
Below is a complete list of grounds used by Cambridgeshire County Cricket Club when it was permitted to play List A matches. These grounds have also held Minor Counties Championship and MCCA Knockout Trophy matches.
Minor Counties
Below is a complete list of grounds used by Cambridgeshire County Cricket Club in Minor Counties Championship and MCCA Knockout Trophy matches.
Notes
References
Cambridgeshire County Cricket Club
Cricket grounds in Cambridgeshire
Cambridgeshire
|
Axel Teodor Danielson (23March 1867 – 21June 1949), was a Swedish editor-in-chief.
Career
Danielson was born in Älghult, Kronoberg County to parents Adolf Danielson and Emelie (née Löfgren). He was a typesetter apprentice in Visby 1880–1881 and 1884–1886, as well as in Stockholm 1881–1884. Danielson was typographer and reporter on a Swedish newspaper in United States 1887–1892 and was an office clerk at the office of the Gotlands Allehanda newspaper 1892–1893. Danielson took the maturity exam in 1895 and was a medical student the same year.
He was a student in Uppsala 1896–1898 and the editor and publisher of Veckoblad för populär vetenskap (The Weekly Newspaper for Popular Science) from October 1897 to January 1898. Danielson was a contributor to Stockholms-Tidningen between April 1898 and March 1899 and to Gotlands Allehanda from March 1899. He was the executive director of Gotlands Allehanda Tryckeri AB 1899–1937 and the editor and the legally responsible publisher of the newspaper from 1917 to 1937. Danielson was also the editor and publisher of ("Tutti Frutti, Short stories by the evening light") between September 1902 and June 1904. He was a member of the City Council 1905–1935, was the chairman of the board of the Central Library, the lecture association, workers association and the crafts association. Danielson was also the vice chairman of the day care center (Crèche).
Personal life
In 1908 Danielson married Hanna Lovisa Svensson (1883–1970). He was the father of Axel Torbjörn (1908–1944). Danielson died in 1949 and was buried at the Eastern Cemetery in Visby.
Awards and decorations
Knight of the Order of Vasa
References
1867 births
1949 deaths
Swedish newspaper editors
People from Uppvidinge Municipality
Knights of the Order of Vasa
|
The 2015–16 Tunisian Ligue Professionnelle 1 (Tunisian Professional League) season was the 90th season of top-tier football in Tunisia. The competition began on 12 September 2015 and ended on 12 June 2016. The defending champions from the previous season were Club Africain.
Teams
A total of 16 teams contested the league, including 13 sides from the 2014–15 season and three promoted from the 2014–15 Ligue 2. Union de Ben Guerdane was the first to obtain promotion, followed by Avenir de Kasserine and finally Olympique Sidi Bouzid. The three teams replaced Union Monastirienne, Avenir de Gabès and Association de Djerba who were relegated to 2015–16 Tunisian Ligue 2. Club Africain were the defending champions from the 2014–15 season.
Stadiums and locations
Results
League table
Result table
Leaders
Top goalscorers
See also
2015–16 Tunisian Ligue Professionnelle 2
2015–16 Tunisian Ligue Professionnelle 3
2015–16 Tunisian Cup
References
External links
2015–16 Ligue 1 on RSSSF.com
Fédération Tunisienne de Football
Tunisian Ligue Professionnelle 1 on TheGoalden
1
Tuni
Tunisian Ligue Professionnelle 1 seasons
|
"Arcadia" is a song by Dutch DJs Hardwell and Joey Dale. It features singer Luciana. It is the first single from Hardwell's 2015 debut studio album United We Are.
Track listing
Charts
References
2015 songs
2015 singles
Hardwell songs
Songs written by Nick Clow
Songs written by Luciana Caporaso
Songs written by Hardwell
|
S. Selvamohandas Pandian is an Indian politician. He was elected to Tamil Nadu legislative assembly from Tenkasi constituency in 2016 as an AIADMK candidate.
References
Living people
Year of birth missing (living people)
Tamil Nadu MLAs 2016–2021
All India Anna Dravida Munnetra Kazhagam politicians
|
```shell
#!/bin/bash
# auth:kaliarch
# version:v1.0
# func:maven 3.0.5/3.3.9/3.5.4
#
. /etc/init.d/functions
[ $(id -u) != "0" ] && echo "Error: You must be root to run this script" && exit 1
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
download_path=/tmp/tmpdir/
install_log_name=install_maven.log
env_file=/etc/profile.d/maven.sh
install_log_path=/var/log/appinstall/
install_path=/usr/local/
#software_config_file=${install_path}filebeat/filebeat.yml
clear
echo "##########################################"
echo "# #"
echo "# maven 3.0.5/3.3.9/3.5.4 #"
echo "# #"
echo "##########################################"
echo "1: Install maven 3.0.5"
echo "2: Install maven 3.2.9"
echo "3: Install maven 3.5.4"
echo "4: EXIT"
#
read -p "Please input your choice:" softversion
if [ "${softversion}" == "1" ];then
URL="path_to_url"
elif [ "${softversion}" == "2" ];then
URL="path_to_url"
elif [ "${softversion}" == "3" ];then
URL="path_to_url"
elif [ "${softversion}" == "4" ];then
echo "you choce channel!"
exit 1;
else
echo "input Error! Place input{1|2|3|4}"
exit 0;
fi
# ,,,
output_msg() {
for msg in $*;do
action $msg /bin/true
done
}
# , $1 ,yum
check_yum_command() {
output_msg ":$1"
hash $1 >/dev/null 2>&1
if [ $? -eq 0 ];then
echo "`date +%F' '%H:%M:%S` check command $1 ">>${install_log_path}${install_log_name} && return 0
else
yum -y install $2 >/dev/null 2>&1
# hash $Command || { echo "`date +%F' '%H:%M:%S` $2 is installed fail">>${install_log_path}${install_log_name} ; exit 1 }
fi
}
# ,,
check_dir() {
output_msg ""
for dirname in $*;do
[ -d $dirname ] || mkdir -p $dirname >/dev/null 2>&1
echo "`date +%F' '%H:%M:%S` $dirname check success!" >> ${install_log_path}${install_log_name}
done
}
# ,url
download_file() {
output_msg ""
mkdir -p $download_path
for file in $*;do
wget $file -c -P $download_path &> /dev/null
if [ $? -eq 0 ];then
echo "`date +%F' '%H:%M:%S` $file download success!">>${install_log_path}${install_log_name}
else
echo "`date +%F' '%H:%M:%s` $file download fail!">>${install_log_path}${install_log_name} && exit 1
fi
done
}
# ,,,
extract_file() {
output_msg ""
for file in $*;do
if [ "${file##*.}" == "gz" ];then
tar -zxf $file -C $install_path && echo "`date +%F' '%H:%M:%S` $file extrac success!,path is $install_path">>${install_log_path}${install_log_name}
elif [ "${file##*.}" == "zip" ];then
unzip -q $file -d $install_path && echo "`date +%F' '%H:%M:%S` $file extrac success!,path is $install_path">>${install_log_path}${install_log_name}
else
echo "`date +%F' '%H:%M:%S` $file type error, extrac fail!">>${install_log_path}${install_log_name} && exit 1
fi
done
}
# ,
config_env() {
output_msg ""
echo "export PATH=\$PATH:$1" >${env_file}
source ${env_file} && echo "`date +%F' '%H:%M:%S` !">> ${install_log_path}${install_log_name}
}
main() {
check_dir $install_log_path $install_path
check_yum_command wget wget
download_file $URL
software_name=$(echo $URL|awk -F'/' '{print $NF}'|awk -F'-bin.tar.gz' '{print $1}')
for filename in `ls $download_path`;do
extract_file ${download_path}$filename
done
rm -fr ${download_path}
ln -s $install_path$software_name ${install_path}maven
config_env ${install_path}maven/bin
}
main
```
|
```javascript
'use strict';
require('../common');
// Minimal test for assert benchmarks. This makes sure the benchmarks aren't
// completely broken but nothing more than that.
const runBenchmark = require('../common/benchmark');
runBenchmark(
'assert',
[
'strict=1',
'len=1',
'method=',
'n=1',
'primitive=null',
'size=1',
'type=Int8Array'
]
);
```
|
```xml
/*************************************************************
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
/**
* @fileoverview Implements the a base mixin for CommonMsubsup, CommonMunderover
* and their relatives. (Since munderover can become msubsup
* when movablelimits is set, munderover needs to be able to
* do the same thing as msubsup in some cases.)
*
* @author dpvc@mathjax.org (Davide Cervone)
*/
import {AnyWrapper, WrapperConstructor, Constructor, AnyWrapperClass} from '../Wrapper.js';
import {CommonMo} from './mo.js';
import {CommonMunderover} from './munderover.js';
import {TEXCLASS} from '../../../core/MmlTree/MmlNode.js';
import {MmlMsubsup} from '../../../core/MmlTree/MmlNodes/msubsup.js';
import {MmlMo} from '../../../core/MmlTree/MmlNodes/mo.js';
import {BBox} from '../../../util/BBox.js';
import {DIRECTION} from '../FontData.js';
/*****************************************************************/
/**
* The CommonScriptbase interface
*
* @template W The child-node Wrapper class
*/
export interface CommonScriptbase<W extends AnyWrapper> extends AnyWrapper {
/**
* The core mi or mo of the base (or the base itself if there isn't one)
*/
readonly baseCore: W;
/**
* The base element's wrapper
*/
readonly baseChild: W;
/**
* The relative scaling of the base compared to the munderover/msubsup
*/
readonly baseScale: number;
/**
* The italic correction of the base (if any)
*/
readonly baseIc: number;
/**
* True if base italic correction should be removed (msub and msubsup or mathaccents)
*/
readonly baseRemoveIc: boolean;
/**
* True if the base is a single character
*/
readonly baseIsChar: boolean;
/**
* True if the base has an accent under or over
*/
readonly baseHasAccentOver: boolean;
readonly baseHasAccentUnder: boolean;
/**
* True if this is an overline or underline
*/
readonly isLineAbove: boolean;
readonly isLineBelow: boolean;
/**
* True if this is an msup with script that is a math accent
*/
readonly isMathAccent: boolean;
/**
* The script element's wrapper (overridden in subclasses)
*/
readonly scriptChild: W;
/***************************************************************************/
/*
* Methods for information about the core element for the base
*/
/**
* @return {W} The wrapper for the base core mi or mo (or whatever)
*/
getBaseCore(): W;
/**
* @return {W} The base fence item or null
*/
getSemanticBase(): W;
/**
* Recursively retrieves an element for a given fencepointer.
*
* @param {W} fence The potential fence.
* @param {string} id The fencepointer id.
* @return {W} The original fence the scripts belong to.
*/
getBaseFence(fence: W, id: string): W;
/**
* @return {number} The scaling factor for the base core relative to the munderover/msubsup
*/
getBaseScale(): number;
/**
* The base's italic correction (properly scaled)
*/
getBaseIc(): number;
/**
* An adjusted italic correction (for slightly better results)
*/
getAdjustedIc(): number;
/**
* @return {boolean} True if the base is an mi, mn, or mo (not a largeop) consisting of
* a single unstretched character
*/
isCharBase(): boolean;
/**
* Determine if the under- and overscripts are under- or overlines.
*/
checkLineAccents(): void;
/**
* @param {W} script The script node to check for being a line
*/
isLineAccent(script: W): boolean;
/***************************************************************************/
/*
* Methods for sub-sup nodes
*/
/**
* @return {number} The base child's width without the base italic correction (if not needed)
*/
getBaseWidth(): number;
/**
* Get the shift for the script (implemented in subclasses)
*
* @return {number[]} The horizontal and vertical offsets for the script
*/
getOffset(): number[];
/**
* @param {number} n The value to use if the base isn't a (non-large-op, unstretched) char
* @return {number} Either n or 0
*/
baseCharZero(n: number): number;
/**
* Get the shift for a subscript (TeXBook Appendix G 18ab)
*
* @return {number} The vertical offset for the script
*/
getV(): number;
/**
* Get the shift for a superscript (TeXBook Appendix G 18acd)
*
* @return {number} The vertical offset for the script
*/
getU(): number;
/***************************************************************************/
/*
* Methods for under-over nodes
*/
/**
* @return {boolean} True if the base has movablelimits (needed by munderover)
*/
hasMovableLimits(): boolean;
/**
* Get the separation and offset for overscripts (TeXBoox Appendix G 13, 13a)
*
* @param {BBox} basebox The bounding box of the base
* @param {BBox} overbox The bounding box of the overscript
* @return {number[]} The separation between their boxes, and the offset of the overscript
*/
getOverKU(basebox: BBox, overbox: BBox): number[];
/**
* Get the separation and offset for underscripts (TeXBoox Appendix G 13, 13a)
*
* @param {BBox} basebox The bounding box of the base
* @param {BBox} underbox The bounding box of the underscript
* @return {number[]} The separation between their boxes, and the offset of the underscript
*/
getUnderKV(basebox: BBox, underbox: BBox): number[];
/**
* @param {BBox[]} boxes The bounding boxes whose offsets are to be computed
* @param {number[]=} delta The initial x offsets of the boxes
* @return {number[]} The actual offsets needed to center the boxes in the stack
*/
getDeltaW(boxes: BBox[], delta?: number[]): number[];
/**
* @param {boolean=} noskew Whether to ignore the skew amount
* @return {number} The offset for under and over
*/
getDelta(noskew?: boolean): number;
/**
* Handle horizontal stretching of children to match greatest width
* of all children
*/
stretchChildren(): void;
}
export interface CommonScriptbaseClass extends AnyWrapperClass {
/**
* Set to true for munderover/munder/mover/msup (Appendix G 13)
*/
useIC: boolean;
}
/**
* Shorthand for the CommonScriptbase constructor
*
* @template W The child-node Wrapper class
*/
export type ScriptbaseConstructor<W extends AnyWrapper> = Constructor<CommonScriptbase<W>>;
/*****************************************************************/
/**
* A base class for msup/msub/msubsup and munder/mover/munderover
* wrapper mixin implementations
*
* @template W The child-node Wrapper class
* @template T The Wrapper class constructor type
*/
export function CommonScriptbaseMixin<
W extends AnyWrapper,
T extends WrapperConstructor
>(Base: T): ScriptbaseConstructor<W> & T {
return class extends Base {
/**
* Set to false for msubsup/msub (Appendix G 13)
*/
public static useIC: boolean = true;
/**
* The core mi or mo of the base (or the base itself if there isn't one)
*/
public baseCore: W;
/**
* The base element's wrapper
*/
public baseScale: number = 1;
/**
* The relative scaling of the base compared to the munderover/msubsup
*/
public baseIc: number = 0;
/**
* True if base italic correction should be removed (msub and msubsup or mathaccents)
*/
public baseRemoveIc: boolean = false;
/**
* True if the base is a single character
*/
public baseIsChar: boolean = false;
/**
* True if the base has an accent under or over
*/
public baseHasAccentOver: boolean = null;
public baseHasAccentUnder: boolean = null;
/**
* True if this is an overline or underline
*/
public isLineAbove: boolean = false;
public isLineBelow: boolean = false;
/**
* True if this is an msup with script that is a math accent
*/
public isMathAccent: boolean = false;
/**
* @return {W} The base element's wrapper
*/
public get baseChild(): W {
return this.childNodes[(this.node as MmlMsubsup).base];
}
/**
* @return {W} The script element's wrapper (overridden in subclasses)
*/
public get scriptChild(): W {
return this.childNodes[1];
}
/**
* @override
*/
constructor(...args: any[]) {
super(...args);
//
// Find the base core
//
const core = this.baseCore = this.getBaseCore();
if (!core) return;
//
// Get information about the base element
//
this.setBaseAccentsFor(core);
this.baseScale = this.getBaseScale();
this.baseIc = this.getBaseIc();
this.baseIsChar = this.isCharBase();
//
// Determine if we are setting a mathaccent
//
this.isMathAccent = this.baseIsChar &&
(this.scriptChild && !!this.scriptChild.coreMO().node.getProperty('mathaccent')) as boolean;
//
// Check for overline/underline accents
//
this.checkLineAccents();
//
// Check if the base is a mi or mo that needs italic correction removed
//
this.baseRemoveIc = !this.isLineAbove && !this.isLineBelow &&
(!(this.constructor as CommonScriptbaseClass).useIC || this.isMathAccent);
}
/***************************************************************************/
/*
* Methods for information about the core element for the base
*/
/**
* @return {W} The wrapper for the base core mi or mo (or whatever)
*/
public getBaseCore(): W {
let core = this.getSemanticBase() || this.childNodes[0];
while (core &&
((core.childNodes.length === 1 &&
(core.node.isKind('mrow') ||
(core.node.isKind('TeXAtom') && core.node.texClass !== TEXCLASS.VCENTER) ||
core.node.isKind('mstyle') || core.node.isKind('mpadded') ||
core.node.isKind('mphantom') || core.node.isKind('semantics'))) ||
(core.node.isKind('munderover') && core.isMathAccent))) {
this.setBaseAccentsFor(core);
core = core.childNodes[0];
}
if (!core) {
this.baseHasAccentOver = this.baseHasAccentUnder = false;
}
return core || this.childNodes[0];
}
/**
* @param {W} core The element to check for accents
*/
public setBaseAccentsFor(core: W) {
if (core.node.isKind('munderover')) {
if (this.baseHasAccentOver === null) {
this.baseHasAccentOver = !!core.node.attributes.get('accent');
}
if (this.baseHasAccentUnder === null) {
this.baseHasAccentUnder = !!core.node.attributes.get('accentunder');
}
}
}
/**
* @return {W} The base fence item or null
*/
public getSemanticBase(): W {
let fence = this.node.attributes.getExplicit('data-semantic-fencepointer') as string;
return this.getBaseFence(this.baseChild, fence);
}
/**
* Recursively retrieves an element for a given fencepointer.
*
* @param {W} fence The potential fence.
* @param {string} id The fencepointer id.
* @return {W} The original fence the scripts belong to.
*/
public getBaseFence(fence: W, id: string): W {
if (!fence || !fence.node.attributes || !id) {
return null;
}
if (fence.node.attributes.getExplicit('data-semantic-id') === id) {
return fence;
}
for (const child of fence.childNodes) {
const result = this.getBaseFence(child, id);
if (result) {
return result;
}
}
return null;
}
/**
* @return {number} The scaling factor for the base core relative to the munderover/msubsup
*/
public getBaseScale(): number {
let child = this.baseCore as any;
let scale = 1;
while (child && child !== this) {
const bbox = child.getOuterBBox();
scale *= bbox.rscale;
child = child.parent;
}
return scale;
}
/**
* The base's italic correction (properly scaled)
*/
public getBaseIc(): number {
return this.baseCore.getOuterBBox().ic * this.baseScale;
}
/**
* An adjusted italic correction (for slightly better results)
*/
public getAdjustedIc(): number {
const bbox = this.baseCore.getOuterBBox();
return (bbox.ic ? 1.05 * bbox.ic + .05 : 0) * this.baseScale;
}
/**
* @return {boolean} True if the base is an mi, mn, or mo consisting of a single character
*/
public isCharBase(): boolean {
let base = this.baseCore;
return (((base.node.isKind('mo') && (base as any).size === null) ||
base.node.isKind('mi') || base.node.isKind('mn')) &&
base.bbox.rscale === 1 && Array.from(base.getText()).length === 1);
}
/**
* Determine if the under- and overscripts are under- or overlines.
*/
public checkLineAccents() {
if (!this.node.isKind('munderover')) return;
if (this.node.isKind('mover')) {
this.isLineAbove = this.isLineAccent(this.scriptChild);
} else if (this.node.isKind('munder')) {
this.isLineBelow = this.isLineAccent(this.scriptChild);
} else {
const mml = this as unknown as CommonMunderover<W>;
this.isLineAbove = this.isLineAccent(mml.overChild);
this.isLineBelow = this.isLineAccent(mml.underChild);
}
}
/**
* @param {W} script The script node to check for being a line
* @return {boolean} True if the script is U+2015
*/
public isLineAccent(script: W): boolean {
const node = script.coreMO().node;
return (node.isToken && (node as MmlMo).getText() === '\u2015');
}
/***************************************************************************/
/*
* Methods for sub-sup nodes
*/
/**
* @return {number} The base child's width without the base italic correction (if not needed)
*/
public getBaseWidth(): number {
const bbox = this.baseChild.getOuterBBox();
return bbox.w * bbox.rscale - (this.baseRemoveIc ? this.baseIc : 0) + this.font.params.extra_ic;
}
/**
* This gives the common bbox for msub and msup. It is overridden
* for all the others (msubsup, munder, mover, munderover).
*
* @override
*/
public computeBBox(bbox: BBox, recompute: boolean = false) {
const w = this.getBaseWidth();
const [x, y] = this.getOffset();
bbox.append(this.baseChild.getOuterBBox());
bbox.combine(this.scriptChild.getOuterBBox(), w + x, y);
bbox.w += this.font.params.scriptspace;
bbox.clean();
this.setChildPWidths(recompute);
}
/**
* Get the shift for the script (implemented in subclasses)
*
* @return {[number, number]} The horizontal and vertical offsets for the script
*/
public getOffset(): [number, number] {
return [0, 0];
}
/**
* @param {number} n The value to use if the base isn't a (non-large-op, unstretched) char
* @return {number} Either n or 0
*/
public baseCharZero(n: number): number {
const largeop = !!this.baseCore.node.attributes.get('largeop');
const scale = this.baseScale;
return (this.baseIsChar && !largeop && scale === 1 ? 0 : n);
}
/**
* Get the shift for a subscript (TeXBook Appendix G 18ab)
*
* @return {number} The vertical offset for the script
*/
public getV(): number {
const bbox = this.baseCore.getOuterBBox();
const sbox = this.scriptChild.getOuterBBox();
const tex = this.font.params;
const subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub1);
return Math.max(
this.baseCharZero(bbox.d * this.baseScale + tex.sub_drop * sbox.rscale),
subscriptshift,
sbox.h * sbox.rscale - (4 / 5) * tex.x_height
);
}
/**
* Get the shift for a superscript (TeXBook Appendix G 18acd)
*
* @return {number} The vertical offset for the script
*/
public getU(): number {
const bbox = this.baseCore.getOuterBBox();
const sbox = this.scriptChild.getOuterBBox();
const tex = this.font.params;
const attr = this.node.attributes.getList('displaystyle', 'superscriptshift');
const prime = this.node.getProperty('texprimestyle');
const p = prime ? tex.sup3 : (attr.displaystyle ? tex.sup1 : tex.sup2);
const superscriptshift = this.length2em(attr.superscriptshift, p);
return Math.max(
this.baseCharZero(bbox.h * this.baseScale - tex.sup_drop * sbox.rscale),
superscriptshift,
sbox.d * sbox.rscale + (1 / 4) * tex.x_height
);
}
/***************************************************************************/
/*
* Methods for under-over nodes
*/
/**
* @return {boolean} True if the base has movablelimits (needed by munderover)
*/
public hasMovableLimits(): boolean {
const display = this.node.attributes.get('displaystyle');
const mo = this.baseChild.coreMO().node;
return (!display && !!mo.attributes.get('movablelimits'));
}
/**
* Get the separation and offset for overscripts (TeXBoox Appendix G 13, 13a)
*
* @param {BBox} basebox The bounding box of the base
* @param {BBox} overbox The bounding box of the overscript
* @return {[number, number]} The separation between their boxes, and the offset of the overscript
*/
public getOverKU(basebox: BBox, overbox: BBox): [number, number] {
const accent = this.node.attributes.get('accent') as boolean;
const tex = this.font.params;
const d = overbox.d * overbox.rscale;
const t = tex.rule_thickness * tex.separation_factor;
const delta = (this.baseHasAccentOver ? t : 0);
const T = (this.isLineAbove ? 3 * tex.rule_thickness : t);
const k = (accent ? T : Math.max(tex.big_op_spacing1, tex.big_op_spacing3 - Math.max(0, d))) - delta;
return [k, basebox.h * basebox.rscale + k + d];
}
/**
* Get the separation and offset for underscripts (TeXBoox Appendix G 13, 13a)
*
* @param {BBox} basebox The bounding box of the base
* @param {BBox} underbox The bounding box of the underscript
* @return {[number, number]} The separation between their boxes, and the offset of the underscript
*/
public getUnderKV(basebox: BBox, underbox: BBox): [number, number] {
const accent = this.node.attributes.get('accentunder') as boolean;
const tex = this.font.params;
const h = underbox.h * underbox.rscale;
const t = tex.rule_thickness * tex.separation_factor;
const delta = (this.baseHasAccentUnder ? t : 0);
const T = (this.isLineBelow ? 3 * tex.rule_thickness : t);
const k = (accent ? T : Math.max(tex.big_op_spacing2, tex.big_op_spacing4 - h)) - delta;
return [k, -(basebox.d * basebox.rscale + k + h)];
}
/**
* @param {BBox[]} boxes The bounding boxes whose offsets are to be computed
* @param {number[]=} delta The initial x offsets of the boxes
* @return {number[]} The actual offsets needed to center the boxes in the stack
*/
public getDeltaW(boxes: BBox[], delta: number[] = [0, 0, 0]): number[] {
const align = this.node.attributes.get('align');
const widths = boxes.map(box => box.w * box.rscale);
widths[0] -= (this.baseRemoveIc && !this.baseCore.node.attributes.get('largeop') ? this.baseIc : 0);
const w = Math.max(...widths);
const dw = [] as number[];
let m = 0;
for (const i of widths.keys()) {
dw[i] = (align === 'center' ? (w - widths[i]) / 2 :
align === 'right' ? w - widths[i] : 0) + delta[i];
if (dw[i] < m) {
m = -dw[i];
}
}
if (m) {
for (const i of dw.keys()) {
dw[i] += m;
}
}
[1, 2].map(i => dw[i] += (boxes[i] ? boxes[i].dx * boxes[0].scale : 0));
return dw;
}
/**
* @param {boolean=} noskew Whether to ignore the skew amount
* @return {number} The offset for under and over
*/
public getDelta(noskew: boolean = false): number {
const accent = this.node.attributes.get('accent');
const {sk, ic} = this.baseCore.getOuterBBox();
return ((accent && !noskew ? sk : 0) + this.font.skewIcFactor * ic) * this.baseScale;
}
/**
* Handle horizontal stretching of children to match greatest width
* of all children
*/
public stretchChildren() {
let stretchy: AnyWrapper[] = [];
//
// Locate and count the stretchy children
//
for (const child of this.childNodes) {
if (child.canStretch(DIRECTION.Horizontal)) {
stretchy.push(child);
}
}
let count = stretchy.length;
let nodeCount = this.childNodes.length;
if (count && nodeCount > 1) {
let W = 0;
//
// If all the children are stretchy, find the largest one,
// otherwise, find the width of the non-stretchy children.
//
let all = (count > 1 && count === nodeCount);
for (const child of this.childNodes) {
const noStretch = (child.stretch.dir === DIRECTION.None);
if (all || noStretch) {
const {w, rscale} = child.getOuterBBox(noStretch);
if (w * rscale > W) W = w * rscale;
}
}
//
// Stretch the stretchable children
//
for (const child of stretchy) {
(child.coreMO() as CommonMo).getStretchedVariant([W / child.bbox.rscale]);
}
}
}
};
}
```
|
```cython
from lxml.includes.tree cimport xmlDoc, xmlNode
cdef extern from "libxml/xinclude.h":
ctypedef struct xmlXIncludeCtxt
cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
# libxml2 >= 2.7.4
cdef int xmlXIncludeProcessTreeFlagsData(
xmlNode* doc, int parser_opts, void* data) nogil
cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
# libxml2 >= 2.6.27
cdef int xmlXIncludeProcessFlagsData(
xmlDoc* doc, int flags, void* data) nogil
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.graal.compiler.core.test;
import jdk.graal.compiler.graph.Node;
import jdk.graal.compiler.nodes.FixedGuardNode;
import jdk.graal.compiler.nodes.GuardNode;
import jdk.graal.compiler.nodes.StructuredGraph;
import jdk.graal.compiler.nodes.java.InstanceOfNode;
import jdk.graal.compiler.nodes.memory.MemoryKill;
import jdk.graal.compiler.nodes.memory.MultiMemoryKill;
import jdk.graal.compiler.nodes.memory.SingleMemoryKill;
import jdk.graal.compiler.nodes.spi.CoreProviders;
import jdk.graal.compiler.phases.VerifyPhase;
import jdk.vm.ci.meta.DeoptimizationReason;
import jdk.vm.ci.meta.MetaAccessProvider;
import jdk.vm.ci.meta.ResolvedJavaMethod;
import jdk.vm.ci.meta.ResolvedJavaType;
/**
* Verifies that every typecheck of a {@link MemoryKill} goes through methods also checking if the
* kill actually is a kill.
*/
public class VerifyMemoryKillCheck extends VerifyPhase<CoreProviders> {
private static final Class<?>[] FORBIDDEN_MEMORYKILL_CHECKS = {
MemoryKill.class,
SingleMemoryKill.class,
MultiMemoryKill.class
};
@Override
public boolean checkContract() {
return false;
}
@Override
protected void verify(StructuredGraph graph, CoreProviders context) {
if (graph.method() != null && graph.method().getDeclaringClass().equals(context.getMetaAccess().lookupJavaType(MemoryKill.class))) {
return;
}
final ResolvedJavaType[] bailoutType = new ResolvedJavaType[FORBIDDEN_MEMORYKILL_CHECKS.length];
for (int i = 0; i < FORBIDDEN_MEMORYKILL_CHECKS.length; i++) {
bailoutType[i] = context.getMetaAccess().lookupJavaType(FORBIDDEN_MEMORYKILL_CHECKS[i]);
}
ResolvedJavaMethod method = graph.method();
ResolvedJavaType declaringClass = method.getDeclaringClass();
if (!isTrustedInterface(declaringClass, context.getMetaAccess())) {
outer: for (InstanceOfNode io : graph.getNodes().filter(InstanceOfNode.class)) {
for (Node usage : io.usages()) {
if (usage instanceof GuardNode) {
GuardNode g = (GuardNode) usage;
if (g.getReason() == DeoptimizationReason.ClassCastException) {
continue outer;
}
} else if (usage instanceof FixedGuardNode) {
FixedGuardNode g = (FixedGuardNode) usage;
if (g.getReason() == DeoptimizationReason.ClassCastException) {
continue outer;
}
}
}
ResolvedJavaType type = io.type().getType();
for (ResolvedJavaType forbiddenType : bailoutType) {
if (forbiddenType.equals(type)) {
String name = forbiddenType.getUnqualifiedName();
// strip outer class
ResolvedJavaType enclosingType = forbiddenType.getEnclosingType();
if (enclosingType != null) {
name = name.substring(enclosingType.getUnqualifiedName().length() + "$".length());
}
throw new VerificationError("Using `op instanceof %s` is not allowed. Use `MemoryKill.is%s(op)` instead. (in %s)", name, name, method.format("%H.%n(%p)"));
}
}
}
}
}
private static boolean isTrustedInterface(ResolvedJavaType declaringClass, MetaAccessProvider metaAccess) {
for (Class<?> trustedCls : FORBIDDEN_MEMORYKILL_CHECKS) {
ResolvedJavaType trusted = metaAccess.lookupJavaType(trustedCls);
if (trusted.equals(declaringClass)) {
return true;
}
}
return false;
}
}
```
|
```java
package wangdaye.com.geometricweather.common.utils.helpers;
import com.xhinliang.lunarcalendar.LunarCalendar;
import java.util.Calendar;
import java.util.Date;
/**
* Lunar helper.
* */
public class LunarHelper {
public static String getLunarDate(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
return getLunarDate(calendar);
}
private static String getLunarDate(Calendar calendar) {
return getLunarDate(
calendar.get(Calendar.YEAR),
calendar.get(Calendar.MONTH) + 1,
calendar.get(Calendar.DAY_OF_MONTH)
);
}
private static String getLunarDate(int year, int month, int day) {
try {
LunarCalendar lunarCalendar = LunarCalendar.obtainCalendar(year, month, day);
return lunarCalendar.getFullLunarStr().split("")[1]
.replace("", "")
.replace("", "");
} catch (Exception e) {
e.printStackTrace();
BuglyHelper.report(e);
return "";
}
}
}
```
|
Landon Cohen (born August 3, 1986) is a former gridiron football defensive tackle. He was most recently a member of the Ottawa Redblacks of the Canadian Football League (CFL). He was selected by the Detroit Lions in the seventh round of the 2008 NFL Draft. He played college football at Ohio. He has also been a member of the Jacksonville Jaguars, New England Patriots, and Arizona Cardinals.
Early years
Cohen was born in Spartanburg, South Carolina to Carolyn Ragin and Charles Cohen. He played high school football at Spartanburg High School in Spartanburg, South Carolina, where he also lettered in track and field. In football, Cohen recorded 107 tackles, six sacks, and 28 quarterback pressures as a senior and earned all-state honors.
College career
After high school, Cohen attended Ohio University, where he played in 12 games as a true freshman in 2004, making three starts at nose guard. In 2005, he started all 11 games as a sophomore, finishing with 28 tackles and two quarterback pressures. As a junior in 2006, Cohen started all 14 games and tallied 40 tackles (including 14 for a loss), earning second-team All-Mid-American Conference honors. In 2007, as a senior, he started all 12 games, recording a career-high 59 tackles (12.5 for a loss) and 1.5 sacks, one forced fumble, two fumble recoveries. After the season, he again was named to the All-MAC second-team.
Professional career
Detroit Lions
Cohen was selected by the Detroit Lions in the seventh round (216th overall) of the 2008 NFL Draft. He played in six games as a rookie, finishing with four tackles. In 2009, Cohen played in 14 games, starting four, recording 21 tackles on the season. He was waived by the Lions on September 4, 2010.
Jacksonville Jaguars
The Jacksonville Jaguars claimed Cohen off waivers on September 5, 2010. He played in two games for the Jaguars, recording two tackles, before being waived on November 9, 2010.
New England Patriots
Cohen was signed by the New England Patriots on December 22, 2010. He played in the final two games of the season for the Patriots, starting one and recording three tackles. He was waived on September 3, 2011. Cohen was re-signed by the Patriots on September 21, 2011, but was waived on September 27.
Seattle Seahawks
On September 4, 2011, the Seattle Seahawks claimed him off waivers, but he was waived on September 10.
Dallas Cowboys
On July 25, 2013, Cohen was signed by the Dallas Cowboys. He was waived on September 16, 2013.
Chicago Bears
On September 27, 2013, Cohen was signed by the Chicago Bears.
Buffalo Bills
Cohen was signed by the Buffalo Bills on July 21, 2014. The Bills released Cohen on August 29, 2014.
Seattle Seahawks
Cohen was signed by the Seattle Seahawks on January 5, 2015, adding him to their 53-man roster for the divisional playoff round.
Personal life
Cohen is also a part owner of a valet service called "The Valet, LLC" in Spartanburg, SC and works there when he is not playing football.
Married summer of 2019
References
External links
Chicago Bears bio
New England Patriots bio
Ohio Bobcats bio
1986 births
Living people
Sportspeople from Spartanburg, South Carolina
Players of American football from South Carolina
American football defensive tackles
American football defensive ends
Ohio Bobcats football players
Detroit Lions players
Jacksonville Jaguars players
New England Patriots players
Seattle Seahawks players
Dallas Cowboys players
Chicago Bears players
Buffalo Bills players
Ottawa Redblacks players
|
```c
// Feature tests of parsing new Checked C checked array type
//
// * Test that checked array types can be used as parameter types, local
// variable types, structure member types, in typedefs, and as arguments
// to operators that take types. In C, return types for functions
// cannot be array types.
// * Test parsing of array types and function types combined with checked
// array types.
//
// The following lines are for the LLVM test harness:
//
// RUN: %clang_cc1 -verify -Wno-unused-value %s
// expected-no-diagnostics
//
// parameter have new checked array types
//
#include <stdchecked.h>
extern void f1(int a checked[], int y) {
}
extern void f2(int a checked[5], int y) {
}
extern void f3(const int a checked[5], int y) {
}
extern void f4(int a checked[][5], int y) {
}
extern void f5(int a checked[5][5], int y) {
}
// not necessary, but syntactically legal
extern void f6(int a checked[]checked[5], int y) {
}
// not necessary, but syntactically legal
extern void f7(int a checked[5]checked[5], int y) {
}
//
// Null-terminated array versions
//
extern void f10(int a nt_checked[], int y) {
}
extern void f11(int a nt_checked[5], int y) {
}
extern void f12(const int a nt_checked[5], int y) {
}
// Arrays of null-terminated checked arrays are allowed.
extern void f13(int a checked[]nt_checked[5], int y) {
}
extern void f14(int a checked[5]nt_checked[5], int y) {
}
//
// Second parameter is a new pointer type
//
extern void g1(int y, int a checked[]) {
}
extern void g2(int y, int a checked[5]) {
}
extern void g3(int y, const int a checked[5]) {
}
extern void g4(int y, int a checked[][5]) {
}
extern void g5(int y, int a checked[5][5]) {
}
// not necessary, but syntactically legal
extern void g6(int y, int a checked[]checked[5]) {
}
// not necessary, but syntactically legal
extern void g7(int y, int a checked[5]checked[5]) {
}
//
// Null-terminated checked array versions.
//
extern void g10(int y, int a nt_checked[]) {
}
extern void g11(int y, int a nt_checked[5]) {
}
extern void g12(int y, const int a nt_checked[5]) {
}
// Arrays of null-terminated checked arrays are allowed.
extern void g13(int y, int a checked[]nt_checked[5]) {
}
extern void g14(int y, int a checked[5]nt_checked[5]) {
}
//
// Local variables with pointer types
//
extern void k1(int y)
{
int arr1 checked[] = { 0, 1 , 2 };
int arr2 checked[5];
int arr3 checked[][5] = { { 1 }, {2 } };
int arr4 checked[5][5];
int arr5 nt_checked[] = { 0, 1, 2, 0 };
int arr6 nt_checked[5];
}
//
// Struct member with fixed-sized array types
//
struct Vector {
int data checked[5];
int len;
};
extern int Multiply(struct Vector vec1, struct Vector vec2) {
if (vec1.len != vec2.len) {
return 1;
}
for (int i = 0; i < vec1.len; i++) {
vec1.data[i] *= vec2.data[i];
}
return 0;
}
extern int Multiply2(ptr<struct Vector> vec1p, ptr<struct Vector> vec2p) {
if (vec1p->len != vec2p->len) {
return 1;
}
for (int i = 0; i < vec1p->len; i++) {
vec1p->data[i] *= vec2p->data[i];
}
return 0;
}
//
// Declaring checked arrays of function pointers
//
struct FixedLengthString {
char str nt_checked[5];
};
int (*array_of_unchecked_ptr_to_func checked[10])(int x, int y);
int (*nullterm_array_of_unchecked_ptr_to_func nt_checked[10])(int x, int y);
extern int (*incomplete_array_of_unchecked_ptr_to_func checked[])(int x, int y);
extern int (*nullterm_incomplete_array_of_unchecked_ptr_to_func nt_checked[])(int x, int y);
ptr<int(int x, int y)> array_of_ptr_to_func checked[10];
extern ptr<int(int x, int y)> array_of_ptr_to_func checked[];
ptr<int(int x checked[10], int y)> aptr2 checked[10];
ptr<int(int x nt_checked[10], int y)> aptr3 nt_checked[10];
//
// Declaring pointers to arrays and arrays of pointers
//
int (*unchecked_ptr_to_array)checked[5];
ptr<int checked[5]> ptr_to_array;
ptr<int nt_checked[5]> ptr_to_nullterm_array;
array_ptr<int checked[5]> array_ptr_to_array;
array_ptr<int nt_checked[5]> array_ptr_to_nullterm_array;
int(*unchecked_ptr_to_incomplete_array)checked[];
ptr<int checked[]> ptr_to_incomplete_array;
ptr<int nt_checked[]> ptr_to_nullterm_incomplete_array;
array_ptr<int checked[]> array_ptr_to_incomplete_array;
array_ptr<int nt_checked[]> array_ptr_to_nullterm_incomplete_array;
// Declaring checked arrays of pointers
int *array_of_unchecked_ptrs checked[5];
int *nullterm_array_of_unchecked_ptrs nt_checked[5];
ptr<int> array_of_ptrs checked[5];
ptr<int> nullterm_array_of_ptrs nt_checked[5];
array_ptr<int> array_of_array_ptrs checked[5];
array_ptr<int> nullterm_array_of_array_ptrs nt_checked[5];
nt_array_ptr<int> array_of_nullterm_array_ptrs checked[5];
nt_array_ptr<int> nullterm_array_of_nullterm_array_ptrs nt_checked[5];
// Declare an unchecked pointer to checked arrays of pointers
int *(*uncheckedptr_to_array_of_unchecked_ptrs) checked[5];
ptr<int>(*unchecked_ptr_to_array_of_ptrs) checked[5];
array_ptr<int>(*unchecked_ptr_to_array_of_array_ptrs) checked[5];
array_ptr<int>(*unchecked_ptr_to_null_term_array_of_array_ptrs) nt_checked[5];
// Declare ptr to checked arrays of pointers
ptr<int *checked[5]> ptr_to_array_of_unchecked_ptrs;
ptr<ptr<int> checked[5]> ptr_to_array_of_ptrs;
ptr<array_ptr<int> checked[5]> ptr_to_array_of_array_ptrs;
ptr<array_ptr<int> nt_checked[5]> ptr_to_nullterm_array_of_array_ptrs;
ptr<nt_array_ptr<int> nt_checked[5]> ptr_to_nullterm_array_of_nullterm_array_ptrs;
// Declare ptr to a checked array of function pointers
ptr<int (*checked[5])(int x, int y)> ptr_to_array_of_unchecked_func_ptrs;
ptr<ptr<int (int x, int y)>checked [5]> ptr_to_array_of_checked_func_ptrs;
ptr<ptr<int (int x, int y)>nt_checked [5]> ptr_to_nullterm_array_of_checked_func_ptrs;
// Make parameter and return types be ptrs too.
ptr<ptr<ptr<int>(ptr<int> x, ptr<int> y)>checked[5]>
ptr_to_array_of_checked_func_ptrs_with_ptr_parameters;
ptr<ptr<ptr<int> (ptr<int> x, ptr<int> y)>nt_checked[5]>
ptr_to_nullterm_array_of_checked_func_ptrs_with_ptr_parameters;
//
// Typedefs using checked pointer types
//
typedef int arr_ty[5];
typedef int incomplete_arr_ty[];
typedef int checked_arr_ty checked[5];
typedef int incomplete_checked_array_ty checked[];
typedef int nullterm_checked_arr_ty nt_checked[5];
typedef int nullterm_incomplete_checked_array_ty nt_checked[];
//
// Operators that take types
//
void parse_operators_with_types(void) {
int s1 = sizeof(int checked[10]);
int s2 = sizeof(ptr<int checked[5]>);
int s3 = sizeof(array_ptr<int checked[5]>);
int s4 = sizeof(ptr<int>checked[5]);
int s5 = sizeof(array_ptr<int> checked[5]);
// null-terminated versions.
int s6 = sizeof(int nt_checked[10]);
int s7 = sizeof(ptr<int nt_checked[5]>);
int s8 = sizeof(array_ptr<int nt_checked[5]>);
int s9 = sizeof(ptr<int> nt_checked[5]);
int s10 = sizeof(array_ptr<int> nt_checked[5]);
int s20 = _Alignof(int checked[10]);
int s21 = _Alignof(ptr<int checked[5]>);
int s22 = _Alignof(array_ptr<int checked[5]>);
int s23 = _Alignof(ptr<int> checked[5]);
int s24 = _Alignof(array_ptr<int>checked[5]);
int s25 = _Alignof(nt_array_ptr<int>checked[5]);
// null-terminated versions.
int s26 = _Alignof(int nt_checked[10]);
int s27 = _Alignof(ptr<int nt_checked[5]>);
int s28 = _Alignof(array_ptr<int nt_checked[5]>);
int s29 = _Alignof(ptr<int> nt_checked[5]);
int s30 = _Alignof(array_ptr<int> nt_checked[5]);
int s31 = _Alignof(nt_array_ptr<int> nt_checked[5]);
// Test parsing of some cast operations that should pass checking
// of bounds declarations
int x = 0;
int arr checked[5];
ptr<int> px = (ptr<int>) &x;
array_ptr<int> pax = (array_ptr<int>) &x;
pax = arr;
// ptr to array type
ptr<int checked[5]> parr = 0;
parr = &arr;
parr = (int (*)checked[5]) &arr;
parr = (int (*)checked[5]) ((int (*)checked[]) &arr);
// ptr to function type
ptr<int (int x, int y)> pfunc = (ptr<int (int x, int y)>) 0;
ptr<ptr<int (int x, int y)>checked [5]> ptr_to_pfunc_arr = (ptr<ptr<int (int x, int y)>checked[5]>) 0;
}
```
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package watch
import (
"fmt"
"sync"
"k8s.io/klog/v2"
"k8s.io/apimachinery/pkg/runtime"
)
// Interface can be implemented by anything that knows how to watch and report changes.
type Interface interface {
// Stops watching. Will close the channel returned by ResultChan(). Releases
// any resources used by the watch.
Stop()
// Returns a chan which will receive all the events. If an error occurs
// or Stop() is called, the implementation will close this channel and
// release any resources used by the watch.
ResultChan() <-chan Event
}
// EventType defines the possible types of events.
type EventType string
const (
Added EventType = "ADDED"
Modified EventType = "MODIFIED"
Deleted EventType = "DELETED"
Bookmark EventType = "BOOKMARK"
Error EventType = "ERROR"
)
var (
DefaultChanSize int32 = 100
)
// Event represents a single event to a watched resource.
// +k8s:deepcopy-gen=true
type Event struct {
Type EventType
// Object is:
// * If Type is Added or Modified: the new state of the object.
// * If Type is Deleted: the state of the object immediately before deletion.
// * If Type is Bookmark: the object (instance of a type being watched) where
// only ResourceVersion field is set. On successful restart of watch from a
// bookmark resourceVersion, client is guaranteed to not get repeat event
// nor miss any events.
// * If Type is Error: *api.Status is recommended; other types may make sense
// depending on context.
Object runtime.Object
}
type emptyWatch chan Event
// NewEmptyWatch returns a watch interface that returns no results and is closed.
// May be used in certain error conditions where no information is available but
// an error is not warranted.
func NewEmptyWatch() Interface {
ch := make(chan Event)
close(ch)
return emptyWatch(ch)
}
// Stop implements Interface
func (w emptyWatch) Stop() {
}
// ResultChan implements Interface
func (w emptyWatch) ResultChan() <-chan Event {
return chan Event(w)
}
// FakeWatcher lets you test anything that consumes a watch.Interface; threadsafe.
type FakeWatcher struct {
result chan Event
stopped bool
sync.Mutex
}
func NewFake() *FakeWatcher {
return &FakeWatcher{
result: make(chan Event),
}
}
func NewFakeWithChanSize(size int, blocking bool) *FakeWatcher {
return &FakeWatcher{
result: make(chan Event, size),
}
}
// Stop implements Interface.Stop().
func (f *FakeWatcher) Stop() {
f.Lock()
defer f.Unlock()
if !f.stopped {
klog.V(4).Infof("Stopping fake watcher.")
close(f.result)
f.stopped = true
}
}
func (f *FakeWatcher) IsStopped() bool {
f.Lock()
defer f.Unlock()
return f.stopped
}
// Reset prepares the watcher to be reused.
func (f *FakeWatcher) Reset() {
f.Lock()
defer f.Unlock()
f.stopped = false
f.result = make(chan Event)
}
func (f *FakeWatcher) ResultChan() <-chan Event {
return f.result
}
// Add sends an add event.
func (f *FakeWatcher) Add(obj runtime.Object) {
f.result <- Event{Added, obj}
}
// Modify sends a modify event.
func (f *FakeWatcher) Modify(obj runtime.Object) {
f.result <- Event{Modified, obj}
}
// Delete sends a delete event.
func (f *FakeWatcher) Delete(lastValue runtime.Object) {
f.result <- Event{Deleted, lastValue}
}
// Error sends an Error event.
func (f *FakeWatcher) Error(errValue runtime.Object) {
f.result <- Event{Error, errValue}
}
// Action sends an event of the requested type, for table-based testing.
func (f *FakeWatcher) Action(action EventType, obj runtime.Object) {
f.result <- Event{action, obj}
}
// RaceFreeFakeWatcher lets you test anything that consumes a watch.Interface; threadsafe.
type RaceFreeFakeWatcher struct {
result chan Event
Stopped bool
sync.Mutex
}
func NewRaceFreeFake() *RaceFreeFakeWatcher {
return &RaceFreeFakeWatcher{
result: make(chan Event, DefaultChanSize),
}
}
// Stop implements Interface.Stop().
func (f *RaceFreeFakeWatcher) Stop() {
f.Lock()
defer f.Unlock()
if !f.Stopped {
klog.V(4).Infof("Stopping fake watcher.")
close(f.result)
f.Stopped = true
}
}
func (f *RaceFreeFakeWatcher) IsStopped() bool {
f.Lock()
defer f.Unlock()
return f.Stopped
}
// Reset prepares the watcher to be reused.
func (f *RaceFreeFakeWatcher) Reset() {
f.Lock()
defer f.Unlock()
f.Stopped = false
f.result = make(chan Event, DefaultChanSize)
}
func (f *RaceFreeFakeWatcher) ResultChan() <-chan Event {
f.Lock()
defer f.Unlock()
return f.result
}
// Add sends an add event.
func (f *RaceFreeFakeWatcher) Add(obj runtime.Object) {
f.Lock()
defer f.Unlock()
if !f.Stopped {
select {
case f.result <- Event{Added, obj}:
return
default:
panic(fmt.Errorf("channel full"))
}
}
}
// Modify sends a modify event.
func (f *RaceFreeFakeWatcher) Modify(obj runtime.Object) {
f.Lock()
defer f.Unlock()
if !f.Stopped {
select {
case f.result <- Event{Modified, obj}:
return
default:
panic(fmt.Errorf("channel full"))
}
}
}
// Delete sends a delete event.
func (f *RaceFreeFakeWatcher) Delete(lastValue runtime.Object) {
f.Lock()
defer f.Unlock()
if !f.Stopped {
select {
case f.result <- Event{Deleted, lastValue}:
return
default:
panic(fmt.Errorf("channel full"))
}
}
}
// Error sends an Error event.
func (f *RaceFreeFakeWatcher) Error(errValue runtime.Object) {
f.Lock()
defer f.Unlock()
if !f.Stopped {
select {
case f.result <- Event{Error, errValue}:
return
default:
panic(fmt.Errorf("channel full"))
}
}
}
// Action sends an event of the requested type, for table-based testing.
func (f *RaceFreeFakeWatcher) Action(action EventType, obj runtime.Object) {
f.Lock()
defer f.Unlock()
if !f.Stopped {
select {
case f.result <- Event{action, obj}:
return
default:
panic(fmt.Errorf("channel full"))
}
}
}
// ProxyWatcher lets you wrap your channel in watch Interface. Threadsafe.
type ProxyWatcher struct {
result chan Event
stopCh chan struct{}
mutex sync.Mutex
stopped bool
}
var _ Interface = &ProxyWatcher{}
// NewProxyWatcher creates new ProxyWatcher by wrapping a channel
func NewProxyWatcher(ch chan Event) *ProxyWatcher {
return &ProxyWatcher{
result: ch,
stopCh: make(chan struct{}),
stopped: false,
}
}
// Stop implements Interface
func (pw *ProxyWatcher) Stop() {
pw.mutex.Lock()
defer pw.mutex.Unlock()
if !pw.stopped {
pw.stopped = true
close(pw.stopCh)
}
}
// Stopping returns true if Stop() has been called
func (pw *ProxyWatcher) Stopping() bool {
pw.mutex.Lock()
defer pw.mutex.Unlock()
return pw.stopped
}
// ResultChan implements Interface
func (pw *ProxyWatcher) ResultChan() <-chan Event {
return pw.result
}
// StopChan returns stop channel
func (pw *ProxyWatcher) StopChan() <-chan struct{} {
return pw.stopCh
}
```
|
```ada
your_sha256_hash
-- ZLib for Ada thick binding. --
-- --
-- --
-- Open source license information is in the zlib.ads file. --
your_sha256_hash
-- $Id: zlib-thin.ads,v 1.11 2004/07/23 06:33:11 vagul Exp $
with Interfaces.C.Strings;
with System;
private package ZLib.Thin is
-- From zconf.h
MAX_MEM_LEVEL : constant := 9; -- zconf.h:105
-- zconf.h:105
MAX_WBITS : constant := 15; -- zconf.h:115
-- 32K LZ77 window
-- zconf.h:115
SEEK_SET : constant := 8#0000#; -- zconf.h:244
-- Seek from beginning of file.
-- zconf.h:244
SEEK_CUR : constant := 1; -- zconf.h:245
-- Seek from current position.
-- zconf.h:245
SEEK_END : constant := 2; -- zconf.h:246
-- Set file pointer to EOF plus "offset"
-- zconf.h:246
type Byte is new Interfaces.C.unsigned_char; -- 8 bits
-- zconf.h:214
type UInt is new Interfaces.C.unsigned; -- 16 bits or more
-- zconf.h:216
type Int is new Interfaces.C.int;
type ULong is new Interfaces.C.unsigned_long; -- 32 bits or more
-- zconf.h:217
subtype Chars_Ptr is Interfaces.C.Strings.chars_ptr;
type ULong_Access is access ULong;
type Int_Access is access Int;
subtype Voidp is System.Address; -- zconf.h:232
subtype Byte_Access is Voidp;
Nul : constant Voidp := System.Null_Address;
-- end from zconf
Z_NO_FLUSH : constant := 8#0000#; -- zlib.h:125
-- zlib.h:125
Z_PARTIAL_FLUSH : constant := 1; -- zlib.h:126
-- will be removed, use
-- Z_SYNC_FLUSH instead
-- zlib.h:126
Z_SYNC_FLUSH : constant := 2; -- zlib.h:127
-- zlib.h:127
Z_FULL_FLUSH : constant := 3; -- zlib.h:128
-- zlib.h:128
Z_FINISH : constant := 4; -- zlib.h:129
-- zlib.h:129
Z_OK : constant := 8#0000#; -- zlib.h:132
-- zlib.h:132
Z_STREAM_END : constant := 1; -- zlib.h:133
-- zlib.h:133
Z_NEED_DICT : constant := 2; -- zlib.h:134
-- zlib.h:134
Z_ERRNO : constant := -1; -- zlib.h:135
-- zlib.h:135
Z_STREAM_ERROR : constant := -2; -- zlib.h:136
-- zlib.h:136
Z_DATA_ERROR : constant := -3; -- zlib.h:137
-- zlib.h:137
Z_MEM_ERROR : constant := -4; -- zlib.h:138
-- zlib.h:138
Z_BUF_ERROR : constant := -5; -- zlib.h:139
-- zlib.h:139
Z_VERSION_ERROR : constant := -6; -- zlib.h:140
-- zlib.h:140
Z_NO_COMPRESSION : constant := 8#0000#; -- zlib.h:145
-- zlib.h:145
Z_BEST_SPEED : constant := 1; -- zlib.h:146
-- zlib.h:146
Z_BEST_COMPRESSION : constant := 9; -- zlib.h:147
-- zlib.h:147
Z_DEFAULT_COMPRESSION : constant := -1; -- zlib.h:148
-- zlib.h:148
Z_FILTERED : constant := 1; -- zlib.h:151
-- zlib.h:151
Z_HUFFMAN_ONLY : constant := 2; -- zlib.h:152
-- zlib.h:152
Z_DEFAULT_STRATEGY : constant := 8#0000#; -- zlib.h:153
-- zlib.h:153
Z_BINARY : constant := 8#0000#; -- zlib.h:156
-- zlib.h:156
Z_ASCII : constant := 1; -- zlib.h:157
-- zlib.h:157
Z_UNKNOWN : constant := 2; -- zlib.h:158
-- zlib.h:158
Z_DEFLATED : constant := 8; -- zlib.h:161
-- zlib.h:161
Z_NULL : constant := 8#0000#; -- zlib.h:164
-- for initializing zalloc, zfree, opaque
-- zlib.h:164
type gzFile is new Voidp; -- zlib.h:646
type Z_Stream is private;
type Z_Streamp is access all Z_Stream; -- zlib.h:89
type alloc_func is access function
(Opaque : Voidp;
Items : UInt;
Size : UInt)
return Voidp; -- zlib.h:63
type free_func is access procedure (opaque : Voidp; address : Voidp);
function zlibVersion return Chars_Ptr;
function Deflate (strm : Z_Streamp; flush : Int) return Int;
function DeflateEnd (strm : Z_Streamp) return Int;
function Inflate (strm : Z_Streamp; flush : Int) return Int;
function InflateEnd (strm : Z_Streamp) return Int;
function deflateSetDictionary
(strm : Z_Streamp;
dictionary : Byte_Access;
dictLength : UInt)
return Int;
function deflateCopy (dest : Z_Streamp; source : Z_Streamp) return Int;
-- zlib.h:478
function deflateReset (strm : Z_Streamp) return Int; -- zlib.h:495
function deflateParams
(strm : Z_Streamp;
level : Int;
strategy : Int)
return Int; -- zlib.h:506
function inflateSetDictionary
(strm : Z_Streamp;
dictionary : Byte_Access;
dictLength : UInt)
return Int; -- zlib.h:548
function inflateSync (strm : Z_Streamp) return Int; -- zlib.h:565
function inflateReset (strm : Z_Streamp) return Int; -- zlib.h:580
function compress
(dest : Byte_Access;
destLen : ULong_Access;
source : Byte_Access;
sourceLen : ULong)
return Int; -- zlib.h:601
function compress2
(dest : Byte_Access;
destLen : ULong_Access;
source : Byte_Access;
sourceLen : ULong;
level : Int)
return Int; -- zlib.h:615
function uncompress
(dest : Byte_Access;
destLen : ULong_Access;
source : Byte_Access;
sourceLen : ULong)
return Int;
function gzopen (path : Chars_Ptr; mode : Chars_Ptr) return gzFile;
function gzdopen (fd : Int; mode : Chars_Ptr) return gzFile;
function gzsetparams
(file : gzFile;
level : Int;
strategy : Int)
return Int;
function gzread
(file : gzFile;
buf : Voidp;
len : UInt)
return Int;
function gzwrite
(file : in gzFile;
buf : in Voidp;
len : in UInt)
return Int;
function gzprintf (file : in gzFile; format : in Chars_Ptr) return Int;
function gzputs (file : in gzFile; s : in Chars_Ptr) return Int;
function gzgets
(file : gzFile;
buf : Chars_Ptr;
len : Int)
return Chars_Ptr;
function gzputc (file : gzFile; char : Int) return Int;
function gzgetc (file : gzFile) return Int;
function gzflush (file : gzFile; flush : Int) return Int;
function gzseek
(file : gzFile;
offset : Int;
whence : Int)
return Int;
function gzrewind (file : gzFile) return Int;
function gztell (file : gzFile) return Int;
function gzeof (file : gzFile) return Int;
function gzclose (file : gzFile) return Int;
function gzerror (file : gzFile; errnum : Int_Access) return Chars_Ptr;
function adler32
(adler : ULong;
buf : Byte_Access;
len : UInt)
return ULong;
function crc32
(crc : ULong;
buf : Byte_Access;
len : UInt)
return ULong;
function deflateInit
(strm : Z_Streamp;
level : Int;
version : Chars_Ptr;
stream_size : Int)
return Int;
function deflateInit2
(strm : Z_Streamp;
level : Int;
method : Int;
windowBits : Int;
memLevel : Int;
strategy : Int;
version : Chars_Ptr;
stream_size : Int)
return Int;
function Deflate_Init
(strm : Z_Streamp;
level : Int;
method : Int;
windowBits : Int;
memLevel : Int;
strategy : Int)
return Int;
pragma Inline (Deflate_Init);
function inflateInit
(strm : Z_Streamp;
version : Chars_Ptr;
stream_size : Int)
return Int;
function inflateInit2
(strm : in Z_Streamp;
windowBits : in Int;
version : in Chars_Ptr;
stream_size : in Int)
return Int;
function inflateBackInit
(strm : in Z_Streamp;
windowBits : in Int;
window : in Byte_Access;
version : in Chars_Ptr;
stream_size : in Int)
return Int;
-- Size of window have to be 2**windowBits.
function Inflate_Init (strm : Z_Streamp; windowBits : Int) return Int;
pragma Inline (Inflate_Init);
function zError (err : Int) return Chars_Ptr;
function inflateSyncPoint (z : Z_Streamp) return Int;
function get_crc_table return ULong_Access;
-- Interface to the available fields of the z_stream structure.
-- The application must update next_in and avail_in when avail_in has
-- dropped to zero. It must update next_out and avail_out when avail_out
-- has dropped to zero. The application must initialize zalloc, zfree and
-- opaque before calling the init function.
procedure Set_In
(Strm : in out Z_Stream;
Buffer : in Voidp;
Size : in UInt);
pragma Inline (Set_In);
procedure Set_Out
(Strm : in out Z_Stream;
Buffer : in Voidp;
Size : in UInt);
pragma Inline (Set_Out);
procedure Set_Mem_Func
(Strm : in out Z_Stream;
Opaque : in Voidp;
Alloc : in alloc_func;
Free : in free_func);
pragma Inline (Set_Mem_Func);
function Last_Error_Message (Strm : in Z_Stream) return String;
pragma Inline (Last_Error_Message);
function Avail_Out (Strm : in Z_Stream) return UInt;
pragma Inline (Avail_Out);
function Avail_In (Strm : in Z_Stream) return UInt;
pragma Inline (Avail_In);
function Total_In (Strm : in Z_Stream) return ULong;
pragma Inline (Total_In);
function Total_Out (Strm : in Z_Stream) return ULong;
pragma Inline (Total_Out);
function inflateCopy
(dest : in Z_Streamp;
Source : in Z_Streamp)
return Int;
function compressBound (Source_Len : in ULong) return ULong;
function deflateBound
(Strm : in Z_Streamp;
Source_Len : in ULong)
return ULong;
function gzungetc (C : in Int; File : in gzFile) return Int;
function zlibCompileFlags return ULong;
private
type Z_Stream is record -- zlib.h:68
Next_In : Voidp := Nul; -- next input byte
Avail_In : UInt := 0; -- number of bytes available at next_in
Total_In : ULong := 0; -- total nb of input bytes read so far
Next_Out : Voidp := Nul; -- next output byte should be put there
Avail_Out : UInt := 0; -- remaining free space at next_out
Total_Out : ULong := 0; -- total nb of bytes output so far
msg : Chars_Ptr; -- last error message, NULL if no error
state : Voidp; -- not visible by applications
zalloc : alloc_func := null; -- used to allocate the internal state
zfree : free_func := null; -- used to free the internal state
opaque : Voidp; -- private data object passed to
-- zalloc and zfree
data_type : Int; -- best guess about the data type:
-- ascii or binary
adler : ULong; -- adler32 value of the uncompressed
-- data
reserved : ULong; -- reserved for future use
end record;
pragma Convention (C, Z_Stream);
pragma Import (C, zlibVersion, "zlibVersion");
pragma Import (C, Deflate, "deflate");
pragma Import (C, DeflateEnd, "deflateEnd");
pragma Import (C, Inflate, "inflate");
pragma Import (C, InflateEnd, "inflateEnd");
pragma Import (C, deflateSetDictionary, "deflateSetDictionary");
pragma Import (C, deflateCopy, "deflateCopy");
pragma Import (C, deflateReset, "deflateReset");
pragma Import (C, deflateParams, "deflateParams");
pragma Import (C, inflateSetDictionary, "inflateSetDictionary");
pragma Import (C, inflateSync, "inflateSync");
pragma Import (C, inflateReset, "inflateReset");
pragma Import (C, compress, "compress");
pragma Import (C, compress2, "compress2");
pragma Import (C, uncompress, "uncompress");
pragma Import (C, gzopen, "gzopen");
pragma Import (C, gzdopen, "gzdopen");
pragma Import (C, gzsetparams, "gzsetparams");
pragma Import (C, gzread, "gzread");
pragma Import (C, gzwrite, "gzwrite");
pragma Import (C, gzprintf, "gzprintf");
pragma Import (C, gzputs, "gzputs");
pragma Import (C, gzgets, "gzgets");
pragma Import (C, gzputc, "gzputc");
pragma Import (C, gzgetc, "gzgetc");
pragma Import (C, gzflush, "gzflush");
pragma Import (C, gzseek, "gzseek");
pragma Import (C, gzrewind, "gzrewind");
pragma Import (C, gztell, "gztell");
pragma Import (C, gzeof, "gzeof");
pragma Import (C, gzclose, "gzclose");
pragma Import (C, gzerror, "gzerror");
pragma Import (C, adler32, "adler32");
pragma Import (C, crc32, "crc32");
pragma Import (C, deflateInit, "deflateInit_");
pragma Import (C, inflateInit, "inflateInit_");
pragma Import (C, deflateInit2, "deflateInit2_");
pragma Import (C, inflateInit2, "inflateInit2_");
pragma Import (C, zError, "zError");
pragma Import (C, inflateSyncPoint, "inflateSyncPoint");
pragma Import (C, get_crc_table, "get_crc_table");
-- since zlib 1.2.0:
pragma Import (C, inflateCopy, "inflateCopy");
pragma Import (C, compressBound, "compressBound");
pragma Import (C, deflateBound, "deflateBound");
pragma Import (C, gzungetc, "gzungetc");
pragma Import (C, zlibCompileFlags, "zlibCompileFlags");
pragma Import (C, inflateBackInit, "inflateBackInit_");
-- I stopped binding the inflateBack routines, becouse realize that
-- it does not support zlib and gzip headers for now, and have no
-- symmetric deflateBack routines.
-- ZLib-Ada is symmetric regarding deflate/inflate data transformation
-- and has a similar generic callback interface for the
-- deflate/inflate transformation based on the regular Deflate/Inflate
-- routines.
-- pragma Import (C, inflateBack, "inflateBack");
-- pragma Import (C, inflateBackEnd, "inflateBackEnd");
end ZLib.Thin;
```
|
Robert Clifton Brackins III (born September 14, 1988) is an American rapper, record producer, and songwriter. Brackins was born in Berkeley, California, but was primarily raised in East Oakland, California. Brackins is perhaps best known as songwriter, having co-wrote Tinashe's single "2 On" and Chris Brown's hit "Loyal". Brackins is also known for his guest feature on Ray J's controversial hit single "I Hit It First" in 2013, which sold over 100,000 copies independently.
Aside from writing and producing for other artists, Brackins also has career as a recording artist. He initially signed with Republic Records as a solo artist in 2010, with the 2014 single "143", featuring Ray J, peaking at number 84 on the Billboard Hot 100 chart. His most recent releases include his extended play titled To Live For, which was released on May 13, 2016. The EP features singles such as "Hot Box", featuring rapper G-Eazy and Mila J, and "My Jam" which features Disney Channel star Zendaya and Jeremih. The EP also includes features from fellow California artists Marc E. Bassy, Ty Dolla $ign, Eric Bellinger, and Mina.
Early life
Robert Clifton Brackins III was born on September 14, 1988, in Berkeley, California. During Brackins' infancy, his parents relocated to East Oakland, California, where he was raised. His father Robert Clifton Brackins Sr. owned a music studio in the Bay Area. During an interview, Brackins discretely recalls being around artists such as Tony Tony Tony while with his father in the studio. Brackins did not, however, begin to take music seriously until his freshman year of high school when he connected with music producer Nic Nac through a mutual friend. The two began working on music together, after discovering Nic Nac's ability to produce instrumentals, and Brackins' ability to create and write lyrics and melodies. After Graduating high school, Brackins attended San Jose State University, but dropped out and moved to Los Angeles, California where he currently resides.
Career
Brackins musical career began after he formed a band with a group of local friends called "Go Dav". The group entered and won a radio contest, causing their single "Ride Or Die Chick" to gain radio plays. Shortly after the contest, the song skyrocketed to fame on the MySpace social media network. Eventually, the group split up due to certain complications, desires and issues. After high school, Brackins moved to Los Angeles, California to be closer to Nic Nac and to further pursue his musical career. He was then able to meet other producers, artists and songwriters including Ray J, Pia Mia, Trevcase, Redwine, Marc Griffin/Marc E Bassy, and YG. He then released 2 mixtapes. His first being titled "Pimp Hand Strong", which features artists such as Marc Griffin, Kendre and Tinashe. His second mixtape was called Maxwell Park and featured artists such as Ray J, Forest Lipton, Lil Debbie, Iamsu! and Kreayshawn. In 2010, Brackins Ty Dolla $ign and YG, went on a 10-day tour to promote their upcoming mixtape. The "Young and Hungover" mixtape was released in 2011 and was hosted by DJ Mustard and DJ Ilwill. Brackins' fame was primarily gained from his single "143" featuring Ray J. After releasing the single, Brackins got signed to Universal Records. After being signed, he released a single called "I'm Ready", which features Marc Griffin, and is a description of Brackins lifestyle after the release of "143". In March 2011, Brackins released a video for "A1" featuring DEV from his Live Good. 5 EP.
Eventually, Brackins was released from his contract with Universal. He then signed to an independent record label in the Bay Area called Tycoon Status Entertainment LLC. Brackins then proceeded to continue writing music for himself as well as other artists including Zendaya's first single "Swag It Out", Tinashe's song "Chainless", and Pia Mia's single F**k With You (FWU) featuring G-Eazy. He has also written mainstream singles which include, Chris Brown's "Loyal" and "Came To Do", Ty Dolla $ign's "Saved", and Tinashe's "2 On" and "Party Favors." After releasing singles "My Jam" featuring Zendaya and Jeremih, "Hot Box" featuring G-Eazy and Mila J, Faithful featuring Ty Dolla$ign as well as a remix featuring Iamsu!, and Indigo (which was originally supposed to feature Anderson Pac), Brackins released To Live For 1 of 3 EPs. His 2nd EP, called To Kill For is due to be released in early 2017 according to Brackins' Twitter. He has also stated that he has written for artists including Nicki Minaj, Christina Milian, and Gwen Stefani. Brackins has also had vocal features in songs including Marc E Bassy's "Drunk and I'm Drunk", K.Young's remix to his song "Please Me", and Mila J's track "Sorry". Other songs and features include Zendaya's "My Baby" off her debut self-titled studio album (which Brackins wrote before vocally featuring in the remix), Yellow Claw and DJ Mustard's track "In My Room" (which he wrote), and Pia Mia's SoundCloud release track "Underneath".
Aside from musical production, Brackins has also traveled on tour to open and perform for other artists. Brackins first joined Niykee Heaton while she was on The Centerfold Tour. He opened and performed with Heaton in cities including Portland, Oregon, Boise, Idaho, and Seattle, Washington. Brackins also joined Marc E Bassy for the West Coast dates of his Groovie People Tour, performing in cities such as Denver, Colorado, Vancouver, British Columbia, Canada, and Salt Lake City, Utah.
Discography
Studio albums
Extended plays
Live Good .5 (2010)
Singles
Hot Box ft. G-Eazy and Mila J
My Jam featuring Zendaya and Jeremih
143 featuring Ray J
References
External links
Bobby Brackins on Twitter
1988 births
Living people
African-American male rappers
American male rappers
21st-century American rappers
21st-century American male musicians
21st-century African-American musicians
20th-century African-American people
San Jose State University alumni
|
```python
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 26 19:38:26 2016
@author: DIP
"""
from sklearn.datasets import fetch_20newsgroups
from sklearn.cross_validation import train_test_split
def get_data():
data = fetch_20newsgroups(subset='all',
shuffle=True,
remove=('headers', 'footers', 'quotes'))
return data
def prepare_datasets(corpus, labels, test_data_proportion=0.3):
train_X, test_X, train_Y, test_Y = train_test_split(corpus, labels,
test_size=0.33, random_state=42)
return train_X, test_X, train_Y, test_Y
def remove_empty_docs(corpus, labels):
filtered_corpus = []
filtered_labels = []
for doc, label in zip(corpus, labels):
if doc.strip():
filtered_corpus.append(doc)
filtered_labels.append(label)
return filtered_corpus, filtered_labels
dataset = get_data()
print dataset.target_names
corpus, labels = dataset.data, dataset.target
corpus, labels = remove_empty_docs(corpus, labels)
print 'Sample document:', corpus[10]
print 'Class label:',labels[10]
print 'Actual class label:', dataset.target_names[labels[10]]
train_corpus, test_corpus, train_labels, test_labels = prepare_datasets(corpus,
labels,
test_data_proportion=0.3)
from normalization import normalize_corpus
norm_train_corpus = normalize_corpus(train_corpus)
norm_test_corpus = normalize_corpus(test_corpus)
''.strip()
from feature_extractors import bow_extractor, tfidf_extractor
from feature_extractors import averaged_word_vectorizer
from feature_extractors import tfidf_weighted_averaged_word_vectorizer
import nltk
import gensim
# bag of words features
bow_vectorizer, bow_train_features = bow_extractor(norm_train_corpus)
bow_test_features = bow_vectorizer.transform(norm_test_corpus)
# tfidf features
tfidf_vectorizer, tfidf_train_features = tfidf_extractor(norm_train_corpus)
tfidf_test_features = tfidf_vectorizer.transform(norm_test_corpus)
# tokenize documents
tokenized_train = [nltk.word_tokenize(text)
for text in norm_train_corpus]
tokenized_test = [nltk.word_tokenize(text)
for text in norm_test_corpus]
# build word2vec model
model = gensim.models.Word2Vec(tokenized_train,
size=500,
window=100,
min_count=30,
sample=1e-3)
# averaged word vector features
avg_wv_train_features = averaged_word_vectorizer(corpus=tokenized_train,
model=model,
num_features=500)
avg_wv_test_features = averaged_word_vectorizer(corpus=tokenized_test,
model=model,
num_features=500)
# tfidf weighted averaged word vector features
vocab = tfidf_vectorizer.vocabulary_
tfidf_wv_train_features = tfidf_weighted_averaged_word_vectorizer(corpus=tokenized_train,
tfidf_vectors=tfidf_train_features,
tfidf_vocabulary=vocab,
model=model,
num_features=500)
tfidf_wv_test_features = tfidf_weighted_averaged_word_vectorizer(corpus=tokenized_test,
tfidf_vectors=tfidf_test_features,
tfidf_vocabulary=vocab,
model=model,
num_features=500)
from sklearn import metrics
import numpy as np
def get_metrics(true_labels, predicted_labels):
print 'Accuracy:', np.round(
metrics.accuracy_score(true_labels,
predicted_labels),
2)
print 'Precision:', np.round(
metrics.precision_score(true_labels,
predicted_labels,
average='weighted'),
2)
print 'Recall:', np.round(
metrics.recall_score(true_labels,
predicted_labels,
average='weighted'),
2)
print 'F1 Score:', np.round(
metrics.f1_score(true_labels,
predicted_labels,
average='weighted'),
2)
def train_predict_evaluate_model(classifier,
train_features, train_labels,
test_features, test_labels):
# build model
classifier.fit(train_features, train_labels)
# predict using model
predictions = classifier.predict(test_features)
# evaluate model prediction performance
get_metrics(true_labels=test_labels,
predicted_labels=predictions)
return predictions
from sklearn.naive_bayes import MultinomialNB
from sklearn.linear_model import SGDClassifier
mnb = MultinomialNB()
svm = SGDClassifier(loss='hinge', n_iter=100)
# Multinomial Naive Bayes with bag of words features
mnb_bow_predictions = train_predict_evaluate_model(classifier=mnb,
train_features=bow_train_features,
train_labels=train_labels,
test_features=bow_test_features,
test_labels=test_labels)
# Support Vector Machine with bag of words features
svm_bow_predictions = train_predict_evaluate_model(classifier=svm,
train_features=bow_train_features,
train_labels=train_labels,
test_features=bow_test_features,
test_labels=test_labels)
# Multinomial Naive Bayes with tfidf features
mnb_tfidf_predictions = train_predict_evaluate_model(classifier=mnb,
train_features=tfidf_train_features,
train_labels=train_labels,
test_features=tfidf_test_features,
test_labels=test_labels)
# Support Vector Machine with tfidf features
svm_tfidf_predictions = train_predict_evaluate_model(classifier=svm,
train_features=tfidf_train_features,
train_labels=train_labels,
test_features=tfidf_test_features,
test_labels=test_labels)
# Support Vector Machine with averaged word vector features
svm_avgwv_predictions = train_predict_evaluate_model(classifier=svm,
train_features=avg_wv_train_features,
train_labels=train_labels,
test_features=avg_wv_test_features,
test_labels=test_labels)
# Support Vector Machine with tfidf weighted averaged word vector features
svm_tfidfwv_predictions = train_predict_evaluate_model(classifier=svm,
train_features=tfidf_wv_train_features,
train_labels=train_labels,
test_features=tfidf_wv_test_features,
test_labels=test_labels)
import pandas as pd
cm = metrics.confusion_matrix(test_labels, svm_tfidf_predictions)
pd.DataFrame(cm, index=range(0,20), columns=range(0,20))
class_names = dataset.target_names
print class_names[0], '->', class_names[15]
print class_names[18], '->', class_names[16]
print class_names[19], '->', class_names[15]
import re
num = 0
for document, label, predicted_label in zip(test_corpus, test_labels, svm_tfidf_predictions):
if label == 0 and predicted_label == 15:
print 'Actual Label:', class_names[label]
print 'Predicted Label:', class_names[predicted_label]
print 'Document:-'
print re.sub('\n', ' ', document)
print
num += 1
if num == 4:
break
num = 0
for document, label, predicted_label in zip(test_corpus, test_labels, svm_tfidf_predictions):
if label == 18 and predicted_label == 16:
print 'Actual Label:', class_names[label]
print 'Predicted Label:', class_names[predicted_label]
print 'Document:-'
print re.sub('\n', ' ', document)
print
num += 1
if num == 4:
break
```
|
```yaml
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
root:
sub: foo
###
root:
newKey: foo
sub: foo
```
|
The State of Kedah Star of Valour (Bahasa Melayu: Bintang Keberanian Negeri Kedah) is the supreme honorific war decoration of the Sultanate of Kedah
History
It was founded by Sultan Badlishah of Kedah on 30 October 1952.
Recipients
It is as a reward for acts of supreme valour performed by the military or civilians (in uniformed organizations or not) in circumstances of extreme danger during peacetime or war. There should be at least two witnesses to a candidate's deed. This award may be conferred posthumously.
Classes
It is awarded in one class:
Star - Post-nominal letters : BKK
Insignia
It composed of a bronze star hung from a dark red ribbon with a central dark blue stripe. Photos : 1 & 2
References
Military awards and decorations of Malaysia
Orders, decorations, and medals of Kedah
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.haulmont.cuba.web.gui.components;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Specifies a string value that is a file path to an xml descriptor
* that can be used for a {@link CompositeComponent} initialization.
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface CompositeDescriptor {
/**
* @return a path to the XML descriptor. If the value contains a file name only (i.e. don't start with '/'),
* it is assumed that the file is located in the package of the composite component class.
*/
String value();
}
```
|
Coleophora aestuariella is a moth of the family Coleophoridae. It is found in Great Britain, France, the Iberian Peninsula, Greece, Bulgaria and Ukraine.
The wingspan is 10–11 mm.
The larvae feed on the seeds of annual sea-blight (Suaeda maritima). They create a moveable case of about 5 mm in length. Larvae can be found from September to June.
References
aestuariella
Moths described in 1984
Moths of Europe
|
The 2010–11 season of the Tonga Major League was the 32nd season of top flight association football competition in Tonga. Lotohaʻapai United won the championship for the twelfth time.
Standings
Based on known results:
Knockout Phase
Semifinals
Third-place match
Final
References
Tonga Major League seasons
Tonga
Football
Tonga
Football
|
```javascript
// app/send.ts
/* __next_internal_action_entry_do_not_use__ {"050e3854b72b19e3c7e3966a67535543a90bf7e0":"baz","ab21efdafbe611287bc25c0462b1e0510d13e48b":"foo","c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
async function foo() {}
export { foo };
async function bar() {}
export { bar as baz };
async function qux() {}
export { qux as default };
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
ensureServerEntryExports([
foo,
bar,
qux
]);
registerServerReference("ab21efdafbe611287bc25c0462b1e0510d13e48b", foo);
registerServerReference("050e3854b72b19e3c7e3966a67535543a90bf7e0", bar);
registerServerReference("c18c215a6b7cdc64bf709f3a714ffdef1bf9651d", qux);
```
|
```java
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
package org.quartz.listeners;
import java.util.HashMap;
import java.util.Map;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;
import org.quartz.SchedulerException;
/**
* Keeps a collection of mappings of which Job to trigger after the completion
* of a given job. If this listener is notified of a job completing that has a
* mapping, then it will then attempt to trigger the follow-up job. This
* achieves "job chaining", or a "poor man's workflow".
*
* <p>Generally an instance of this listener would be registered as a global
* job listener, rather than being registered directly to a given job.</p>
*
* <p>If for some reason there is a failure creating the trigger for the
* follow-up job (which would generally only be caused by a rare serious
* failure in the system, or the non-existence of the follow-up job), an error
* messsage is logged, but no other action is taken. If you need more rigorous
* handling of the error, consider scheduling the triggering of the flow-up
* job within your job itself.</p>
*
* @author James House (jhouse AT revolition DOT net)
*/
public class JobChainingJobListener extends JobListenerSupport {
private String name;
private Map<JobKey, JobKey> chainLinks;
/**
* Construct an instance with the given name.
*
* @param name the name of this instance
*/
public JobChainingJobListener(String name) {
if(name == null) {
throw new IllegalArgumentException("Listener name cannot be null!");
}
this.name = name;
chainLinks = new HashMap<JobKey, JobKey>();
}
public String getName() {
return name;
}
/**
* Add a chain mapping - when the Job identified by the first key completes
* the job identified by the second key will be triggered.
*
* @param firstJob a JobKey with the name and group of the first job
* @param secondJob a JobKey with the name and group of the follow-up job
*/
public void addJobChainLink(JobKey firstJob, JobKey secondJob) {
if(firstJob == null || secondJob == null) {
throw new IllegalArgumentException("Key cannot be null!");
}
if(firstJob.getName() == null || secondJob.getName() == null) {
throw new IllegalArgumentException("Key cannot have a null name!");
}
chainLinks.put(firstJob, secondJob);
}
@Override
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
JobKey sj = chainLinks.get(context.getJobDetail().getKey());
if(sj == null) {
return;
}
getLog().info("Job '" + context.getJobDetail().getKey() + "' will now chain to Job '" + sj + "'");
try {
context.getScheduler().triggerJob(sj);
} catch(SchedulerException se) {
getLog().error("Error encountered during chaining to Job '" + sj + "'", se);
}
}
}
```
|
```ruby
require_relative '../../spec_helper'
require_relative '../../shared/kernel/complex'
require_relative 'fixtures/Complex'
describe "Kernel.Complex()" do
describe "when passed [Complex, Complex]" do
it "returns a new Complex number based on the two given numbers" do
Complex(Complex(3, 4), Complex(5, 6)).should == Complex(3 - 6, 4 + 5)
Complex(Complex(1.5, 2), Complex(-5, 6.3)).should == Complex(1.5 - 6.3, 2 - 5)
end
end
describe "when passed [Complex]" do
it "returns the passed Complex number" do
Complex(Complex(1, 2)).should == Complex(1, 2)
Complex(Complex(-3.4, bignum_value)).should == Complex(-3.4, bignum_value)
end
end
describe "when passed [Integer, Integer]" do
it "returns a new Complex number" do
Complex(1, 2).should be_an_instance_of(Complex)
Complex(1, 2).real.should == 1
Complex(1, 2).imag.should == 2
Complex(-3, -5).should be_an_instance_of(Complex)
Complex(-3, -5).real.should == -3
Complex(-3, -5).imag.should == -5
Complex(3.5, -4.5).should be_an_instance_of(Complex)
Complex(3.5, -4.5).real.should == 3.5
Complex(3.5, -4.5).imag.should == -4.5
Complex(bignum_value, 30).should be_an_instance_of(Complex)
Complex(bignum_value, 30).real.should == bignum_value
Complex(bignum_value, 30).imag.should == 30
end
end
describe "when passed [Integer/Float]" do
it "returns a new Complex number with 0 as the imaginary component" do
# Guard against the Mathn library
guard -> { !defined?(Math.rsqrt) } do
Complex(1).should be_an_instance_of(Complex)
Complex(1).imag.should == 0
Complex(1).real.should == 1
Complex(-3).should be_an_instance_of(Complex)
Complex(-3).imag.should == 0
Complex(-3).real.should == -3
Complex(-4.5).should be_an_instance_of(Complex)
Complex(-4.5).imag.should == 0
Complex(-4.5).real.should == -4.5
Complex(bignum_value).should be_an_instance_of(Complex)
Complex(bignum_value).imag.should == 0
Complex(bignum_value).real.should == bignum_value
end
end
end
describe "when passed [String]" do
it_behaves_like :kernel_complex, :Complex_method, KernelSpecs
context "invalid argument" do
it "raises Encoding::CompatibilityError if String is in not ASCII-compatible encoding" do
-> {
Complex("79+4i".encode("UTF-16"))
}.should raise_error(Encoding::CompatibilityError, "ASCII incompatible encoding: UTF-16")
end
it "raises ArgumentError for unrecognised Strings" do
-> {
Complex("ruby")
}.should raise_error(ArgumentError, 'invalid value for convert(): "ruby"')
end
it "raises ArgumentError for trailing garbage" do
-> {
Complex("79+4iruby")
}.should raise_error(ArgumentError, 'invalid value for convert(): "79+4iruby"')
end
it "does not understand Float::INFINITY" do
-> {
Complex("Infinity")
}.should raise_error(ArgumentError, 'invalid value for convert(): "Infinity"')
-> {
Complex("-Infinity")
}.should raise_error(ArgumentError, 'invalid value for convert(): "-Infinity"')
end
it "does not understand Float::NAN" do
-> {
Complex("NaN")
}.should raise_error(ArgumentError, 'invalid value for convert(): "NaN"')
end
it "does not understand a sequence of _" do
-> {
Complex("7__9+4__0i")
}.should raise_error(ArgumentError, 'invalid value for convert(): "7__9+4__0i"')
end
it "does not allow null-byte" do
-> {
Complex("1-2i\0")
}.should raise_error(ArgumentError, "string contains null byte")
end
end
context "invalid argument and exception: false passed" do
it "raises Encoding::CompatibilityError if String is in not ASCII-compatible encoding" do
-> {
Complex("79+4i".encode("UTF-16"), exception: false)
}.should raise_error(Encoding::CompatibilityError, "ASCII incompatible encoding: UTF-16")
end
it "returns nil for unrecognised Strings" do
Complex("ruby", exception: false).should == nil
end
it "returns nil when trailing garbage" do
Complex("79+4iruby", exception: false).should == nil
end
it "returns nil for Float::INFINITY" do
Complex("Infinity", exception: false).should == nil
Complex("-Infinity", exception: false).should == nil
end
it "returns nil for Float::NAN" do
Complex("NaN", exception: false).should == nil
end
it "returns nil when there is a sequence of _" do
Complex("7__9+4__0i", exception: false).should == nil
end
it "returns nil when String contains null-byte" do
Complex("1-2i\0", exception: false).should == nil
end
end
end
describe "when passes [String, String]" do
it "needs to be reviewed for spec completeness"
end
describe "when passed an Object which responds to #to_c" do
it "returns the passed argument" do
obj = Object.new; def obj.to_c; 1i end
Complex(obj).should == Complex(0, 1)
end
end
describe "when passed a Numeric which responds to #real? with false" do
it "returns the passed argument" do
n = mock_numeric("unreal")
n.should_receive(:real?).any_number_of_times.and_return(false)
Complex(n).should equal(n)
end
end
describe "when passed a Numeric which responds to #real? with true" do
it "returns a Complex with the passed argument as the real component and 0 as the imaginary component" do
n = mock_numeric("real")
n.should_receive(:real?).any_number_of_times.and_return(true)
result = Complex(n)
result.real.should equal(n)
result.imag.should equal(0)
end
end
describe "when passed Numerics n1 and n2 and at least one responds to #real? with false" do
[[false, false], [false, true], [true, false]].each do |r1, r2|
it "returns n1 + n2 * Complex(0, 1)" do
n1 = mock_numeric("n1")
n2 = mock_numeric("n2")
n3 = mock_numeric("n3")
n4 = mock_numeric("n4")
n1.should_receive(:real?).any_number_of_times.and_return(r1)
n2.should_receive(:real?).any_number_of_times.and_return(r2)
n2.should_receive(:*).with(Complex(0, 1)).and_return(n3)
n1.should_receive(:+).with(n3).and_return(n4)
Complex(n1, n2).should equal(n4)
end
end
end
describe "when passed two Numerics and both respond to #real? with true" do
it "returns a Complex with the passed arguments as real and imaginary components respectively" do
n1 = mock_numeric("n1")
n2 = mock_numeric("n2")
n1.should_receive(:real?).any_number_of_times.and_return(true)
n2.should_receive(:real?).any_number_of_times.and_return(true)
result = Complex(n1, n2)
result.real.should equal(n1)
result.imag.should equal(n2)
end
end
describe "when passed a single non-Numeric" do
it "coerces the passed argument using #to_c" do
n = mock("n")
c = Complex(0, 0)
n.should_receive(:to_c).and_return(c)
Complex(n).should equal(c)
end
end
describe "when passed a non-Numeric second argument" do
it "raises TypeError" do
-> { Complex(:sym, :sym) }.should raise_error(TypeError)
-> { Complex(0, :sym) }.should raise_error(TypeError)
end
end
describe "when passed nil" do
it "raises TypeError" do
-> { Complex(nil) }.should raise_error(TypeError, "can't convert nil into Complex")
-> { Complex(0, nil) }.should raise_error(TypeError, "can't convert nil into Complex")
-> { Complex(nil, 0) }.should raise_error(TypeError, "can't convert nil into Complex")
end
end
describe "when passed exception: false" do
describe "and [Numeric]" do
it "returns a complex number" do
Complex("123", exception: false).should == Complex(123)
end
end
describe "and [non-Numeric]" do
it "swallows an error" do
Complex(:sym, exception: false).should == nil
end
end
describe "and [non-Numeric, Numeric] argument" do
it "throws a TypeError" do
-> { Complex(:sym, 0, exception: false) }.should raise_error(TypeError, "not a real")
end
end
describe "and [anything, non-Numeric] argument" do
it "swallows an error" do
Complex("a", :sym, exception: false).should == nil
Complex(:sym, :sym, exception: false).should == nil
Complex(0, :sym, exception: false).should == nil
end
end
describe "and non-numeric String arguments" do
it "swallows an error" do
Complex("a", "b", exception: false).should == nil
Complex("a", 0, exception: false).should == nil
Complex(0, "b", exception: false).should == nil
end
end
describe "and nil arguments" do
it "swallows an error" do
Complex(nil, exception: false).should == nil
Complex(0, nil, exception: false).should == nil
Complex(nil, 0, exception: false).should == nil
end
end
end
it "freezes its result" do
Complex(1).frozen?.should == true
end
end
```
|
Khalil Khalil (born 1941) is a Lebanese barrister and former diplomat who served as the ambassador of Lebanon in various countries from 1971 to 1994.
Early life and education
Khalil was born in Tyre on 8 February 1941. He hails from a Shiite family. His parents are Kazem Khalil, a politician, and Mouzayan Haidar.
Khalil received a degree in law from the American University of Beirut.
Career
Following his graduation Khalil worked as a barrister. Then he joined the Ministry of Foreign Affairs. His first diplomatic post was the ambassador of Lebanon to Iran which he held between September 1971 and September 1978. He was named as the ambassador of Lebanon to the Federal Republic of Germany in October 1978 and remained in office until July 1983. He was the director general of legal affairs department at the Ministry of Foreign Affairs between 1983 and 1985. He was the ambassador of Lebanon to the Netherlands from September 1985 to 1990. Next he was appointed ambassador of Lebanon to Turkey in 1991 which he held until 1994. He resigned from diplomatic post on 21 June 1996.
Activities
During his diplomatic post in Iran Khalil closely worked with Shah Mohammad Reza Pahlavi. One of their collaborative activities was to curtail the popularity of Musa Al Sadr, a powerful Lebanese Shia figure. Khalil's family was not on good terms with Musa Al Sadr due to the conflicts between Al Sadr and Nasser Khalil, brother of Khalil Khalil. Khalil was also close to the Iranian politician Asadollah Alam.
Khalil is among the signatories of a document protesting the sectarian approach of two Shia political groups, Amal and Hezbollah. The document was issued on 9 June 2020.
References
20th-century Lebanese diplomats
20th-century Lebanese lawyers
1941 births
Living people
Ambassadors of Lebanon to Iran
Ambassadors of Lebanon to West Germany
Ambassadors of Lebanon to Turkey
People from Tyre, Lebanon
Lebanese Shia Muslims
American University of Beirut alumni
|
```java
`Math` vs `StrictMath` in java
Converting numbers to strings
Equals operation on different data types
Double brace initialization
Retrieve the component type of an array
```
|
Graham Futcher (born 15 June 1953) is a former professional footballer who played in the Football League his hometown club Chester. He is best known as the oldest of three brothers to play for the club during this period.
A forward, Futcher came through Chester's youth ranks and made his first-team debut as an 18-year-old in a Football League Cup tie against Tranmere Rovers in August 1971. His Football League debut followed two months later at Cambridge United, the first of ten appearances over the next two seasons.
Futcher played his last game for Chester in a 1–0 defeat at Lincoln City in March 1973, two weeks before younger brother Paul made his debut for the club. Paul's twin Ron would also go on to play for the first-team the following season and both Paul and Ron would go on to enjoy long careers in the higher levels. Graham did not enjoy such success and he joined Skelmersdale United and later Christleton FC, never playing professional football again.
Graham is the uncle of ex-Wrexham player Stephen Futcher, Fulham midfielder Danny Murphy and Bury defender Ben Futcher.
References
Living people
English men's footballers
Footballers from Chester
Chester City F.C. players
Skelmersdale United F.C. players
English Football League players
Men's association football forwards
1953 births
|
```scala
package io.buoyant.etcd
import com.twitter.finagle.Path
import com.twitter.finagle.http._
import com.twitter.util._
case class NodeOp(
action: NodeOp.Action,
node: Node,
etcd: Etcd.State,
prevNode: Option[Node] = None
)
object NodeOp {
sealed abstract class Action(val name: String) {
override def toString = name
}
object Action {
object Create extends Action("create")
object CompareAndSwap extends Action("compareAndSwap")
object CompareAndDelete extends Action("compareAndDelete")
object Delete extends Action("delete")
object Expire extends Action("expire")
object Get extends Action("get")
object Set extends Action("set")
object Update extends Action("update")
object Watch extends Action("watch")
val All: Seq[Action] = Seq(
Create,
CompareAndSwap,
CompareAndDelete,
Delete,
Expire,
Get,
Set,
Update,
Watch
)
val ByName: Map[String, Action] =
All.map(a => a.name -> a).toMap
case class Invalid(name: String)
extends Exception(s"Invalid action: $name")
def mk(name: String): Try[Action] =
Try.orThrow(ByName.get(name)) { () => Invalid(name) }
}
private[etcd] def mk(
req: Request,
rsp: Response,
key: Path,
params: Seq[(String, String)] = Seq.empty
): Try[NodeOp] = {
val state = Etcd.State.mk(rsp)
(req.method, rsp.status) match {
case (Method.Get | Method.Head | Method.Delete, Status.Ok) =>
Etcd.readJson[Json](rsp.content).flatMap(_.toNodeOp(state))
case (Method.Put | Method.Post, Status.Created | Status.Ok) =>
Etcd.readJson[Json](rsp.content).flatMap(_.toNodeOp(state))
case (method, status) =>
Etcd.readJson[ApiError](rsp.content).transform {
case Return(ae) => Throw(ae)
case Throw(_) => Throw(UnexpectedResponse(method, req.uri, params, status, state))
}
}
}
/**
* Representation of a Node operation, as returned from etcd.
*/
private[etcd] case class Json(
action: String,
node: Option[Node.Json] = None,
prevNode: Option[Node.Json] = None
) {
def toNodeOp(etcd: Etcd.State): Try[NodeOp] =
Action.mk(action).flatMap { action =>
node match {
case None =>
Throw(new Exception("node not specified"))
case Some(node) =>
node.toNode match {
case Throw(e) => Throw(e)
case Return(node) =>
val prev = prevNode match {
case None => Return(None)
case Some(prev) => prev.toNode.map(Some(_))
}
prev.map(NodeOp(action, node, etcd, _))
}
}
}
}
private[etcd] object Json {
def apply(op: NodeOp): Json =
Json(op.action.name, Some(Node.Json(op.node)), op.prevNode.map(Node.Json(_)))
}
}
```
|
```javascript
'use strict';
const execa = require('execa');
const lcid = require('lcid');
const mem = require('mem');
const defaultOptions = {spawn: true};
const defaultLocale = 'en_US';
function getEnvLocale(env = process.env) {
return env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE;
}
function parseLocale(string) {
const env = string.split('\n').reduce((env, def) => {
const [key, value] = def.split('=');
env[key] = value.replace(/^"|"$/g, '');
return env;
}, {});
return getEnvLocale(env);
}
function getLocale(string) {
return (string && string.replace(/[.:].*/, ''));
}
function getLocales() {
return execa.stdout('locale', ['-a']);
}
function getLocalesSync() {
return execa.sync('locale', ['-a']).stdout;
}
function getSupportedLocale(locale, locales = '') {
return locales.includes(locale) ? locale : defaultLocale;
}
function getAppleLocale() {
return Promise.all([
execa.stdout('defaults', ['read', '-globalDomain', 'AppleLocale']),
getLocales()
]).then(results => getSupportedLocale(results[0], results[1]));
}
function getAppleLocaleSync() {
return getSupportedLocale(
execa.sync('defaults', ['read', '-globalDomain', 'AppleLocale']).stdout,
getLocalesSync()
);
}
function getUnixLocale() {
if (process.platform === 'darwin') {
return getAppleLocale();
}
return execa.stdout('locale')
.then(stdout => getLocale(parseLocale(stdout)));
}
function getUnixLocaleSync() {
if (process.platform === 'darwin') {
return getAppleLocaleSync();
}
return getLocale(parseLocale(execa.sync('locale').stdout));
}
function getWinLocale() {
return execa.stdout('wmic', ['os', 'get', 'locale'])
.then(stdout => {
const lcidCode = parseInt(stdout.replace('Locale', ''), 16);
return lcid.from(lcidCode);
});
}
function getWinLocaleSync() {
const {stdout} = execa.sync('wmic', ['os', 'get', 'locale']);
const lcidCode = parseInt(stdout.replace('Locale', ''), 16);
return lcid.from(lcidCode);
}
module.exports = mem((options = defaultOptions) => {
const envLocale = getEnvLocale();
let thenable;
if (envLocale || options.spawn === false) {
thenable = Promise.resolve(getLocale(envLocale));
} else if (process.platform === 'win32') {
thenable = getWinLocale();
} else {
thenable = getUnixLocale();
}
return thenable
.then(locale => locale || defaultLocale)
.catch(() => defaultLocale);
});
module.exports.sync = mem((options = defaultOptions) => {
const envLocale = getEnvLocale();
let res;
if (envLocale || options.spawn === false) {
res = getLocale(envLocale);
} else {
try {
res = process.platform === 'win32' ? getWinLocaleSync() : getUnixLocaleSync();
} catch (_) {}
}
return res || defaultLocale;
});
```
|
Vladimir Lepko (; 1898–1963) was a Soviet and Russian actor. People's Artist of the RSFSR (1954).
He died 19 October 1963 and is buried at Novodevichy Cemetery.
Selected filmography
The Overcoat (1926) (uncredited)
Lieutenant Kijé (1934) (uncredited)
Lyotchiki (1935)
The Lonely White Sail (1937)
Wish upon a Pike (1938)
The Train Goes East (1947)
They Have a Motherland (1949)
Cossacks of the Kuban (1950)
The Miners of Donetsk (1950) (uncredited)
True Friends (1954) (uncredited)
Did We Meet Somewhere Before (1954)
The Rumyantsev Case (1955)
Ivan Brovkin on the State Farm (1955)
Be Careful, Grandma! (1960)
References
External links
1898 births
1963 deaths
Burials at Novodevichy Cemetery
Honored Artists of the RSFSR
People's Artists of the RSFSR
Soviet male actors
Russian male actors
|
Sergio Martínez (8 September 1943 – 2 October 1979) was a Cuban cyclist. He competed in the individual road race and the team pursuit events at the 1968 Summer Olympics.
References
External links
1943 births
1979 deaths
Cuban male cyclists
Olympic cyclists for Cuba
Cyclists at the 1968 Summer Olympics
Sportspeople from Havana
|
James Robertson Brown (19 July 1925 – 7 November 2008) was a Scottish football goalkeeper, who played for Heart of Midlothian, Kilmarnock, St Mirren, Stranraer and Falkirk in the Scottish Football League. He was also temporarily loaned to Southend and East Fife.
Brown played for Scotland in every match of a tour of North America in 1949. The last match of the tour was against the United States, but the Scottish Football Association does not consider this match to be a full international.
References
External links
1925 births
2008 deaths
People from Buckhaven
Men's association football goalkeepers
Scottish men's footballers
Heart of Midlothian F.C. players
Kilmarnock F.C. players
St Mirren F.C. players
Stranraer F.C. players
Falkirk F.C. players
Scottish Football League players
Scottish expatriate men's footballers
Expatriate men's soccer players in Canada
Southend United F.C. players
East Fife F.C. players
Footballers from Fife
|
Paavai Engineering College (PEC) was established in 2001 at Namakkal, Tamil Nadu, India. It is affiliated to Anna University and part of the Paavai Institutions along with Paavai College of Engineering, Paavai College of Technology . It is accredited by the National Board of Accreditation (NBA).
History
Paavai Engineering College started in 2001. Before that Paavai Polytechnic college was started in 1998. The first batch passed out in 2005.
Academics
There are Ten Undergraduate departments, granting BE in Civil Engineering, Computers Science Engineering, Electronics & Communication Engineering, Electrical & Electronics Engineering, Mechanical Engineering, Information Technology, Mechatronics Engineering, Agriculture Engineering, Aeronautical Engineering, Chemical engineering.
The first four courses are accredited by the NBA. Postgraduate courses, granting ME are taught in Computer Science, Engineering Design, Power Electronics & Drivers and VLSI Design. PEC also grants degrees for Master Of Computer Application and Master Of Business Administration.
65% of the students are admitted through Anna University single window counseling and the rest are through entrance exams (PEEE).
Technical symposium
The ten BE departments are conducting national level technical symposium every academic year , namely Techfinix
Techfinix'18(Academic Year 2017-2018)
http://pec.paavai.edu.in/Techfinix18
Techfinix'16(Academic year 2016-2017)
http://paavai.edu.in/paavai-events/pec_symposium/
Activities
Vintage cars were displayed during the Mechanical Engineering department's symposium "Plasma 2008" in 2008.
Timeline
2008- 3rd graduation day ceremony was held. Dr. C. Subramaniam, vice-chancellor, Tamil University, Thanjavur was the chief guest.
2009- 4th graduation day ceremony was held in March. VIT University Chancellor G. Viswanathan was chief guest.
2010- 5th graduation day ceremony was held in March.M.Thangaraju, Periyar University Vice-Chancellor, was the chief guest for the graduation day. Mupperum Vizha, Graduation Day, Toppers Noon and Cultural Festival of Paavai Educational Institutions were celebrated. Society of Civil Engineers (SCE) was inaugurated . Post Graduate programmes in the institutions of Paavai Educational Group was inaugurated by K.Karunakaran, Vice-Chancellor, Anna University of Technology, Coimbatore.
2011- 6th graduation day ceremony was held in March.SRM Institute of Science and Technology Chancellor and Founder of Indiya Jananayaka Katchi (IJK) T.R. Pachamuthu was the chief guest. BusinessLine Club was launched in October.
2012-The 11th annual day of PEC was organised in February.Poet, orator and writer Kabilan Vairamuthu was the chief guest. The seventh graduation day was held in May.P. Mannar Jawahar, Vice-Chancellor, Anna University, Chennai was the chief guest.
2014- The 13th annual day was held on 6 February 2014. Kiran Bedi was the chief guest.
Sports achievements
Paavai Engineering College is the "Champion of Champions" at The Anna University Sports Board competitions http://paavai.edu.in/campus-life/sports-games/
Placements at PEC
PEC reported a notable increase in placements in the academic year 2006−2007. In January 2006,a job fair war held in Paavai Institutions in which companies including MPhasis, Hurix Systems, HCL, SPI Technologies and KGISL participated in the fair. One company that conducted a recruitment drive at the campus in 2007 was Chennai-based Care Voyant Technologies. Paavai also promote "find your own job program" where student has to find their job.
Features
Microsoft Innovation center ,
Infosys Campus Connect ,
Canbridge ESOL Examination Center,
Spoken Tutorial,
QEEE Center,
Paavai Moodle It promotes English.
References
External links
PEC Website
Engineering colleges in Tamil Nadu
Colleges affiliated to Anna University
Education in Namakkal district
Educational institutions established in 2001
2001 establishments in Tamil Nadu
|
```go
package client // import "github.com/docker/docker/client"
import (
"context"
"encoding/json"
"net/url"
"github.com/docker/docker/api/types/filters"
volumetypes "github.com/docker/docker/api/types/volume"
)
// VolumeList returns the volumes configured in the docker host.
func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volumetypes.VolumeListOKBody, error) {
var volumes volumetypes.VolumeListOKBody
query := url.Values{}
if filter.Len() > 0 {
filterJSON, err := filters.ToParamWithVersion(cli.version, filter)
if err != nil {
return volumes, err
}
query.Set("filters", filterJSON)
}
resp, err := cli.get(ctx, "/volumes", query, nil)
defer ensureReaderClosed(resp)
if err != nil {
return volumes, err
}
err = json.NewDecoder(resp.body).Decode(&volumes)
return volumes, err
}
```
|
Sergey Alekseevich Osipenko (; born March 6, 1970), known as The Rossoshansky Maniac (), is a Kazakhstani-Russian serial killer and rapist. From 2005 to 2006, he murdered 4 girls and women in the Voronezh Oblast.
Biography
In the 1990s, he worked in the Ministry of Internal Affairs of Kazakhstan. In 1999, Osipenko moved from his native Kazakhstan to the city of Rossosh, settling on the market to sell products to other vendors. He was fond of psychology and criminology, was married, and had a daughter.
Osipenko committed the murders in a pattern: he would follow his victim, who lived in five-storey houses on the upper floors, go into the apartment with them, then rape and kill the owner, before plundering the place.
On January 24, 2005, in Rossosh, Osipenko killed his first victim, 17-year-old Anna Berezhnaya. The killer attacked her as soon as she entered her apartment, beating the girl and threatening her with a knife. He then forced her to go to the bedroom, cut off her clothes, taping her mouth with a plaster, raping and finally killing her with a piece of metal pipe.
On August 17, 2005, in Voronezh, he raped and killed 38-year-old Elena Meleshko.
On January 25, 2006, in Voronezh, Osipenko attacked 15-year-old Anna Pobedinskaya, who was returning from school, raping and then killing her.
On March 6, 2006, in Rossosh, he raped and killed 13-year-old Yulia Yatskaya, who lived in the same neighborhood as Berezhnaya.
There was a witness who saw Osipenko on the day of Yatskaya's murder, drawing attention to his short height of 167 cm.
The killer planned to leave for Kazakhstan, but on April 6, 2006, he was detained at a railway station in the Kurgan Oblast. He did not resist arrest, and spoke freely of his crimes.
In late September 2006, the Voronezh Regional Prosecutor's Office forwarded the Osipenko case, consisting of 16 volumes, to the court. He requested that his case be tried by jury, in the hope of gaining leniency and avoiding life imprisonment. But on December 7, the Voronezh Regional Court delivered a verdict, according to which Osipenko was found guilty and did not deserve leniency. On December 14, he was sentenced to life imprisonment. The Supreme Court of Russia upheld the sentence.
He is serving his sentence in the "Polar Owl" colony.
In the media
Documentary film "Who will stop a maniac?" from the series by Vakhtang Mikeladze "Sentenced for life"
See also
List of Russian serial killers
External links
Domestic serial killers of different years (late 20th-beginning of 21st century)
Short maniac killed by Freud
Pulp Fiction. For which the serial maniac from the Voronezh Oblast thanked the police
Toptun on the "hunt". 10 years ago, a rapist maniac caused panic among the townspeople
"Rossoshansky Maniac" sentenced to life imprisonment
7 most bloodthirsty murderers of the Voronezh Oblast
1970 births
Kazakhstani emigrants to Russia
Living people
People from Karaganda Region
Russian murderers of children
Russian people convicted of child sexual abuse
Russian rapists
Russian serial killers
Serial killers who worked in law enforcement
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_TORQUE_LS_JSON_PARSER_H_
#define V8_TORQUE_LS_JSON_PARSER_H_
#include "src/base/macros.h"
#include "src/base/optional.h"
#include "src/torque/ls/json.h"
#include "src/torque/utils.h"
namespace v8 {
namespace internal {
namespace torque {
namespace ls {
struct JsonParserResult {
JsonValue value;
base::Optional<TorqueMessage> error;
};
V8_EXPORT_PRIVATE JsonParserResult ParseJson(const std::string& input);
} // namespace ls
} // namespace torque
} // namespace internal
} // namespace v8
#endif // V8_TORQUE_LS_JSON_PARSER_H_
```
|
Li Zhouzhe (; 1944 — 2002) was a Chinese footballer who played as a right winger.
Playing career
In 1964, Li began his senior career with the Air Force Football Team.
In 1969, Li's performances led to him being called-up for China. Li played in both the 1974 Asian Games and the 1976 AFC Asian Cup, scoring a hat-trick against Brunei in a 10–1 victory whilst qualifying for the latter tournament on 19 June 1975.
Managerial career
In 1977, following his retirement from football a year prior, Li began coaching at Bayi, managing the first team, second team and youth teams for a period of 18 years.
In December 1996, Li was appointed head coach of newly formed club . On 13 May 1997, Li was sacked from Harbin Lange due to poor results.
References
1944 births
2002 deaths
People from Jixi
Footballers from Heilongjiang
Men's association football wingers
Chinese men's footballers
China men's international footballers
Footballers at the 1974 Asian Games
1976 AFC Asian Cup players
Chinese football managers
Chinese people of Korean descent
Asian Games competitors for China
|
Tony Rice Plays and Sings Bluegrass is an album by American guitarist Tony Rice, released in 1993.
Track listing
"I've Waited as Long as I Can" (Hylo Brown) – 2:58
"Brown Mountain Light" (Scotty Wiseman) – 3:40
"How Mountain Girls Can Love" (Ruby Rakes) – 2:26
"Carolina Star" (Hugh Moffatt) – 3:09
"Thunderclouds of Love" (J. Hedre) – 2:50
"On and On" (Bill Monroe) – 3:04
"This Morning at Nine" (Sid Campbell) – 2:18
"I Wonder Where You Are Tonight" (Johnny Bond) – 3:12
"Galveston Flood" (John Duffey, Tom Rush) – 3:28
"Will You Be Loving Another Man?" (Lester Flatt, Monroe) – 3:01
"Girl from the North Country" (Bob Dylan) – 4:19
"Ain't Nobody Gonna Miss Me When I'm Gone" (Flatt) – 2:50
"I'll Stay Around" (Flatt) – 3:21
Personnel
Tony Rice – guitar, vocals
Vassar Clements – fiddle
Jerry Douglas – dobro
Sam Bush – mandolin, vocals
Mark Schatz – bass
Jimmy Gaudreau – mandolin, vocals
Larry Rice – mandolin, vocals
Mike Auldridge – dobro, vocals
Rico Petrucelli – bass
John Duffey – mandolin, vocals
Bill Emerson – banjo, vocals
Production notes:
Tony Rice – producer
Bill Wolf – producer, engineer
David Glasser – mastering
Tim Talley – photography
Jack Tottle – liner notes
Scott Billington – design
References
1993 albums
Tony Rice albums
Rounder Records albums
|
Tadeáš Polanský, , (1713 – 1770) was a Jesuit theologian and scientist in the field of physics.
Life
Tadeáš Polanský was since 1734 lecturing at a Gymnasium (school) in Uherské Hradiště. Later he became professor of dogmatics at University of Olomouc. Apart from theology, he was, together with Polanský Jan Nepomuk (1723 – 1776), active in the field of physics, researching lightning and thunder, colors, phases of Venus, primary and secondary rainbow, and other. In years 1760 – 1761, Polanský became dean of the University's Faculty of Theology.
He was lecturing in Olomouc at the time when Joseph II, Holy Roman Emperor stepped up his fight for absolute power, effectively restricting the Jesuit monopoly in education. At the University of Olomouc, the struggle was taking place particularly between the conservative Jesuits and a proponent of enlightenment ideas Josef Vratislav Monse.
Polanský's book Manudictio sacerdotis ad com-modissime subeundum examen pro approbatione et jurisdictione, printed in 1762, was banned in 1769. Later, in February 1771, a directive explicitly ordered Ausrottung (extermination) of the book, while another one from May 1771 introduced heavy fines for mere possession of the book.
Main works
Dissertatio Physico-Experimentalis Juxta Principia Aristotelis, et scholae peripateticae De tonitruo, fulgore, Seu Coruscatione, ac Fulmine, Contra Sensa, & Opiniones Antiperipateticorum, Luci publicae proposita ..., Olomouc 1747
Experimenta Animae Sensiteriö Gustûs Sapores examinantis Juxta Veriora, & saniora Peripateticorum Dogmata Physiologicè siscussa, Olomouc 1748
Tractatus Theologicus De Admirabili Filii Dei Incarnatione, Olomouc 1751
Tractatus Theologico-Speculativo-Dogmaticus In Primam Secundae Doctoris Angelici Divi Thomae Aquinatis Praecipuè à quaestione 51. De Virtutibus, Vitiis, Peccatis, Gratia, Justificatione, Et Merito, Usui Auditorum Accommodatus, Olomouc 1752
Tractatus Theologico-Dogmatico-Scholasticus In Primam Secundae Doctoris Angelici Divi Thomae Aquinatis De Actibus Humanis Et Beatitudine. Itèm In Primam Partem Ejusdem Doctoris Angelici à quaestione 50. usque ad quaestionem 64. inclusivè, & à quaestione 106. usque ad 107. pariter inclusivè, De Excellenti Angelorum Natura Usui Auditorum accommodatus, Olomouc 1753
Tractatus Theologico-Dogmaticus De Sacramentis Novae Legis Cumprimis De Baptismo, Confirmatione, Evcharistia Ex Tertia Parte Summae D. Thomae Aquinatis à Quaestione 60. usque ad 84. exclusivè, & in quartum Sententiarum à Distinctione I. usque ad Distinctionem 13. inclusivè Aptatus Practico Studio Auditorum Sacrae Theologiae In Alma, Caesarea, et Regia Universitate Olomucensi Societatis Jesu Pro Anno 1753. vergente in 1754. Cum Licentia Ordinarii, Olomouc 1754
Assertiones Ex Universa Theologia Quas In Alma Caesarea, Regia, Ac Episcopali Universitate Olomucensi Societatis Jesu E Praelectionibus Reverendi, Olomouc 1756
Tractatus de Verbi Divini Incarnatione, Olomouc 1757
Tractatus De Sacramentis In Communi, Et De Baptismo, Confirmatione, Et Eucharistia, Olomouc 1758
Tractatus de poenitentia Anno a reparata salute 1759, Olomouc 1759
Manuductio Sacerdotis Ad Commodius Subeundum Examen Pro Approbatione, Et Jurisdictione, Olomouc 1762
References
1713 births
1770 deaths
People from Uherské Hradiště
Czech Jesuits
Czech male writers
Czech science writers
Czech Roman Catholic theologians
Jesuit scientists
Academic staff of Palacký University Olomouc
|
```yaml
{{- /*
*/}}
{{- if and (include "elasticsearch.ingest.enabled" .) .Values.ingest.networkPolicy.enabled }}
kind: NetworkPolicy
apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }}
metadata:
name: {{ template "elasticsearch.ingest.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: ingest
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingest.podLabels .Values.commonLabels ) "context" . ) }}
podSelector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: ingest
policyTypes:
- Ingress
- Egress
{{- if .Values.ingest.networkPolicy.allowExternalEgress }}
egress:
- {}
{{- else }}
egress:
# Allow dns resolution
- ports:
- port: 53
protocol: UDP
- port: 53
protocol: TCP
# Allow outbound connections to other cluster pods
- ports:
- port: {{ .Values.containerPorts.restAPI }}
- port: {{ .Values.containerPorts.transport }}
to:
- podSelector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }}
{{- if .Values.ingest.networkPolicy.extraEgress }}
{{- include "common.tplvalues.render" ( dict "value" .Values.ingest.networkPolicy.extraEgress "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
ingress:
- ports:
- port: {{ .Values.containerPorts.restAPI }}
- port: {{ .Values.containerPorts.transport }}
{{- if not .Values.ingest.networkPolicy.allowExternal }}
from:
- podSelector:
matchLabels:
{{ template "common.names.fullname" . }}-client: "true"
- podSelector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }}
{{- if .Values.ingest.networkPolicy.ingressNSMatchLabels }}
- namespaceSelector:
matchLabels:
{{- range $key, $value := .Values.ingest.networkPolicy.ingressNSMatchLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- if .Values.ingest.networkPolicy.ingressNSPodMatchLabels }}
podSelector:
matchLabels:
{{- range $key, $value := .Values.ingest.networkPolicy.ingressNSPodMatchLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.ingest.networkPolicy.extraIngress }}
{{- include "common.tplvalues.render" ( dict "value" .Values.ingest.networkPolicy.extraIngress "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
```
|
Verneuil may refer to:
Places in France
Verneuil, former municipality, now merged with Moussy-Verneuil, Aisne department
Verneuil, Charente, in the Charente department
Verneuil, Cher, in the Cher department
Verneuil, Marne, in the Marne department
Verneuil, Nièvre, in the Nièvre department
Verneuil-en-Bourbonnais, in the Allier department
Verneuil-en-Halatte, in the Oise department
Verneuil-Grand, in the Meuse department
Verneuil-le-Château, in the Indre-et-Loire department
Verneuil-l'Étang, in the Seine-et-Marne department
Verneuil-Moustiers, in the Haute-Vienne department
Verneuil-Petit, in the Meuse department
Verneuil-sous-Coucy, in the Aisne department
Verneuil-sur-Avre, in the Eure department
Verneuil-sur-Igneraie, in the Indre department
Verneuil-sur-Indre, in the Indre-et-Loire department
Verneuil-sur-Seine, in the Yvelines department
Verneuil-sur-Serre, in the Aisne department
Verneuil-sur-Vienne, in the Haute-Vienne department
People
Aristide Auguste Stanislas Verneuil (1823–1895), a French physician and surgeon
Auguste Victor Louis Verneuil (1856–1913), a French chemist
Henri Verneuil (1920–2002), a French-Armenian playwright and filmmaker
Louis Verneuil (1893–1952), a French writer and actor
Maurice Pillard Verneuil (1869–1942), a French designer
History
Verneuil method or Verneuil process, by which artificial gemstones are grown
Battle of Verneuil, an English victory in the Hundred Years' War
Marquisate de Verneuil, created in 1600 in Verneuil-en-Halatte
Duchy-Peerage of Verneuil, created in 1652, also in Verneuil-en-Halatte
|
```css
Use `border-radius` to style rounded corners of an element
Highlight input forms using `:focus` pseudo-class
Use `:not()` to apply/unapply styles
Select items using negative `nth-child`
Use `SVG` for icons
```
|
Welsh folk music (Welsh: Cerddoriaeth werin Gymreig) refers to music that is traditionally sung or played in Wales, by Welsh people or originating from Wales.
Folk artists include; traditional bands Calan and Ar log; harpists Sian James, Catrin Finch and Nansi Richards and folk singer Dafydd Iwan.
Traditions and history
Early musical traditions during the 17th and 18th centuries saw the emergence of more complex carols, away from the repetitive ceremonial songs. These carols featured complex poetry based on cynghanedd. Some were sung to English tunes, but many used Welsh melodies such as 'Ffarwel Ned Puw'. The most common type of Welsh folk song is the love song, with lyrics pertaining to the sorrow of parting or in praise of the girl. A few employ sexual metaphor and mention the act of bundling. After love songs, the ballad was a very popular form of song, with its tales of manual labour, agriculture and everyday life. Popular themes in the 19th century included murder, emigration and colliery disasters; they were sung to popular melodies from Ireland or North America.
Harp tradition
The manuscript of Robert ap Huw is the earliest surviving harp music in Europe and it comes from Wales.
Cerdd Dant
This tradition descends from the form used by the early bards to sing their poetry to Welsh kings, princes and princesses.
Plygain
Singer Arfon Gwilym explains that "the plygain tradition survives mainly in Montgomeryshire and takes place in churches and chapels over a six week period during Christmas and the new year."
"After a short service, the plygain is declared open and anyone in the audience can take part, as individuals or as small parties, the most common party being three people, singing in close harmony. The singing is always unaccompanied and in the past was dominated by men who sang in a simple folk style that was unique."
Traditional folk songs and ballads
Singer Siân James explains that "a ballad which caught my imagination from a very young age was the very beautiful Yr Eneth ga'dd ei gwrthod (The rejected maiden) - a 19th century ballad from the Cynwyd area near Bala, Gwynedd, which tells the story of a young girl who, finding herself pregnant out of wedlock, is thrown out of her family home by her father, ostracised by her community and left destitute." "It ends with the girl drowning herself. She is found with a water-sodden note in her hand, asking to be buried without a headstone, so her existence would be forgotten."
Dance reels
Thanks to the work of individuals such as Lady Llanover in the 18th century, many of Wales' traditional dance reels have survived.
Macaronic: Bilingual songs
Macaronic songs developed during the industrial revolution in which Welsh speaking people merged with migrant workers to form bilingual songs.
Celtic folk revival
In the 1960s and 1970s Welsh language activism increased significantly. A well known Welsh folk music group is Ar Log: "By the early eighties Ar Log was travelling Europe and North & South America for around nine months of the year with a wealth of traditional Welsh folk music at our disposal, from haunting love songs and harp airs, to melodic dance tunes, and rousing sea shanties."
Modern folk and protest songs
Dafydd Iwan is a singer and composer from Wales known for his political activism during the 1960s, 1970s and 1980s and the campaign for the Welsh language by Cymdeithas yr Iaith, the Welsh Language Movement. He states that "songs have been a natural medium for expressing strong emotions and political protest for centuries, and here in Wales there is a long tradition of ballads with a strong social and political theme". His song Yma o Hyd has now become a traditional song of Welsh defiance and perseverance, sung at international Wales football matches.
Traditional instruments
Harp
The instrument most commonly associated with Wales is the harp, which is generally considered to be the country's national instrument. Though it originated in Italy, the triple harp (telyn deires, "three-row harp") is held up as the traditional harp of Wales: it has three rows of strings, with every semitone separately represented, while modern concert harps use a pedal system to change key by stopping the relevant strings. After losing ground to the pedal harp in the 19th century, it has been re-popularised through the efforts of Nansi Richards, Llio Rhydderch and Robin Huw Bowen. The penillion are a traditional form of Welsh singing poetry, accompanied by the harp, in which the singer and harpist follow different melodies so that the stressed syllables of the poem coincide with accented beats of the harp melody.
The earliest written records of the Welsh harpists' repertoire are contained in the Robert ap Huw manuscript, which documents 30 ancient harp pieces that make up a fragment of the lost repertoire of the medieval Welsh bards. The music was composed between the 14th and 16th centuries, transmitted orally, then written down in a unique tablature and later copied in the early 17th century. This manuscript contains the earliest body of harp music from anywhere in Europe and is one of the key sources of early Welsh music. The manuscript has been the source of a long-running effort to accurately decipher the music it encodes.
Crwth
Another distinctive instrument is the crwth, also a stringed instrument of a type once widespread in northern Europe. It was played in Wales from the Middle Ages. It was superseded by the fiddle (Welsh Ffidil), but lingered on later in Wales than elsewhere, although it had died out by the nineteenth century at the latest. The fiddle is an integral part of Welsh folk music.
Welsh bagpipes and pibgorn
The Welsh bagpipe is a native Welsh instrument. A related instrument is one type of bagpipe chanter, which when played without the bag and drone is called a pibgorn (hornpipe). The generic term "pibau" (pipes) which covers all woodwind instruments is also used. They have been played, documented, represented and described in Wales since the fourteenth century.
See also
Traditional Welsh costume
Welsh dance
Welsh stepdance
References
Welsh music
Welsh culture
Welsh traditions
British folk music
|
Alexander or Alex Müller may refer to:
K. Alex Müller (1927–2023), Swiss physicist and Nobel laureate
Alex Müller (racing driver) (born 1979), German racing driver
Alexander Müller (skeleton racer), Austrian skeleton racer
Alexander Müller (composer) (1808–1863), German pianist, teacher, conductor and composer
Alexander Müller (politician) (born 1969), German politician
Alexander Müller (chemist) (1828–1906), German agricultural chemist
|
Peter Alan Bell, DO, MBA, FACOEP-dist, FACEP (born Jan. 21, 1958) is an American osteopathic physician. He is the current Vice Provost and Dean at Baptist College of Health Sciences, now known as Baptist Health Sciences University in Memphis, TN. Additionally, Bell is nationally known for his continued work on health policy reform and the impact of health policy on the medical profession. Finally, Bell has served as president of the Ohio Osteopathic Association (OOA) and the National President of The American College of Osteopathic Emergency Physicians (ACOEP).
Education
Bell was born in Abington, Pennsylvania, in 1958, to Clyde H. Bell and Dorothy B. Bell. His family moved to Penfield, New York, where he was a resident until his graduation from high school in 1976. After obtaining an undergraduate degree at Hamilton College in 1980, he then attended the University of New England College of Osteopathic Medicine, where he obtained his Doctor of Osteopathic Medicine (D.O.) degree in 1984. Post-graduation, Bell completed a traditional internship and a residency in family medicine, at the Metropolitan Hospital/Parkview, in Philadelphia, Pennsylvania. He then completed a second residency in emergency medicine at Grandview Hospital and Medical Center, located Dayton, Ohio. In 2008, Bell graduated first in his class from Ohio University's Executive Masters in Business Program.
Career
In 1988, Bell became the emergency department medical director at OhioHealth Doctors Hospital in Columbus, Ohio. In 1991, he founded the emergency medicine residency program at Doctors Hospital and since then has helped establish emergency medicine programs in other midwestern states. Ohio University College of Medicine (now the Ohio University Heritage College of Osteopathic Medicine- OUHCOM) hired Bell as a regional dean in 1995 under Barbara Ross-Lee, DO.
In 2014, OUHCOM expanded and opened two more campuses at OhioHealth in Dublin, Ohio, and at Cleveland Clinic. Bell was a key member in the creation and opening of the medical schools.
Bell graduated in 2000 from the American Osteopathic Association (AOA) National Health Policy Fellowship and was chairman of the OOA’s Health Policy Committee from 2002 to 2017. His focus has always been on cost, quality, and access to care as well as tort reform.
From 1995–2004, Bell was editor-in-chief of the American College of Osteopathic Emergency Medicine Newsletter, The Pulse. He is also on the Western Journal of Emergency Medicine Advisory Board from (2011–present) and joined the editorial board in 2013.
Bell has participated in Grants and Research involving more than $100 million. He has published dozens of papers and editorials, led the development and implementation of hundreds of scholarly projects, and regularly presents at national and international forums.
In 2012, Bell received the Lifetime Achievement Award from the American College of Osteopathic Emergency Physicians.
In 2017, Bell was appointed dean of Liberty University College of Osteopathic Medicine (LUCOM). Bell orchestrated the accreditation of the new medical school. Liberty University College of Osteopathic Medicine graduated its first class in May 2018. To celebrate this achievement, Dr. Ben Carson was invited to the graduation as the keynote speaker. Bell left Liberty University in December 2020.
In September 2020, Bell earned Emeritus Status from the Ohio University Board of Trustees.
In 2022, Bell was awarded the highest honor from the American Osteopathic Association for his service to the discipline. In addition to his work at Baptist Health Sciences University, Bell continues to serve as a faculty member for Doctors Hospital Emergency Medicine Residency.
Baptist Health Sciences University College of Osteopathic Medicine
In 2021, Bell was hired to develop a new College of Osteopathic Medicine in Memphis, TN. In October 2022, the university was awarded candidacy status by the Commission on Osteopathic College Accreditation. The first class will matriculate in fall 2024.
References
Living people
Hamilton College (New York) alumni
University of New England (United States) alumni
American osteopathic physicians
Ohio University alumni
1958 births
|
Maximilian Fretter-Pico (6 February 1892 – 4 April 1984) was a German general during World War II. He was a recipient of the Knight's Cross of the Iron Cross with Oak Leaves of Nazi Germany.
A veteran of WWI, he would serve in the Battle of France, in the Eastern Front and in Hungary.
Early life
Fretter-Pico was born on 6 February 1892 in Karlsruhe, Baden-Württemberg, in the German Empire, joining the Field Artillery Regiment "Grand Duke" (1st Badisches) No. 14 (German: Feldartillerie-Regiment „Großherzog“ (1. Badisches) Nr. 14) of the Prussian Army in Karlsruhe on 20 September 1910 as an officer candidate, and attended the Military School in Danzig from March to November 1911. On 27 January 1912 he was promoted to lieutenant (German: Leutnant) and completed a course at the artillery school in Jüterbog from September 1913 to January 1914.
First World War
With his regiment he went to the First World War as an adjutant and took over an anti-balloon gun platoon in January 1915. On 18 September 1915 he was promoted to senior lieutenant (German: Oberleutnant). In May 1916 he gave up his command again and worked as an adjutant in various brigades and divisions until 1918. In January and February 1918 he completed general staff training in the high command of the Army Group Duke Albrecht von Württemberg. Before the end of the war, he was promoted to captain (German: Hauptmann) on 18 October 1918 and as such he was accepted into the Reichswehr.
Interwar Years
There he was first active in the staff of the 1st (Prussian) Artillery Regiment (German: 1. (Preußischen) Artillerie-Regiments) in Königsberg and was then transferred to the staff of Group Command 1 (German: Gruppenkommandos 1) in Berlin until April 1923. This was followed by an activity in the Ministry of the Reichswehr in the Army Operations Department T 1 (German: Heeres-Operationsabteilung T 1) until October 1927, which was only interrupted by a one-year transfer from October 1925 to October 1926 as a company commander in the 6th (Prussian) Artillery Regiment (German: 6. (Preußische) Artillerie-Regiment) in Hanover.
He then returned to Hanover as chief of the 8th Battery of the 6th Artillery Regiment (German: 8. Batterie des 6. Artillerie-Regiments) and held this command until September 1930. After Fretter-Pico had completed a two-month training course at the Army Riding School (German: Heeres-Reitschule), he was transferred to the staff of the 1st Cavalry Division (German: 1. Kavallerie-Division) moved to Königsberg. He stayed there until October 1933. On 1 April 1932 he was promoted to major and on 1 March 1935 to lieutenant colonel (German: Oberstleutnant). In October 1935 he was transferred to the foreign department in the Army High Command and on 1 August 1937 he was promoted to colonel (German: Oberst). In 1938 he was posted to the Turkish Army as a military attaché for a few months until November of the same year. After his return he was appointed Chief of Staff of the General Command of the Saar-Palatinate Border Troops (German: Generalkommandos der Grenztruppen Saarpfalz) in Kaiserslautern.
Second World War
After the beginning of the Second World War, this General Command was renamed XXIV Army Corps on 17 September 1939. As part of the Western Campaign, the corps took part in the fighting in France. On 1 March 1941 Maximilian was promoted to major general (German: Generalmajor) and in April of the same year he was briefly transferred to the Führerreserve. On 19 April 1941 he took over as commander of the 97th Light Infantry Division (German: 97. leichte Infanterie-Division). With this unit he fought from the beginning of Operation Barbarossa, the attack on the Soviet Union, in the area of Army Group South. On 1 November 1941 the division took the city of Artemovsk and, as a measure for the coming winter, expanded it into a supply and refitting center for the 17th Army. To do this, the division had to bring the city out of range of enemy artillery, which was achieved by further advances to the east and the formation of the Troitskoye-Kalinowo-Kaganowitscha line. Although this line went far beyond the defence capabilities of a division and there was insufficient winter equipment, the division was able to repel enemy attacks by the vastly outnumbered enemy troops throughout December.
For the success of his division, Fretter-Pico was awarded the Knight's Cross of the Iron Cross on 27 December 1941 and he was then entrusted the leadership of the XXX. Army Corps. On 15 January 1942 he was promoted to lieutenant general (German: Generalleutnant) and on 1 June 1942 to general of the artillery (German: General der Artillerie) and thus commanding general of the corps (German: Kommandierender General des Korps).
In the winter of 1942/43, Fretter-Pico led the Fretter-Pico army division (German: Armeeabteilung Fretter-Pico), which was temporarily formed from his corps, and then again the XXX. Army Corps. At the beginning of July 1944 he was briefly reassigned to the Führerreserve in order to take over command of the 6th Army in the middle of the month, which was destroyed a little later during the Soviet Jassy-Kishinev operation and then had to be reorganised. Due to the subordination of the Hungarian 2nd and 3rd Army, it was temporarily referred to as the Army Group Fretter-Pico (German: Armeegruppe Fretter-Pico). This formation took part in the Battle of Debrecen, from 6 to 29 October 1944. On 23 December 1944 he gave up his command and was z. b. V. of the Army High Command. This put him on 25 March 1945 as an assessor in the court martial in Torgau against the General der Panzertruppe Walter Fries. Contrary to Hitler's express order, Fries had given up the city of Warsaw, which had been declared a fortress (German: Festung), and had the German troops withdrawn. The trial ended on 30 March 1945 with Fries' acquittal and Fretter-Pico was appointed commander of military district IX, based in Kassel (German: Wehrkreis IX (Kassel)), this being his last command. There he was taken prisoner by the US Army on 22 April 1945 being released in mid-1947.
Post-War Period
In the post-war years he wrote several books in which he dealt with the role of the Wehrmacht.
Maximilian Fretter-Pico died at the age of 92 on 4 April 1984 in Kreuth am Tegernsee. He was buried in Cemetery IV of the Jerusalem and New Churches on Bergmannstrasse in Berlin-Kreuzberg, in the hereditary family grave of the Soltmann family, from which his wife Gertrude (1901-1993) was born.
Family
He was the elder brother of Otto Fretter-Pico (one year younger), also a German general during World War II.
Awards
Iron Cross (1914) 2nd Class (12 October 1914) & 1st Class (23 December 1916)
Knight's Cross 2nd Class of the Order of the Zähringer Lion with Swords (10 October 1914)
Hanseatic Cross of Hamburg (20 January 1918)
Wound Badge in Black (June 1918)
Clasp to the Iron Cross (1939) 2nd Class (31 October 1939) & 1st Class (16 June 1940)
West Wall Medal (22 November 1940)
German Cross in Gold as General der Artillerie and commanding general of the XXX. Armeekorps (19 September 1942)
Knight's Cross of the Iron Cross with Oak Leaves
Knight's Cross as Generalmajor and commander of the 97. leichte Infanterie-Division (26 December 1941)
Oak leaves as General der Artillerie and commanding general of the XXX. Armeekorps (16 January 1944)
Works
Mißbrauchte Infanterie – Deutsche Infanterie-Divisionen im osteuropäischen Großraum 1941 bis 1944 [Mishandled Infantry - German infantry divisions in the Eastern European metropolitan area 1941 to 1944]. Verlag für Wehrwesen Bernard & Graefe, Frankfurt am Main, 1957.
Verlassen von des Sieges Göttern – (Mißbrauchte Infanterie) [Forsaken by the Gods of Victory - (Mishandled Infantry)]. Kyffhäuser Verlag, Wiesbaden, 1969.
Bibliography
Dermot Bradley (Hrsg.): Soldatenschicksale des 20. Jahrhunderts, Band 5: Maximilian Fretter-Pico – Die Jahre danach: Erinnerungen des Generals der Artillerie a. D. 1945 bis 1984 [Soldier Fates of the 20th Century, Volume 5: Maximilian Fretter-Pico - The Years After: Memories of the General of the Artillery a. D. 1945 to 1984]. Biblio-Verlag, Osnabrück 1986, .
Dermot Bradley: Die Generale des Heeres 1921 bis 1945, Band 4 [The Generals of the Army 1921 to 1945, Volume 4]. Biblio-Verlag, Bissendorf 1996, , S. 75 f.
References
Citations
Bibliography
1892 births
1984 deaths
Military personnel from Karlsruhe
German Army generals of World War II
Generals of Artillery (Wehrmacht)
German Army personnel of World War I
Recipients of the clasp to the Iron Cross, 1st class
People from the Grand Duchy of Baden
Recipients of the Gold German Cross
Recipients of the Knight's Cross of the Iron Cross with Oak Leaves
Reichswehr personnel
German prisoners of war in World War II held by the United States
|
```javascript
import React, { Component } from 'react';
import { updateTitle } from '../actions';
class Title extends Component {
constructor(props) {
super(props);
this.exitEdit = this.exitEdit.bind(this);
}
exitEdit() {
this.props.dispatch(updateTitle(this.refs.titleField.value));
}
render() {
const { title, editable } = this.props;
if (editable) {
return (
<h1>
<input type="text" className="title-field"
placeholder="Notebook title"
defaultValue={title}
ref="titleField" title="Notebook title"
onBlur={this.exitEdit}
/>
</h1>
);
}
return (
<h1>
{title}
</h1>
);
}
}
export default Title;
```
|
```raw token data
hostname1/pri/act# show vpn-sessiondb
your_sha256_hash-----------
VPN Session Summary
your_sha256_hash-----------
Active : Cumulative : Peak Concur : Inactive
----------------------------------------------
Site-to-Site VPN : 99 : 3506999 : 99
IKEv2 IPsec : 9 : 3999 : 9
IKEv1 IPsec : 99 : 3502999 : 99
your_sha256_hash-----------
Total Active and Inactive : 99 Total Cumulative : 3506999
Device Total VPN Capacity : 750
Device Load : 2%
your_sha256_hash-----------
your_sha256_hash-----------
Tunnels Summary
your_sha256_hash-----------
Active : Cumulative : Peak Concurrent
----------------------------------------------
IKEv1 : 99 : 3502999 : 99
IKEv2 : 9 : 3999 : 9
IPsec : 99 : 9302 : 99
IPsecOverNatT : 9 : 1999 : 9
your_sha256_hash-----------
Totals : 99 : 351999
your_sha256_hash-----------
```
|
```javascript
/* eslint-disable */
import dynamic from 'next/dynamic'
const Hello = dynamic(
import(/* webpackChunkName: 'hello1' */ '../../components/hello3')
)
const Hello2 = dynamic(
import(/* webpackChunkName: 'hello2' */ '../../components/hello4')
)
export default () => {
return (
<div>
<Hello />
<Hello />
<Hello />
<Hello />
<Hello />
<Hello />
<Hello />
</div>
)
}
```
|
```smalltalk
using System;
namespace g3
{
// ported from WildMagic5
public class IntrLine2Triangle2
{
Line2d line;
public Line2d Line
{
get { return line; }
set { line = value; Result = IntersectionResult.NotComputed; }
}
Triangle2d triangle;
public Triangle2d Triangle
{
get { return triangle; }
set { triangle = value; Result = IntersectionResult.NotComputed; }
}
public int Quantity = 0;
public IntersectionResult Result = IntersectionResult.NotComputed;
public IntersectionType Type = IntersectionType.Empty;
public bool IsSimpleIntersection {
get { return Result == IntersectionResult.Intersects && Type == IntersectionType.Point; }
}
public Vector2d Point0;
public Vector2d Point1;
public double Param0;
public double Param1;
public IntrLine2Triangle2(Line2d l, Triangle2d t)
{
line = l; triangle = t;
}
public IntrLine2Triangle2 Compute()
{
Find();
return this;
}
public bool Find()
{
if (Result != IntersectionResult.NotComputed)
return (Result == IntersectionResult.Intersects);
// [RMS] if either line direction is not a normalized vector,
// results are garbage, so fail query
if ( line.Direction.IsNormalized == false ) {
Type = IntersectionType.Empty;
Result = IntersectionResult.InvalidQuery;
return false;
}
Vector3d dist = Vector3d.Zero;
Vector3i sign = Vector3i.Zero;
int positive = 0, negative = 0, zero = 0;
TriangleLineRelations(line.Origin, line.Direction, triangle,
ref dist, ref sign, ref positive, ref negative, ref zero);
if (positive == 3 || negative == 3) {
// No intersections.
Quantity = 0;
Type = IntersectionType.Empty;
} else {
Vector2d param = Vector2d.Zero;
GetInterval(line.Origin, line.Direction, triangle, dist, sign, ref param);
Intersector1 intr = new Intersector1(param[0], param[1], -double.MaxValue, +double.MaxValue);
intr.Find();
Quantity = intr.NumIntersections;
if (Quantity == 2) {
// Segment intersection.
Type = IntersectionType.Segment;
Param0 = intr.GetIntersection(0);
Point0 = line.Origin + Param0*line.Direction;
Param1 = intr.GetIntersection(1);
Point1 = line.Origin + Param1*line.Direction;
} else if (Quantity == 1) {
// Point intersection.
Type = IntersectionType.Point;
Param0 = intr.GetIntersection(0);
Point0 = line.Origin + Param0*line.Direction;
} else {
// No intersections.
Type = IntersectionType.Empty;
}
}
Result = (Type != IntersectionType.Empty) ?
IntersectionResult.Intersects : IntersectionResult.NoIntersection;
return (Result == IntersectionResult.Intersects);
}
public static void TriangleLineRelations (
Vector2d origin, Vector2d direction,
Triangle2d tri, ref Vector3d dist, ref Vector3i sign,
ref int positive, ref int negative, ref int zero)
{
positive = 0;
negative = 0;
zero = 0;
for (int i = 0; i < 3; ++i) {
Vector2d diff = tri[i] - origin;
dist[i] = diff.DotPerp(direction);
if (dist[i] > MathUtil.ZeroTolerance)
{
sign[i] = 1;
++positive;
}
else if (dist[i] < -MathUtil.ZeroTolerance)
{
sign[i] = -1;
++negative;
}
else
{
dist[i] = 0.0;
sign[i] = 0;
++zero;
}
}
}
public static void GetInterval (Vector2d origin, Vector2d direction, Triangle2d tri,
Vector3d dist, Vector3i sign, ref Vector2d param)
{
// Project triangle onto line.
Vector3d proj = Vector3d.Zero;
int i;
for (i = 0; i < 3; ++i) {
Vector2d diff = tri[i] - origin;
proj[i] = direction.Dot(diff);
}
// Compute transverse intersections of triangle edges with line.
double numer, denom;
int i0, i1, i2;
int quantity = 0;
for (i0 = 2, i1 = 0; i1 < 3; i0 = i1++) {
if (sign[i0]*sign[i1] < 0) {
if ( quantity >= 2 )
throw new Exception("IntrLine2Triangle2.GetInterval: too many intersections!");
numer = dist[i0]*proj[i1] - dist[i1]*proj[i0];
denom = dist[i0] - dist[i1];
param[quantity++] = numer/denom;
}
}
// Check for grazing contact.
if (quantity < 2) {
for (i0 = 1, i1 = 2, i2 = 0; i2 < 3; i0 = i1, i1 = i2++) {
if (sign[i2] == 0) {
if ( quantity >= 2 )
throw new Exception("IntrLine2Triangle2.GetInterval: too many intersections!");
param[quantity++] = proj[i2];
}
}
}
// Sort.
if ( quantity < 1 )
throw new Exception("IntrLine2Triangle2.GetInterval: need at least one intersection");
if (quantity == 2)
{
if (param[0] > param[1])
{
double save = param[0];
param[0] = param[1];
param[1] = save;
}
}
else
{
param[1] = param[0];
}
}
}
}
```
|
The (, , ; ; sometimes also spelled ) is one of Thailand's national epics. It is a Thai version of the Hindu epic Ramayana. Ramakien is an important part of the Thai literary canon.
King Rama VI was the person who shed the light first on the Ramayana studies in Thailand, by tracing the sources of the , comparing it with the Sanskrit Valmiki Ramayana. He found that the was influenced by three sources: the Valmiki's Ramayana, the Vishnu Purana, and Hanuman Nataka (all three are from Hinduism). A number of versions of the epic were lost in the destruction of Ayutthaya in 1767. Three versions currently exist, one of which was prepared in 1797 under the supervision of (and partly written by) King Rama I. His son, Rama II, rewrote some parts of his father's version for khon drama. The work has had an important influence on Thai literature, art and drama (both the khon and nang dramas being derived from it).
While the main story is similar to that of the Dasaratha Nataka, differences in some tales still prevail. Many other aspects were transposed into a Thai context, such as the clothes, weapons, topography, and elements of nature, which are described as being Thai in style. As Thailand is considered a Theravada Buddhist society, the Buddhist history latent in the serves to provide Thai legends with a creation myth, as well as representations of various spirits which complement beliefs derived from Thai animism.
A painted representation of the is displayed at Bangkok's Temple of Emerald Buddha, and many of the statues there depict characters from it.
Background
The Jatakas including Dasaratha Jataka came to Southeast Asia by means of Buddhist missionaries, Indian traders and scholars who traded with the Khmer kingdoms (such as Funan and Angkor) and Srivijaya, with whom the Indians shared close economic and cultural ties.
The Thai adopted from the Khmer people components of Indianized culture such as the Hindu epic, Ramayana.
In the late first millennium, the epic (written as , but read as ) was adopted by the Thai people. The oldest recordings of the early Sukhothai kingdom, dating from the 13th century, include stories from the Jataka legends. The history of the legends was told in the shade theater (Thai: , ), a shadow-puppet show in a style adopted from Indonesia, in which the characters were portrayed by leather dolls manipulated to cast shadows on a nearby screen while the spectators watched from the other side.
The Thai version of the legends was first written down in the 18th century, during the Ayutthaya Kingdom, following the demise of the Sukhothai government. Most editions, however, were lost when the city of Ayutthaya was destroyed by armies from Burma (modern Myanmar) in the year 1767.
The version recognized today was compiled in the Kingdom of Siam under the supervision of King Rama I (1726–1809), the founder of the Chakri dynasty, which still maintains the throne of Thailand. Between the years of 1799 and 1807, Rama I supervised the writing of the well-known edition and even wrote parts of it. It was also under the reign of Rama I that construction began on the Thai Grand Palace in Bangkok, which includes the grounds of the Wat Phra Kaew, the Temple of the Emerald Buddha. The walls of the Wat Phra Kaew are lavishly decorated with paintings representing stories from the .
Rama II (1766–1824) further adapted his father's edition of the for the khon drama, a form of theater performed by non-speaking Thai dancers with elaborate costumes and masks. Narrations from the were read by a chorus to one side of the stage. This version differs slightly from the one compiled by Rama I, giving an expanded role to Hanuman, the god-king of the apes, and adding a happy ending.
Since its introduction to the Thai people, the has become a firm component of the culture. The of Rama I is considered one of the masterpieces of Thai literature. It is still read and is taught in the country's schools.
In 1989, Satyavrat Shastri translated the into a Sanskrit epic poem (mahakavya) named , in 25 s (cantos) and about 1200 stanzas in 14 metres. This work won eleven national and international awards.
Content
The tales of the are similar to those of the Ramayana, though transferred to the topography and culture of Ayutthaya, where the Avatar of Phra Narai (the Thai incarnation of Vishnu, who is also known as Narayana) is reborn as Phra Ram.
Main figures
Divine beings
Phra Narai/WitsanuVishnu/Narayana
Phra IsuanShiva (who is also known by the epithet Ishvara)
Phra PhromBrahma/Sahampati/Byanma
Phra Uma-thewiconsort of Phra Isuan (Parvati/Uma)
Phra LaksamiLakshmi, the consort of Narai
Phra In (Indra)king of (devas) – lesser celestial deities. Divine father of Phali (Vali)
Mali Warat (Malyavan)god of justice. Maternal grandfather of Thotsakan (Ravana)
Phra Athit (Aditya/Surya)the solar deity. Divine father of Sukhrip (Sugriva)
Phra Phai (Vayu)the wind deity. Father of Hanuman.
Phra Witsawakam/Witsanukam ()the artisan god, responsible for rebuilding Lanka after Hanuman burned it down and creator of Khitkhin (Kishkindha) in Ramayana and Dvaraka (Capital of Krishna's Kingdom) in the Mahabharata.
Human
Phra Ramthe Bodhisatta, son of the king Thotsarot (Dasharatha) of Ayutthaya and the incarnation of Phra Narai.
Nang Sida(Sita) wife of Phra Ram, who embodies purity and fidelity. Incarnation of Lakshmi.
Phra Phrot (Bharata), Phra Lak (Lakshmana) and Phra Satarut (Shatrughna) Younger half-brothers of Phra Ram, who represent the reincarnated possessions of Phra Narai.
Thotsarot(Dasharatha) often called Thao Thotsarot. King of Ayutthaya and father of Phra Ram and his brothers.
Nang Kaosuriya (Kausalya)one of the three wives of Thotsarot, mother of Phra Ram.
Nang Kaiyakesi (Kaikeyi)one of the three wives of Thotsarot, mother of Phra Phrot.
Nang Samutthewi (Sumitra)one of the three wives of Thotsarot, mother of Phra Lak and Phra Satarut.
Allies of Phra Ram
Hanumangod-king of the apes, who supported Phra Ram and acted as his vanara general.
Phali Thirat (Vali)king of Khitkhin (Kishkindha), elder brother of Sukhrip and uncle of Hanuman.
Sukhrip (Sugriva)viceroy of Kitkin, younger brother of Phali and uncle of Hanuman.
Ongkhot (Angada)ape-prince and son of the Pali Thirat and NanMontho(Devi Tara), cousin of Hanuman.
Phiphek (Vibhishana)estranged brother of Thotsakan. He is an excellent astrologist and provided valuable information to Phra Ram in defeating Thotsakan.
Chomphuphan (Jambavan)Bear-prince and adopted son of Phali, an expert in the healing arts and acted as the troop's medic.
Enemies of Phra Ram
Thotsakan (Ravana) (from )king of the rakshasas of Lanka and strongest of Phra Ram's adversaries. Thotsakan has ten faces and twenty arms, and possesses a myriad of weapons.
Intharachit (Indrajit)a son of Thotsakan. Phra Ram's second most powerful adversary. Intharachit uses his bow more than any other weapon. He once fired arrows (Nagabat Arrows) which turned into Nagas (or snakes) in mid-air and rained down on Phra Ram's army. He once had a blessing from the Phra Isuan that he shall not die on land but in the air, and if his severed head were to touch the ground, it will bring down great destruction.
Kumphakan (Kumbhakarna) of Thotsakan and commander of demonic forces.
Maiyarap (Mahiravana)king of the Underworld, embodied as a donkey.
Khon (Khara), Thut (Dushana) and Trisian (Trishira)younger brothers of Thotsakan, and the first three to be killed by Phra Ram, in that order.
Plot
The text can be split into three logical parts: the first one dealing with the origins of the main characters, the second depicting the dramatic events including the fall of Thotsakan, and the final part describing what happened afterwards.
Part One
The first part begins with the story of Phra Narai in the form of a boar vanquishing the demon Hiranyaksha. This is followed by an account of the origins of the ancestors of Thotsakan. According to Ramakien, Phra Isuan grants his servant Nonthok (Bhasmasura) a boon which enables him to change his finger into a diamond and destroy anyone at whom he points it. As Nonthok begins to abuse this power, Phra Narai assumes the form of a charming woman who dances in front of Nonthok, who tries to imitate the movement of her hands. At one moment, he points the diamond finger towards himself and instantly dies. Nonthok is later reborn as Thotsakan. He also has four brothers and a sister, as well as half-siblings. Thotsakan first marries Kala Akhi (Mandodari), the daughter of Kala Nakha (Mayasura) of the underworld, and later receives Nang Montho as a gift from Phra Isuan. Thotsakan and Kala Akhi have a son with the first name Ronapak (Meghanada); after his victory over Indra, he is called Intharachit(Winner of Indra).
The text then explains the origins of the simian characters Phali and Sukhrip. They are born to Kala Acana (Anjana), the wife of king Khodam (Kesari), as a result of her adultery with Phra In and Phra Athit. When king Khodam immerses them in a lake to test their legitimacy, they turn into monkeys and vanish into the forest. Phra Isuan grants Phali a magic trident which will transfer to Phali half the strength of anyone fighting him. Sukhrip is rewarded with a beautiful young maiden Dara (Tara), but Phali takes her for himself. Later, Phali also seizes Thotsakan's consort Nang Montho and they have a son named Ongkhot before she is returned to Thotsakan. Finally, Phali banishes Sukhrip to the forest where he meets Hanuman.
Hanuman is said to be born after Phra Isuan places his celestial weapons in the mouth of Sawaha, the daughter of Kala Acana. Hanuman at first stays with Phali and Sukhrip, but later decides to join Sukhrip in his banishment in the forest.
Rama, known in the Ramakien as Phra Ram, has ancestors tracing back to Phra Narai through King Thotsarot. Phra Ram himself is a reincarnation of Phra Narai, and his brothers Phra Lak, Phra Phrot and Phra Satarut are manifestations of Phra Narai's emblems: the serpent, the discus, and the mace, respectively. Phra Ram's consort Nang Sida is a reincarnation of Phra Narai's consort Laksami, but she is born as the daughter of Thotsakan in Lanka and adopted by king Chonok (Janaka) of Mithila.
Part Two
Part two deals with the main drama of the story. Phra Ram and Nang Sida fall in love at first sight before an archery contest. A hunchback named Kucci (Manthara) instigates the queen to ask for the banishment of Phra Ram. He sets off to live in the forest with Nang Sida and his brother Phra Lak, where they meet Sammanakha (Surpanakha) who took on the form of a beautiful maiden. She tries to seduce the two brothers, but they resist and punish her. As revenge, Thotsakan abducts Nang Sida to his palace in Lanka.
Phra Ram and Phra Lak meet Hanuman, Sukhrip and another Vanara, Chomphuphan, and ask them to help find Nang Sida. When Hanuman locates Nang Sida in Lanka, he identifies himself by showing her ring and kerchief and retelling the secret of her first meeting with Phra Ram. Hanuman is then caught by Thotsakan's son Intharachit, but escapes while setting Lanka on fire. On returning to Phra Ram, Hanuman helps build a causeway with help of Nal and Nil to connecting Sri Lanka With Indian mainland and the war with Thotsakan begins. After a lot of fighting and attempts of treachery by Thotsakan's allies, Phra Ram manages to kill Thotsakan and Intharachit and free Nang Sida. After she passes a fire ordeal to test her faithfulness, Phra Ram takes her with him to Ayutthaya and grants various parts of his kingdom to his allies.
Part three
After Nang Sida draws a picture of Thotsakan on a slate, Phra Ram orders Phra Lak to take her to the forest and kill her. Instead of doing as commanded, he brings to Phra Ram the heart of a doe to trick him into believing that Nang Sida is dead. In the forest, Nang Sida finds refuge with a hermit named Wachamarik (Valmiki), and she gives birth to two sons: Phra Monkut (Kusha) and Phra Loph (Lava). Phra Ram decides to take her back to Ayutthaya, but she refuses and disappears into the Underworld. Finally, Phra Isuan brings Phra Ram and Nang Sida together again.
See also
Thai literature
Hikayat Seri Rama
Kakawin Ramayana
Phra Lak Phra Lam
Ramayana
Versions of Ramayana
Reamker
Yama Zatdaw
References
Further reading
Thai Ramayana (abridged) as written by King Rama I,
The story of Ramakian – From the Mural Paintings along the Galleries of the Temple of the Emerald Buddha,
External links
NAMELIST AND PICTURES OF RAMAKIEN CHARACTERS
English and Thai text of the work, with audio reading in Thai
A Ramakian Tale – Thai Ramakien Myth (Youtube audio book series)
Epic poems in Thai
Works based on the Ramayana
|
```java
package chapter2.section3;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.Stopwatch;
import util.ArrayUtil;
import util.ArrayGenerator;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Rene Argento on 07/03/17.
*/
public class Exercise19_MedianOf5Partitioning {
// Parameters example: 8 131072
public static void main(String[] args) {
int numberOfExperiments = Integer.parseInt(args[0]);
int initialArraySize = Integer.parseInt(args[1]);
Map<Integer, Comparable[]> allInputArrays = ArrayGenerator.generateAllArrays(numberOfExperiments, initialArraySize, 2);
doExperiment(numberOfExperiments, initialArraySize, allInputArrays);
}
private static void doExperiment(int numberOfExperiments, int initialArraySize, Map<Integer, Comparable[]> allInputArrays) {
StdOut.printf("%13s %23s %32s %30s\n", "Array Size | ", "QuickSort Running Time |",
"QuickSort with median-of-three | ", "QuickSort with median-of-five");
int arraySize = initialArraySize;
for (int i = 0; i < numberOfExperiments; i++) {
Comparable[] originalArray = allInputArrays.get(i);
Comparable[] arrayCopy1 = new Comparable[originalArray.length];
System.arraycopy(originalArray, 0, arrayCopy1, 0, originalArray.length);
Comparable[] arrayCopy2 = new Comparable[originalArray.length];
System.arraycopy(originalArray, 0, arrayCopy2, 0, originalArray.length);
//Default QuickSort
Stopwatch defaultQuickSortTimer = new Stopwatch();
QuickSort.quickSort(originalArray);
double defaultQuickSortRunningTime = defaultQuickSortTimer.elapsedTime();
//QuickSort with median-of-three partitioning
Stopwatch quickSortWithMedianOfThreeTimer = new Stopwatch();
Exercise18_MedianOf3Partitioning.quickSortWithMedianOfThree(arrayCopy1);
double quickSortWithMedianOfThreeRunningTime = quickSortWithMedianOfThreeTimer.elapsedTime();
//QuickSort with median-of-five partitioning
Stopwatch quickSortWithMedianOfFiveTimer = new Stopwatch();
quickSortWithMedianOfFive(arrayCopy2);
double quickSortWithMedianOfFiveRunningTime = quickSortWithMedianOfFiveTimer.elapsedTime();
printResults(arraySize, defaultQuickSortRunningTime, quickSortWithMedianOfThreeRunningTime,
quickSortWithMedianOfFiveRunningTime);
arraySize *= 2;
}
}
private static void quickSortWithMedianOfFive(Comparable[] array) {
StdRandom.shuffle(array);
//Passing the array used to compute the median of 5 random elements to avoid creating it every time during partition
Comparable[] medianOf5Array = new Comparable[5];
quickSort(array, 0, array.length - 1, medianOf5Array);
}
private static void quickSort(Comparable[] array, int low, int high, Comparable[] medianOf5Array) {
if (low >= high) {
return;
}
int partition = partition(array, low, high, medianOf5Array);
quickSort(array, low, partition - 1, medianOf5Array);
quickSort(array, partition + 1, high, medianOf5Array);
}
private static int partition(Comparable[] array, int low, int high, Comparable[] medianOf5Array) {
medianOf5Partition(array, low, high, medianOf5Array);
Comparable pivot = array[low];
int i = low;
int j = high + 1;
while (true) {
while (ArrayUtil.less(array[++i], pivot)) {
//Since we are using a random sample, we cannot guarantee that we will always have a higher element than the pivot
// on the right end.
//So this check is necessary
if (i == high) {
break;
}
}
while (ArrayUtil.less(pivot, array[--j]));
if (i >= j) {
break;
}
ArrayUtil.exchange(array, i, j);
}
//Place pivot in the right place
ArrayUtil.exchange(array, low, j);
return j;
}
//Based on path_to_url
private static void medianOf5Partition(Comparable[] array, int low, int high, Comparable[] medianOf5Array) {
//If we have less than 5 items, no need to partition on the median of 5, just pick the first item
if (high - low + 1 < 5) {
return;
}
int randomIndex1 = StdRandom.uniform(low, high + 1);
int randomIndex2 = StdRandom.uniform(low, high + 1);
int randomIndex3 = StdRandom.uniform(low, high + 1);
int randomIndex4 = StdRandom.uniform(low, high + 1);
int randomIndex5 = StdRandom.uniform(low, high + 1);
medianOf5Array[0] = array[randomIndex1];
medianOf5Array[1] = array[randomIndex2];
medianOf5Array[2] = array[randomIndex3];
medianOf5Array[3] = array[randomIndex4];
medianOf5Array[4] = array[randomIndex5];
Map<Comparable, Integer> originalIndexes = new HashMap<>();
originalIndexes.put(medianOf5Array[0], randomIndex1);
originalIndexes.put(medianOf5Array[1], randomIndex2);
originalIndexes.put(medianOf5Array[2], randomIndex3);
originalIndexes.put(medianOf5Array[3], randomIndex4);
originalIndexes.put(medianOf5Array[4], randomIndex5);
Comparable median;
/**
* 6 compares median-of-5 algorithm
*
* 1. Put the numbers in an array.
2. Use three comparisons and shuffle around the numbers so that a[1] < a[2], a[4] < a[5], and a[1] < a[4].
3. If a[3] > a[2], then the problem is fairly easy. If a[2] < a[4], the median value is the smaller of a[3] and a[4].
If not, the median value is the smaller of a[2] and a[5].
4. Else, if a[3] < a[2]: If a[3] > a[4], then the solution is the smaller of a[3] and a[5].
Otherwise, the solution is the smaller of a[2] and a[4].
*/
//1st compare
if (!ArrayUtil.less(medianOf5Array[0], medianOf5Array[1])) {
ArrayUtil.exchange(medianOf5Array, 0, 1);
}
//2nd compare
if (!ArrayUtil.less(medianOf5Array[3], medianOf5Array[4])) {
ArrayUtil.exchange(medianOf5Array, 3, 4);
}
//3rd compare
if (!ArrayUtil.less(medianOf5Array[0], medianOf5Array[3])) {
ArrayUtil.exchange(medianOf5Array, 0, 3);
}
//4th compare
if (ArrayUtil.less(medianOf5Array[1], medianOf5Array[2])) {
//5th compare
if (ArrayUtil.less(medianOf5Array[1], medianOf5Array[3])) {
//6th compare
if (ArrayUtil.less(medianOf5Array[2], medianOf5Array[3])) {
median = medianOf5Array[2];
} else {
median = medianOf5Array[3];
}
} else {
//6th compare
if (ArrayUtil.less(medianOf5Array[1], medianOf5Array[4])) {
median = medianOf5Array[1];
} else {
median = medianOf5Array[4];
}
}
} else {
//5th compare
if (ArrayUtil.less(medianOf5Array[3], medianOf5Array[2])) {
//6th compare
if (ArrayUtil.less(medianOf5Array[2], medianOf5Array[4])) {
median = medianOf5Array[2];
} else {
median = medianOf5Array[4];
}
} else {
//6th compare
if (ArrayUtil.less(medianOf5Array[1], medianOf5Array[3])) {
median = medianOf5Array[1];
} else {
median = medianOf5Array[3];
}
}
}
int originalMedianIndex = originalIndexes.get(median);
//Swap median with low
ArrayUtil.exchange(array, originalMedianIndex, low);
}
private static void printResults(int arraySize, double defaultQuickSortRunningTime, double quickSortWithMedianOfThree, double quickSortWithMedianOfFive) {
StdOut.printf("%10d %25.1f %32.1f %33.1f\n", arraySize, defaultQuickSortRunningTime, quickSortWithMedianOfThree, quickSortWithMedianOfFive);
}
}
```
|
```asciidoc
xref::overview/apoc.refactor/apoc.refactor.cloneSubgraphFromPaths.adoc[apoc.refactor.cloneSubgraphFromPaths icon:book[]] +
`apoc.refactor.cloneSubgraphFromPaths([path1, path2, ...], {standinNodes:[], skipProperties:[]}) YIELD input, output, error | from the subgraph formed from the given paths, clone nodes with their labels and properties (optionally skipping any properties in the skipProperties list via the config map), and clone the relationships (will exist between cloned nodes only). Relationships can be optionally redirected according to standinNodes node pairings (this is a list of list-pairs of nodes), so given a node in the original subgraph (first of the pair), an existing node (second of the pair) can act as a standin for it within the cloned subgraph. Cloned relationships will be redirected to the standin.`
label:procedure[]
label:apoc-core[]
```
|
```objective-c
// This source code is licensed under both the GPLv2 (found in the
// (found in the LICENSE.Apache file in the root directory).
#pragma once
#ifndef ROCKSDB_LITE
#include <functional>
#include <memory>
#include <regex>
#include <string>
#include <vector>
#include "rocksdb/env.h"
namespace rocksdb {
// Creates a new T using the factory function that was registered with a pattern
// that matches the provided "target" string according to std::regex_match.
//
// If no registered functions match, returns nullptr. If multiple functions
// match, the factory function used is unspecified.
//
// Populates res_guard with result pointer if caller is granted ownership.
template <typename T>
T* NewCustomObject(const std::string& target, std::unique_ptr<T>* res_guard);
// Returns a new T when called with a string. Populates the std::unique_ptr
// argument if granting ownership to caller.
template <typename T>
using FactoryFunc = std::function<T*(const std::string&, std::unique_ptr<T>*)>;
// To register a factory function for a type T, initialize a Registrar<T> object
// with static storage duration. For example:
//
// static Registrar<Env> hdfs_reg("hdfs://.*", &CreateHdfsEnv);
//
// Then, calling NewCustomObject<Env>("hdfs://some_path", ...) will match the
// regex provided above, so it returns the result of invoking CreateHdfsEnv.
template <typename T>
class Registrar {
public:
explicit Registrar(std::string pattern, FactoryFunc<T> factory);
};
// Implementation details follow.
namespace internal {
template <typename T>
struct RegistryEntry {
std::regex pattern;
FactoryFunc<T> factory;
};
template <typename T>
struct Registry {
static Registry* Get() {
static Registry<T> instance;
return &instance;
}
std::vector<RegistryEntry<T>> entries;
private:
Registry() = default;
};
} // namespace internal
template <typename T>
T* NewCustomObject(const std::string& target, std::unique_ptr<T>* res_guard) {
res_guard->reset();
for (const auto& entry : internal::Registry<T>::Get()->entries) {
if (std::regex_match(target, entry.pattern)) {
return entry.factory(target, res_guard);
}
}
return nullptr;
}
template <typename T>
Registrar<T>::Registrar(std::string pattern, FactoryFunc<T> factory) {
internal::Registry<T>::Get()->entries.emplace_back(internal::RegistryEntry<T>{
std::regex(std::move(pattern)), std::move(factory)});
}
} // namespace rocksdb
#endif // ROCKSDB_LITE
```
|
Zbyszek Zaborowski (born 26 February 1958 in Wilamowice) is a Polish politician. He was elected to Sejm on 25 September 2005, getting 12643 votes in 31 Katowice district as a candidate from Democratic Left Alliance list.
He was also a member of Sejm 1993-1997, Sejm 1997-2001, and Sejm 2001-2005.
See also
Members of Polish Sejm 2005-2007
External links
Zbyszek Zaborowski - parliamentary page - includes declarations of interest, voting record, and transcripts of speeches.
1958 births
Living people
People from Wilamowice
Democratic Left Alliance politicians
Members of the Polish Sejm 1993–1997
Members of the Polish Sejm 1997–2001
Members of the Polish Sejm 2001–2005
Members of the Polish Sejm 2005–2007
Members of the Polish Sejm 2011–2015
|
Der Clown is a German television series that aired between 21 April 1998 and 11 October 2001. Initially launched in 1996 as a pilot movie, it ran for 46 episodes and starred Sven Martinek, Diana Frank, Thomas Anzenhofer, and Volkmar Kleinert.
Story
The story is about Max Zander, an agent from WIPA (World Intelligence Police Agency). When his friend dies in car bomb meant for him, Max decides to fake his own death and live as a phantom, known only as "The Clown", and fight crime. He gets help from his friends, journalist Claudia Diehl (Diana Frank), pilot Tobias "Dobbs" Steiger (Thomas Anzenhofer), and lawyer Joseph Ludowski (Volkmar Kleinert).
Film
On 24 March 2005, the movie , a film sequel to the TV series, was released in German cinemas.
References
External links
1998 German television series debuts
2001 German television series endings
German action television series
German-language television shows
RTL (German TV channel) original programming
Superhero television shows
Television superheroes
|
```html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>associated_executor::get</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../associated_executor.html" title="associated_executor">
<link rel="prev" href="../associated_executor.html" title="associated_executor">
<link rel="next" href="type.html" title="associated_executor::type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../associated_executor.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../associated_executor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.associated_executor.get"></a><a class="link" href="get.html" title="associated_executor::get">associated_executor::get</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="boost_asio.indexterm.associated_executor.get"></a>
If <code class="computeroutput">T</code>
has a nested type <code class="computeroutput">executor_type</code>, returns <code class="computeroutput">t.get_executor()</code>.
Otherwise returns <code class="computeroutput">ex</code>.
</p>
<pre class="programlisting">static type get(
const T & t,
const Executor & ex = Executor());
</pre>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../associated_executor.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../associated_executor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
SequenceVariantAnalyzer (SVA) is a computer program for annotating and analyzing genetic variants called (identified) from a whole genome or exome sequencing study (Shotgun sequencing).
Introduction
Background
DNA sequence information underpins genetic research, enabling discoveries of important biological or medical benefit. Compared with previous discovery strategies, a whole-genome sequencing study is no longer constrained by differing patterns of linkage disequilibrium, thus, in theory, is more possible to directly identify the genetic variants contributing to biological traits or medical outcomes.
The rapidly evolving high-throughput DNA sequencing technologies have now allowed the rapid generation of large amounts of sequence data for the purpose of performing such whole-genome sequencing studies, at a reasonable cost. SequenceVariantAnalyzer, or SVA, is software that analyzes genetic variants identified in such studies.
Functions
SVA is designed for two specific aims:
(1) To annotate the biological functions of the identified genetic variants and group them, conveniently;
(2) To find the genetic variants that are associated with or responsible for the biological traits or medical outcomes of interest.
Language
SVA is developed on the Java platform.
Authors
SVA is developed and maintained by Dr. Dongliang Ge and Dr. David B. Goldstein at Duke University, Center for Human Genome Variation.
References
External links
SVA project website
Genetics software
|
```rust
/*
*
* This software may be used and distributed according to the terms of the
*/
//! File State.
use bitflags::bitflags;
/// Information relating to a file in the dirstate.
#[derive(Debug, PartialEq, Copy, Clone)]
pub struct FileState {
/// State of the file, as recorded by Mercurial. Mercurial uses a single character to
/// represent the current state of the file. Only a single byte is used in the file, so only
/// ASCII characters are valid here.
pub state: u8,
/// Mode (permissions) mask for the file.
pub mode: u32,
/// Size of the file. Mercurial uses negative sizes for special values, so this must be
/// signed.
pub size: i32,
/// Modification time of the file.
pub mtime: i32,
}
impl FileState {
pub fn new(state: u8, mode: u32, size: i32, mtime: i32) -> FileState {
FileState {
state,
mode,
size,
mtime,
}
}
}
bitflags! {
/// Bit flags for a file "state". Certain flags can be used together.
///
/// Mapping to some Mercurial's concepts:
///
/// | | EXIST_P1 | EXIST_P2 | EXIST_NEXT | IGNORED |
/// | added | no | no | yes | ? |
/// | merge | yes | yes | yes | ? |
/// | normal | yes | no | yes | ? |
/// | normal | no | yes | yes | ? |
/// | removed | either one is yes | no | ? |
/// | untracked | no | no | no | no |
/// | ignored | no | no | no | yes |
#[cfg_attr(test, derive(Default))]
#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)]
pub struct StateFlags: u16 {
/// Exist in the first working parent.
const EXIST_P1 = 1;
/// Exist in a non-first working parent.
const EXIST_P2 = 2;
/// Will exist in the next commit.
const EXIST_NEXT = 4;
/// Explicitly marked as ignored.
const IGNORED = 8;
/// Known possibly changed. Need stat check.
///
/// For non-watchman case, this is a quick way to get all mtime < 0 entries. aka. for
/// calculating non-normal set quickly.
///
/// For watchman case, this also includes untracked files and normal files with mtime >= 0,
/// that are known changed during the last watchman check. Combined with a new watchman
/// query since the recorded watchman clock, the caller can figure out all files that are
/// possibly changed, and ignore files outside that list.
const NEED_CHECK = 16;
/// Marked as copied from another path.
const COPIED = 32;
}
}
impl StateFlags {
/// Convenience mask representing whether a file is tracked in either parent
/// commit or next commit.
pub const TRACKED: Self = Self::EXIST_P1.union(Self::EXIST_P2).union(Self::EXIST_NEXT);
pub fn to_bits(self) -> u16 {
self.bits()
}
pub fn is_tracked(&self) -> bool {
self.intersects(Self::TRACKED)
}
}
/// Information relating to a file in the dirstate, version 2.
/// Unlike V1, the `state` field is no longer a char defined by Mercurial,
/// but a bitflag. It also has a `copied` field.
#[derive(Debug, PartialEq, Clone)]
#[cfg_attr(test, derive(Default))]
pub struct FileStateV2 {
/// Mode (permissions) mask for the file.
pub mode: u32,
/// Size of the file. Mercurial uses negative sizes for special values, so this must be
/// signed.
pub size: i32,
/// Modification time of the file.
pub mtime: i32,
/// State of the file.
pub state: StateFlags,
/// Path copied from.
pub copied: Option<Box<[u8]>>,
}
impl FileStateV2 {
pub fn is_executable(&self) -> bool {
// Symlinks show as executable, but don't be fooled. "executable" and
// "symlink" are mutually exclusive in the manifest, so it is just
// confusing if we have dirstate entries that claim to be both.
!self.is_symlink() && self.mode & 0o100 == 0o100
}
pub fn is_symlink(&self) -> bool {
self.mode & 0o120000 == 0o120000
}
}
#[cfg(test)]
impl rand::distributions::Distribution<FileStateV2> for rand::distributions::Standard {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> FileStateV2 {
let mode = rng.gen();
let size = rng.gen();
let mtime = rng.gen();
let state = StateFlags::from_bits_truncate(rng.gen());
let copied = if state.contains(StateFlags::COPIED) {
Some(b"copied_source".to_vec().into_boxed_slice())
} else {
None
};
FileStateV2 {
mode,
size,
mtime,
state,
copied,
}
}
}
```
|
```xml
<RelativeLayout xmlns:android="path_to_url"
xmlns:rounded="path_to_url"
android:layout_width="fill_parent"
android:layout_height="72dp"
android:descendantFocusability="blocksDescendants"
android:id="@+id/contact_list_item_layout" >
<RelativeLayout
android:id="@+id/contact_explorer_relative_layout_avatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginLeft="18dp"
android:layout_centerVertical="true">
<mega.privacy.android.app.components.RoundedImageView
android:id="@+id/contact_explorer_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:layout_centerInParent="true"
rounded:corner_radius="20dp" />
</RelativeLayout>
<TextView
android:id="@+id/contact_explorer_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/contact_explorer_relative_layout_avatar"
android:layout_marginTop="16dp"
android:layout_marginLeft="13dp"
android:layout_marginRight="16dp"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:singleLine="true"
android:ellipsize="middle" />
<TextView
android:id="@+id/contact_explorer_phone_mail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/contact_explorer_relative_layout_avatar"
android:layout_marginLeft="13dp"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Mega.Subtitle2.Secondary"
android:layout_below="@id/contact_explorer_name"/>
</RelativeLayout>
```
|
Hollywood Causes Cancer: The Tom Green Story is the autobiography of Tom Green, co-written with Allen Rucker. Published in 2004, it recounts Green's upbringing and acting career.
Synopsis
The book is an autobiography of Green's first 32 years of life. It recounts his beginnings growing up in Ottawa, Canada. It then goes on to detail his career beginnings, as he first appeared as a talk show host on a public access show in Canada. The book offers an inside view of Green's primary career successes and notable moments: his successful talk show The Tom Green Show on MTV, his appearance on Saturday Night Live, his short marriage to Drew Barrymore, and his films Road Trip and Freddy Got Fingered.
See also
The Tom Green Show
Lonely Swedish (The Bum Bum Song)
References
External links
The Tom Green Story
2004 non-fiction books
books about actors
Canadian autobiographies
show business memoirs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.